Gengxi API Developer Docs
图像
使用受支持的图像模型与分组生成和编辑图像。
生成图像
bash复制
curl https://api.gengxi.ai/v1/images/generations \
-H "Authorization: Bearer $GENGXI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_IMAGE_MODEL","prompt":"安静的编辑风插画","n":1,"size":"1024x1024"}'编辑图像
POST /v1/images/edits 接收兼容的图像编辑请求。请按所选模型和路径提交 multipart 字段。
常见字段
- model
- prompt
- n
- size
- response_format
- quality
- background
- output_format
高级图像 API
异步图像和批量图像属于高级 API,v1 不将它们堆入核心导航。