DEVELOPER DOCUMENTATION
Image generation API
Compare image generation and editing models, check supported resolutions and inputs, then submit through the shared task API.
Choose your model
Open a reference below for exact model IDs, parameters and request examples. Check the live model page before submitting; a documentation entry is not a guarantee of availability.
Generate and retrieve
POST /v1/tasks records a task. Save its id, then GET /v1/tasks/{id} with the same API key. Wait for succeeded and download the URLs in outputs. Poll every five seconds or more.
Understand the cost
Check resolution and the per-image price. Do not assume image editing or multiple outputs are supported by a text-to-image configuration.