curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
GPT Image
GPT Image · 图像生成
使用 GPT Image 2.5 按次模型生成图像。
curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
POST
/
v1
/
images
/
generations
curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
自 2026-09-10 起,
gpt-image-2 和 gpt-image-2-hd 已分别更名为 gpt-image-2.5 和 gpt-image-2.5-hd。旧 model ID 不再接受;请更新请求中的 model。这不是兼容别名。data 时读取图像结果;返回 image.generation.task 时表示异步任务已提交,不代表图像已生成。响应形态取决于实际路由,请勿将任务提交响应当作最终结果。
Flare 和 Sunburst 是独立的 Token 计费模型,不属于此按次契约,目前尚未开放。
参考图限制
参考图字段为images(图片 URL 或 base64 字符串数组);image、image_urls、input_reference 为可接受的别名,网关会归一为 images。
gpt-image-2.5:单次最多 16 张;无下限(文生图不传images);单张参考图的接受格式与大小上限官方未公布。gpt-image-2.5-hd:尚无模型档案,参考图上限未核验,本页不声明其张数、格式与单文件大小上限。gpt-image-2.5-flare:特惠档生图路由模型,参考图规格与基准版一致。gpt-image-2.5-sunburst:经济低价档生图路由模型,参考图规格与基准版一致。
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
可用选项:
gpt-image-2.5, gpt-image-2.5-hd, gpt-image-2.5-flare, gpt-image-2.5-sunburst 图像数量,受所选模型和渠道限制。
可接受的尺寸取决于所选模型与渠道;不保证所有尺寸可用。
质量选项取决于所选模型与渠道。
参考图:图片 URL 或 base64。image / image_urls / input_reference 为可接受的别名,网关归一为 images。