Create Image Generation
Start an image generation with the selected model.
Headers
xi-api-key
Request
This endpoint expects an object.
bytedance-seedream-5-lite
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-pro
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-image
Request body for the Google Gemini 2.5 Flash image model.
OR
gemini-3-pro-image
Request body for the Google Gemini 3 Pro image model.
OR
gemini-3.1-flash-image
Request body for the Google Gemini 3.1 Flash image model.
OR
gemini-3.1-flash-lite-image
Request body for the Google Gemini 3.1 Flash Lite image model.
OR
gpt-image-1
Request body for the OpenAI GPT Image 1 model.
OR
gpt-image-1.5
Request body for the OpenAI GPT Image 1.5 model.
OR
gpt-image-2
Request body for the OpenAI GPT Image 2 model.
OR
gpt-image-2.5-flare
Request body for the OpenAI GPT Image 2.5 Flare model.
OR
gpt-image-2.5-sunburst
Request body for the OpenAI GPT Image 2.5 Sunburst model.
Response
Successful Response
id
The unique identifier of the generation. Pass it to the corresponding GET endpoint to retrieve the output.
status
A newly created generation is always pending.
Errors
422
Unprocessable Entity Error