Appearance
GPT Image 2
gpt-image-2 supports text-to-image generation and image editing with OpenAI-compatible size and quality controls.
API surface
| Operation | Endpoint | Mode |
|---|---|---|
| Image generation | POST /v1/images/generations | Sync |
| Image generation task | POST /v1/async/images/generations | Async |
| Image editing | POST /v1/images/edits | Sync |
| Image editing task | POST /v1/async/images/edits | Async |
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 tier | Long edge | low | medium | high / auto |
|---|---|---|---|---|
| 1K | <= 1536px | 1 | 4 | 14 |
| 2K | <= 2048px | 2 | 17 | 67 |
| 4K | <= 3840px | 4 | 34 | 133 |
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.
