Skip to content

GPT Image 2

gpt-image-2 supports text-to-image generation and image editing with OpenAI-compatible size and quality controls.

API surface

OperationEndpointMode
Image generationPOST /v1/images/generationsSync
Image generation taskPOST /v1/async/images/generationsAsync
Image editingPOST /v1/images/editsSync
Image editing taskPOST /v1/async/images/editsAsync

Pricing

Credits per image are determined by output size tier and quality. quality=auto is billed at the same rate as high, and size=auto defaults to the 1K tier.

Size tierLong edgelowmediumhigh / auto
1K<= 1536px1414
2K<= 2048px21767
4K<= 3840px434133

The displayed costCredits for a request equals the matrix value times n.

Example

json
{
  "model": "gpt-image-2",
  "prompt": "A clean SaaS hero image showing API model orchestration",
  "n": 1,
  "size": "1536x1024",
  "quality": "high"
}

For all request fields and custom size limits, see GPT Image.