创建图像生成

使用所选模型启动图像生成。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
bytedance-seedream-5-liteobject必需

ByteDance Seedream 5.0 Lite 图像模型的请求体。

ByteDance 模型默认禁用,使用前需获得明确批准。 请联系支持团队申请访问权限。

OR
bytedance-seedream-5-proobject必需

ByteDance Seedream 5.0 Pro 图像模型的请求体。

ByteDance 模型默认禁用,使用前需获得明确批准。 请联系支持团队申请访问权限。

OR
gemini-2.5-flash-imageobject必需

Google Gemini 2.5 Flash 图像模型的请求体。

OR
gemini-3-pro-imageobject必需

Google Gemini 3 Pro 图像模型的请求体。

OR
gemini-3.1-flash-imageobject必需

Google Gemini 3.1 Flash 图像模型的请求体。

OR
gemini-3.1-flash-lite-imageobject必需

Google Gemini 3.1 Flash Lite 图像模型的请求体。

OR
gpt-image-1object必需

OpenAI GPT Image 1 模型的请求体。

OR
gpt-image-1.5object必需

OpenAI GPT Image 1.5 模型的请求体。

OR
gpt-image-2object必需

OpenAI GPT Image 2 模型的请求体。

OR
gpt-image-2.5-flareobject必需

OpenAI GPT Image 2.5 Flare 模型的请求体。

OR
gpt-image-2.5-sunburstobject必需

OpenAI GPT Image 2.5 Sunburst 模型的请求体。

响应

成功响应

idstring

生成任务的唯一标识符。将其传入相应的 GET 端点以获取输出。

status"pending"

新创建的生成任务始终为 pending。

错误

422
Unprocessable Entity Error