Skip to Content

Endpoint

POST /v1/images/generations

适合海报、封面、商品图、视觉创意等图像生成场景。

接入说明

cURL 示例

curl https://123api.co/v1/images/generations \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "gpt-image-1", "prompt": "A clean product poster for an AI API gateway, blue lighting, minimal design", "size": "1024x1024" }'

图片生成涉及模型、尺寸和响应格式差异。实际字段请以你当前可用模型为准。