Skip to main content
POST
Generate images from text using GPT Image 2. Synchronous upstream; the API still exposes the standard async submit/query/webhook flow.

Available Model

gpt-image-2/text-to-image

Pricing

Billed per resolution tier × n. Failed tasks are not charged. Total cost = n × unit_price(resolution).
string
required
gpt-image-2/text-to-image
string
Webhook callback URL.
object
required

Query Result

Retrieve the result via the Query Task endpoint or Webhook.
All result URLs are stable Max API CDN links. With n > 1, the array contains multiple images.