Skip to main content
The image endpoint is synchronous: the response comes back when the images are ready, usually in 10–60 seconds. Set your client timeout to at least 2 minutes, and do not resubmit on a client timeout — each request is billed.

Request fields

Streaming is not supported.

Text to image

Non-OpenAI fields such as images or negative_prompt go in extra_body with the OpenAI SDK.

Edit with reference images

Response

With n greater than 1, data has one item per image.
Image URLs are temporary. Download the images right away and store your own copy — plan on links expiring after 24 hours.

Billing

Per image actually generated; failed generations are not billed.
  • qwen-image-3.0: same price for every size; each reference image adds a small fee.
  • z-image-turbo: double price with prompt_extend.
  • wan2.7-image-pro: same price for 1K, 2K and 4K.
Current prices: Models & pricing.

Errors