/images/generationsCreate an image
Creates one or more images from a text prompt. Supply prompt and configure the model, image count, output format, dimensions, quality, and moderation settings as needed. Streaming requests can return partial images before the final image.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Image generation request containing a required text prompt and optional generation settings.
One documented failure
slow_downYour request rate increased too quickly. Please reduce the request rate and gradually increase it again.
Traffic increased too quickly
One documented failure
server_is_overloadedThe model is temporarily overloaded. Please retry your request after a brief delay.
The requested model is temporarily overloaded
A 429 is returned when the request rate exceeds the limit; reduce the request rate before retrying. A 503 is returned when the requested model is temporarily overloaded; retry after a brief delay. prompt is required, n must be between 1 and 10, and model-specific options such as response_format and style must use supported values.