使用 POST /v1/images/generations 调用统一图像生成入口,按 model 选择 gpt-image-1、dall-e-3、dall-e-2 等模型。
Documentation Index
Fetch the complete documentation index at: https://mercury-eab3b728.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
model 选择不同图像模型。created + data[]。url 和 b64_json 两种返回格式。dall-e-2、dall-e-3 的尺寸限制由统一层直接校验。n 不传或显式传 0 时,统一层会自动补成 1。0,统一层回退为 1。dall-e-2 只接受 256x256、512x512、1024x1024;dall-e-3 只接受 1024x1024、1024x1792、1792x1024。dall-e-3 默认补成 standard;gpt-image-1 默认补成 auto。url、b64_json。当请求 b64_json 或 base64 时,统一层返回 Base64 图像数据。false 与不传语义不同:不传表示交给默认策略,传 false 表示明确关闭。response_format = url 时返回的图片 URL。response_format = b64_json 时返回的图片 Base64 数据。