GPT Image 2 API
gpt-image-2 API: price per image, limits and code
OpenAI's gpt-image-2 costs $0.006 per 1024x1024 image at low quality, $0.053 at medium and $0.211 at high, plus input tokens: $5 per 1M text tokens and $8 per 1M image tokens. Image output tokens cost $30 per 1M, and the Batch API halves every rate.
- Low quality, square
- $0.006 per image
- High quality, square
- $0.211 per image
- Image output tokens
- $30 per 1M
- Largest edge
- 3840 px
Updated
gpt-image-2 price per image
Text and image input tokens are billed on top of the per-image output cost. Square images are typically fastest to generate, and a larger non-square size can sometimes use fewer output tokens than a smaller or square one at the same quality.
The table below shows the output cost per gpt-image-2 image by quality and size.
| Quality | 1024x1024 | 1024x1536 | 1536x1024 |
|---|---|---|---|
| Low | $0.006 | $0.005 | $0.005 |
| Medium | $0.053 | $0.041 | $0.041 |
| High | $0.211 | $0.165 | $0.165 |
Token prices, Standard and Batch
Per-token rates decide the real cost of image edits and long prompts.
- Cached input rates only apply to images generated with the Responses API, so Images API calls pay the full input rate.
gpt-image-2.5-sunburstandgpt-image-2.5-flarecost the same per token asgpt-image-2and addxhighandmaxquality settings.
The table below lists gpt-image-2 prices per 1M tokens on the Standard and Batch tiers; see OpenAI API pricing for every other model.
| Token type | Standard | Batch |
|---|---|---|
| Text input | $5.00 | $2.50 |
| Cached text input | $1.25 | $0.625 |
| Image input | $8.00 | $4.00 |
| Cached image input | $2.00 | $1.00 |
| Image output | $30.00 | $15.00 |
Endpoints, sizes and parameters
- Endpoints:
gpt-image-2(default snapshotgpt-image-2-2026-04-21) works onPOST /v1/images/generations,POST /v1/images/edits, and the/v1/batchBatch API, while Chat Completions (/v1/chat/completions) and the Responses API (/v1/responses) are listed as not supported. - Size: Pass
auto(the default), popular presets like1024x1024,1536x1024,1024x1536,2048x2048,2048x1152,3840x2160, or2160x3840, or any custom dimensions up to a 3840 px longest edge where both edges are multiples of 16 px, the aspect ratio is at most 3:1, and total pixels sit between 655,360 and 8,294,400. - Quality: Set
low,medium,high, orauto(the default), withlowsuggested for quick drafts. - n: Generates several images in one request, and defaults to returning one image.
- Output: The API returns base64-encoded image data (
b64_json) aspngby default, orjpegandwebpwithoutput_compressionfrom 0 to 100 (jpegis faster thanpng). - Fidelity: Leave
input_fidelityout, becausegpt-image-2processes every image input at high fidelity automatically.
Rate limits and latency
Complex prompts can take up to 2 minutes to process, so set long client timeouts. OpenAI may also ask for API Organization Verification before you can use GPT Image models.
The table below shows gpt-image-2 rate limits by OpenAI usage tier.
| Usage tier | Images per minute | Tokens per minute |
|---|---|---|
| Build | 20 | 250,000 |
| Launch | 150 | 3,000,000 |
| Grow | 250 | 8,000,000 |
Is gpt-image-2 free?
OpenAI's API has no free tier for gpt-image-2. Pay-as-you-go API accounts prepay at least $5, requests fail with a billing error once credits run out, and the model page lists no rate limits for the Free usage tier. The ChatGPT Pro and Business API credits benefit ($100 to $500 a month on Pro) does cover the Images API; see our guide to free OpenAI API options.
In Codex on ChatGPT plans, image generation isn't available on the Free plan at all. On paid plans, it uses your included limits about 3 to 5x faster on average than similar turns without image generation, depending on quality and size.
Generate gpt-image-2 images with your ChatGPT plan
Plan2API's POST /v1/images/generations and POST /v1/images/edits endpoints render gpt-image-2 on your own connected ChatGPT (Codex) subscription, so a plan with Codex such as Plus or Pro does the work and Plan2API never bills per token. You connect the plan once (see ChatGPT subscription API), but the image endpoints are available on Plan2API Pro ($12 a month) and Scale only, and calling them on the Free plan returns HTTP 403 with type plan_limit (see pricing for plan details).
There are a few differences from OpenAI's direct API when routing through your subscription: size sets the aspect ratio only (from 1:3 to 3:1, about 1.57 megapixels per image), output is PNG as b64_json only, n is 1 to 4, there is no streaming and no masks, and edits take up to 5 source images. A render takes about 15 to 45 seconds, and up to about 110 seconds at high quality, so set your client timeouts above 2 minutes.
curl https://api.plan2api.com/v1/images/generations \
-H "Authorization: Bearer $PLAN2API_KEY" \
-H "Content-Type: application/json" \
--max-time 180 \
-d '{
"model": "gpt-image-2",
"prompt": "A watercolor fox reading a map, soft morning light",
"n": 1,
"size": "1536x1024",
"quality": "high",
"response_format": "b64_json"
}' | jq -r '.data[0].b64_json' | base64 --decode > fox.pngUse the AI subscriptions you already pay for as one OpenAI-compatible API key.
- Free: 1 subscription, 50 requests a day, no card
- Pro: $12 a month
FAQ
How much does gpt-image-2 cost per image?
gpt-image-2 costs $0.006 at low, $0.053 at medium, and $0.211 at high quality for a 1024x1024 image, or $0.005, $0.041, and $0.165 for 1024x1536 and 1536x1024. Text and image input tokens are billed on top.
Is gpt-image-2 free?
Not on OpenAI's API, where requests need prepaid credit (at least $5 for pay-as-you-go accounts), though ChatGPT Pro and Business API credits do cover the Images API. If you already pay for a ChatGPT plan with Codex, Plan2API Pro and Scale can render gpt-image-2 on your ChatGPT plan's own limits without per-token billing.
What sizes does gpt-image-2 support?
It accepts any size where both edges are multiples of 16 px, the longest edge is at most 3840 px, the long-to-short ratio is up to 3:1, and the total sits between 655,360 and 8,294,400 pixels, such as 1024x1024, 2048x2048, or 3840x2160 (plus auto by default).
Can I use gpt-image-2 with Chat Completions?
No. OpenAI lists v1/images/generations, v1/images/edits, and v1/batch as the supported endpoints for gpt-image-2, while v1/chat/completions and v1/responses are listed as not supported.
What are the gpt-image-2 rate limits?
OpenAI caps gpt-image-2 at 20 images per minute on Build, 150 on Launch, and 250 on Grow, alongside token limits of 250,000, 3,000,000, and 8,000,000 tokens per minute across those three tiers.
What is the difference between gpt-image-2 and gpt-image-2.5?
gpt-image-2.5-sunburst and gpt-image-2.5-flare cost the same per token as gpt-image-2 and add xhigh and max quality settings on top of low, medium, and high.
Sources
- OpenAI image generation guidedevelopers.openai.com
- OpenAI model page: gpt-image-2developers.openai.com
- OpenAI API pricingdevelopers.openai.com
- OpenAI Help: Prepaid API billinghelp.openai.com
- OpenAI Help: API credits benefithelp.openai.com
- OpenAI Codex pricinglearn.chatgpt.com
- OpenAI Images API reference: create imagedevelopers.openai.com