Model API

openai/gpt-image-2/text-to-image API

GPT Image 2 — Frontier text-to-image with exceptional prompt following and text rendering. 1024/1536 sizes.

API model ID
openai/gpt-image-2/text-to-image
Capabilities
text-to-image

Browse model information and examples without an account. Sign in to generate.

openai/gpt-image-2/text-to-image example
Model example

API access

Use openai/gpt-image-2/text-to-image as the model ID in your API request. Authenticate with an X-API-Key header, submit your request, then check its status and retrieve the result.

See current pricing for output and reference input charges.

Explore more models