Create Image Generation

Start an image generation with the selected model.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
bytedance-seedream-5-liteobjectRequired
Request body for the ByteDance Seedream 5.0 Lite image model. ByteDance models are disabled by default and require explicit approval before use. Contact support to request access.
OR
bytedance-seedream-5-proobjectRequired
Request body for the ByteDance Seedream 5.0 Pro image model. ByteDance models are disabled by default and require explicit approval before use. Contact support to request access.
OR
gemini-2.5-flash-imageobjectRequired
Request body for the Google Gemini 2.5 Flash image model.
OR
gemini-3-pro-imageobjectRequired
Request body for the Google Gemini 3 Pro image model.
OR
gemini-3.1-flash-imageobjectRequired
Request body for the Google Gemini 3.1 Flash image model.
OR
gemini-3.1-flash-lite-imageobjectRequired
Request body for the Google Gemini 3.1 Flash Lite image model.
OR
gpt-image-1objectRequired
Request body for the OpenAI GPT Image 1 model.
OR
gpt-image-1.5objectRequired
Request body for the OpenAI GPT Image 1.5 model.
OR
gpt-image-2objectRequired
Request body for the OpenAI GPT Image 2 model.
OR
gpt-image-2.5-flareobjectRequired
Request body for the OpenAI GPT Image 2.5 Flare model.
OR
gpt-image-2.5-sunburstobjectRequired
Request body for the OpenAI GPT Image 2.5 Sunburst model.

Response

Successful Response
idstring
The unique identifier of the generation. Pass it to the corresponding GET endpoint to retrieve the output.
status"pending"

A newly created generation is always pending.

Errors

422
Unprocessable Entity Error