同步模式
生成图片
调用 gpt-image-2 的同步生图接口并直接获取结果。
POST
使用这个接口调用
gpt-image-2 的同步图片生成能力。
授权
Paste your SmewAI API key as a Bearer token.
请求体
application/json
Image model name.
可用选项:
gpt-image-2 Describe the image you want to generate.
Number of images to generate. Use 1.
必填范围:
1 <= x <= 1Output aspect ratio.
可用选项:
auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 21:9, 9:21 Output resolution tier.
可用选项:
1k, 2k, 4k Optional reference images. Supports remote URLs and base64 data URIs.
Maximum array length:
16