Base URLhttps://suoxie.codes/v1

API 参考

图像生成与编辑

调用同步图像生成和编辑接口。

同步图像接口

短任务可使用同步生成或编辑接口。长耗时任务请改用异步图像任务,并为连接设置合理超时。

支持的字段和模型以当前分组返回值为准。

bash
curl https://suoxie.codes/v1/images/generations \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model":"<MODEL>","prompt":"A clean technical diagram","size":"1024x1024"}'