GPT Image 2 and 2.5 API Pricing per Image (November 2026): GPT Image 2.6, Flare vs Sunburst, Calculator and Python Examples
On this page
Short answer: OpenAI bills GPT Image models by tokens, at $30 per million image output tokens, so a 1024×1024 image costs about:
| Quality | GPT Image 2 | GPT Image 2.5 (Flare, Sunburst) | GPT Image 2.6 (Flare, Sunburst) |
|---|---|---|---|
| low | $0.006 | $0.006 | $0.025 |
| medium | $0.053 | $0.013 | $0.043 |
| high | $0.211 | $0.053 | $0.053 |
| xhigh | not available | $0.094 | $0.094 |
| max | not available | $0.211 | $0.211 |
The Batch API halves every price. Portrait and landscape images (1024×1536, 1536×1024) cost a little less than square ones. gpt-image-2 is now deprecated and shuts down on February 26, 2027, and OpenAI recommends GPT Image 2.6 for new work.
Prices are from OpenAI's pricing page, image generation guide, model pages and deprecations page, checked November 23, 2026. The gpt-image-2 prices at the three standard sizes are OpenAI's published table; every other per-image price comes from the cost calculator in OpenAI's image generation guide, which we reproduced with the same formula. We ran the Python examples with openai 3.57.0 against a test endpoint to confirm the request format.
Price per image by size and quality
Image output cost per image, Standard processing. Add a little for the prompt and for any reference images you send.
| Model | Quality | 1024 × 1024 | 1024 × 1536 or 1536 × 1024 | 2048 × 2048 | 3840 × 2160 (4K) | 1024 × 1024, Batch |
|---|---|---|---|---|---|---|
| GPT Image 2 | low | $0.006 | $0.005 | $0.012 | $0.011 | $0.003 |
| GPT Image 2 | medium | $0.053 | $0.041 | $0.107 | $0.100 | $0.026 |
| GPT Image 2 | high | $0.211 | $0.165 | $0.428 | $0.400 | $0.105 |
| GPT Image 2.5 Flare / Sunburst | low | $0.006 | $0.005 | $0.012 | $0.011 | $0.003 |
| GPT Image 2.5 Flare / Sunburst | medium | $0.013 | $0.010 | $0.027 | $0.026 | $0.007 |
| GPT Image 2.5 Flare / Sunburst | high | $0.053 | $0.041 | $0.107 | $0.100 | $0.026 |
| GPT Image 2.5 Flare / Sunburst | xhigh | $0.094 | $0.074 | $0.190 | $0.178 | $0.047 |
| GPT Image 2.5 Flare / Sunburst | max | $0.211 | $0.165 | $0.428 | $0.400 | $0.105 |
| GPT Image 2.6 Flare / Sunburst | low | $0.025 | $0.020 | $0.050 | $0.047 | $0.012 |
| GPT Image 2.6 Flare / Sunburst | medium | $0.043 | $0.034 | $0.088 | $0.086 | $0.022 |
| GPT Image 2.6 Flare / Sunburst | high | $0.053 | $0.041 | $0.107 | $0.100 | $0.026 |
| GPT Image 2.6 Flare / Sunburst | xhigh | $0.094 | $0.074 | $0.190 | $0.178 | $0.047 |
| GPT Image 2.6 Flare / Sunburst | max | $0.211 | $0.165 | $0.428 | $0.400 | $0.105 |
How to read it:
- OpenAI's calculator gives one estimate for Flare and Sunburst in each generation. OpenAI also notes that "equal token rates don't mean equal cost per image", so read
usagein each response for the real number. - GPT Image 2.5 costs less than gpt-image-2 at the same quality name. In the calculator, 2.5
highuses as many tokens as gpt-image-2medium, and 2.5maxas many as gpt-image-2high. Compare the output, not just the label. - GPT Image 2.6 costs more than 2.5 at low and medium (about 4× and 3×). From
highup, the two estimates are identical. - Bigger isn't always dearer. The token count depends on the shape as well as the pixel count, so a portrait or landscape image is cheaper than a square one, and 3840×2160 comes out slightly cheaper than 2048×2048. On GPT Image 2.5, sizes above 2560×1440 are experimental.
- Streaming previews (
partial_images) add 100 image output tokens each, about $0.003 per preview.
Token rates
GPT Image 2, 2.5 and 2.6 all share the same rates, per million tokens:
| Image input | Cached image input | Image output | Text input | Cached text input | |
|---|---|---|---|---|---|
| Standard | $8 | $2 | $30 | $5 | $1.25 |
| Batch | $4 | $1 | $15 | $2.50 | $0.625 |
Image output is almost all of the cost. Reference images for edits are billed as image input. For gpt-image-2 and GPT Image 2.5, cached input pricing only applies to the image generation tool in the Responses API, not to direct Images API calls, including edits. Changing the GPT Image 2.6 complexity setting has no separate fee.
GPT Image cost calculator
This uses the same formula as the calculator in OpenAI's image generation guide, at $30 per million image output tokens. It estimates image output only; add a little for prompt and reference-image input.
Which model to use
| Model | Model ID | Use it for | Quality settings | Status (November 23, 2026) |
|---|---|---|---|---|
| GPT Image 2.6 Sunburst | gpt-image-2.6-sunburst |
Detailed compositions and editing | low to max, plus auto |
Current, released November 4, 2026 |
| GPT Image 2.6 Flare | gpt-image-2.6-flare |
Fast iteration | Same as Sunburst | Current, released November 4, 2026 |
| GPT Image 2.5 Sunburst | gpt-image-2.5-sunburst |
Workflows where editing precision matters most | low to max, plus auto |
Active; snapshot gpt-image-2.5-sunburst-2026-09-08 |
| GPT Image 2.5 Flare | gpt-image-2.5-flare |
Fast, high-quality everyday generation | Same as Sunburst | Active; snapshot gpt-image-2.5-flare-2026-09-08 |
| GPT Image 2 | gpt-image-2 |
Existing integrations only | low, medium, high |
Deprecated; shuts down February 26, 2027 |
GPT Image 2.6 adds four things to the 2.5 feature set: a complexity setting that controls how much the model plans before rendering, markup-guided edits, SVG output and animated GIF output. OpenAI lists the 2.6 models as the replacement for gpt-image-2 and for the older GPT Image 1 family: gpt-image-1 shut down on October 23, 2026, and gpt-image-1.5 and gpt-image-1-mini are scheduled to shut down on December 1, 2026, and chatgpt-image-latest on December 11, 2026.
A practical way to choose:
- Cheapest drafts: GPT Image 2.5 at
low, about $0.006 per square image. - New features or the newest model: GPT Image 2.6. Flare for speed, Sunburst for detail.
- Still on gpt-image-2: plan the move before February 26, 2027. Test 2.5
highagainst your currentmediumoutput, and 2.5maxagainsthigh; the calculator puts them at the same price.
Generate an image in Python
Install the SDK with pip install --upgrade openai and set OPENAI_API_KEY. We checked these calls with openai 3.57.0.
import base64
from openai import OpenAI
client = OpenAI(timeout=300) # reads OPENAI_API_KEY; complex prompts can take two minutes
result = client.images.generate(
model="gpt-image-2.6-flare",
prompt="An orange cat watching the rain from a windowsill, 35mm film look",
size="1024x1024",
quality="medium",
complexity="medium", # GPT Image 2.6 only: low, medium or high (default high)
)
with open("cat.png", "wb") as f:
f.write(base64.b64decode(result.data[0].b64_json))
print(result.usage) # tokens actually used for this image
To use GPT Image 2.5, change the model to gpt-image-2.5-flare or gpt-image-2.5-sunburst and remove complexity.
With curl:
curl https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-2.5-flare", "prompt": "An orange cat watching the rain", "size": "1024x1024", "quality": "low"}'
Two practical points:
- The Images API returns base64, not a URL. Decode and save it, as above.
- Complex prompts can take up to two minutes. Set your HTTP client timeout above that, and check that any proxy in between doesn't cut requests off sooner.
Edit an image
Send the source image, and optionally a mask, to /v1/images/edits (client.images.edit(...) in Python) with an instruction. The image and mask must be the same format and size, and under 50 MB.
Markup-guided edits (GPT Image 2.5 and 2.6): instead of a mask, draw circles or sketches on a separate transparent PNG the same size as the image, send it as markup, and describe the change in the prompt. Don't combine markup with mask.
with open("kitchen.png", "rb") as image, open("circle-the-vase.png", "rb") as markup:
result = client.images.edit(
model="gpt-image-2.6-flare",
image=image,
markup=markup,
prompt="Make the circled vase deep blue",
)
For several rounds of edits on the same image, use the Responses API with the image_generation tool, which supports multi-turn editing and file IDs as inputs. There you pick a regular model at the top level and set the image model in the tool's model field.
Parameters
| Parameter | Values | Notes |
|---|---|---|
size |
1024x1024, 1536x1024, 1024x1536, auto, or a custom WIDTHxHEIGHT |
Custom sizes follow the rules below |
quality |
2.5 and 2.6: low to max, plus auto; gpt-image-2: low, medium, high |
Defaults to auto. Use explicit values when estimating cost |
complexity |
low, medium, high |
GPT Image 2.6; defaults to high, no separate fee |
n |
1 to 10 | Images per request (SVG needs 1) |
background |
transparent, opaque, auto |
Transparent needs png or webp output |
output_format |
png (default), jpeg, webp; 2.6 also svg, gif |
JPEG is faster. SVG only on generations |
output_compression |
0 to 100 | JPEG and WebP only |
frame_count, frame_duration_ms |
2 to 16 frames (default 9); 20 to 2000 ms (default 200) | GIF output only |
moderation |
auto (default), low |
low filters less strictly |
partial_images |
0 to 3 | Streaming previews, 100 extra output tokens each |
safety_identifier |
Up to 128 characters | A hashed user ID; replaces the deprecated user |
Custom sizes: use a WIDTHxHEIGHT string such as 1536x864. Both dimensions must be multiples of 16, the aspect ratio between 1:3 and 3:1, neither edge over 3,840 pixels, and the total between 655,360 and 8,294,400 pixels (4K). On GPT Image 2.5, anything above 2560×1440 is experimental.
SVG cost: the API first renders a reference image (billed at the image model's rates, set by quality) and then an authoring model writes the SVG (billed at that model's token rates).
Prompting within the model's limits
OpenAI lists a few limitations worth designing around:
- Text in images is much better than before but can still miss on small or precisely placed text. Quote the exact words and keep them short. On 2.6, a higher
complexitycan help with dense text and layouts. - Recurring characters or brand elements can drift between separate generations. Edit one image instead of regenerating.
- Precise layouts aren't always followed. Expect to iterate on structured compositions.
Before you start
- Organization verification: OpenAI says you may need to complete API Organization Verification before using GPT Image models.
- No free allowance: usage is billed from prepaid API credits. See How to get an OpenAI API key.
- Supported countries: OpenAI warns that using the API outside its supported countries and territories may get your account blocked.
Errors
| Error | Cause | Fix |
|---|---|---|
401 Incorrect API key provided: sk-proj-… (invalid_api_key) |
Wrong or revoked key | Re-copy the key; the message shows a masked version to compare |
| Organization verification required | Your organization isn't verified for GPT Image | Complete verification in the developer console |
| The model isn't supported on this endpoint | An image model used as the model in Chat Completions or Responses | Use the Images API, or the image_generation tool in Responses |
| Timeout | Long renders on complex prompts | Raise the client timeout above two minutes, or use the async endpoints on api.foo |
429 with credit_balance_exhausted |
No prepaid credit left | Add credit; retrying won't help |
Using GPT Image through a gateway
Gateways that support OpenAI's Images API work with the same code: change base_url and the key. api.foo, the service that publishes these docs, serves GPT Image models at https://api.foo/v1/images/generations; we confirmed the path and request format with a test key using the Python example above. Which image models are available, and their prices, are listed on the api.foo pricing page.
Async image generation on api.foo
The calls above are synchronous: the connection stays open until the image is ready, so a slow render, a short client timeout or a dropped connection loses the image. api.foo also offers async endpoints: submit, get a task ID straight away, then poll until the image is ready.
| Step | Request | Notes |
|---|---|---|
| 1. Submit | POST /v1/images/generations/asyncPOST /v1/images/edits/async |
Same body as the synchronous endpoint (JSON for generations, multipart for edits); returns 202 with a task_id |
| 2. Poll | GET /v1/images/tasks/{task_id} |
Every 3–5 seconds, with the same key; status goes from processing to completed or failed. Polling isn't billed |
| 3. Download | image_url or result.data[].url |
Valid for 24 hours, no key needed; save it promptly |
curl https://api.foo/v1/images/generations/async \
-H "Authorization: Bearer $APIFOO_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-2", "prompt": "An orange cat watching the rain from a windowsill, film look", "size": "1024x1024"}'
curl https://api.foo/v1/images/tasks/imgtask_3caf5443be9c2b51e6b7cc4b4550201a \
-H "Authorization: Bearer $APIFOO_KEY"
Billing is the same as the synchronous call: one charge per image, nothing for a failed task, nothing for polling. Up to 20 tasks per account can run at once (more returns 429, unbilled), and running tasks count against your concurrency limit. stream: true is rejected with 400. Slow renders can stay processing for several minutes; if a server restart interrupts a task, polling reports failed and asks you to submit it again.
Related
- Nano Banana API: Gemini image generation
- Grok API, including Grok Imagine
- OpenAI API pricing and calculator
- How to get an OpenAI API key
Sources
OpenAI documentation, checked November 23, 2026: Image generation guide (including its cost calculator), Pricing, model pages for gpt-image-2.6-sunburst, gpt-image-2.6-flare, gpt-image-2.5-sunburst, gpt-image-2.5-flare and gpt-image-2, Deprecations, Changelog, the Images API reference, Supported countries and Organization verification.
FAQ
How much does the GPT Image 2 API cost per image?
OpenAI bills image output at $30 per million tokens. For gpt-image-2 that works out to about $0.006 (low), $0.053 (medium) or $0.211 (high) for a 1024x1024 image, and $0.005, $0.041 or $0.165 for 1024x1536 or 1536x1024. The Batch API halves image output to $15 per million tokens. gpt-image-2 is deprecated and shuts down on February 26, 2027.
How much does GPT Image 2.5 cost per image?
Using OpenAI's own calculator, a 1024x1024 image from gpt-image-2.5-flare or gpt-image-2.5-sunburst costs about $0.006 at low quality, $0.013 at medium, $0.053 at high, $0.094 at xhigh and $0.211 at max. Batch halves these. The calculator gives one estimate for both models, and the usage field in each response shows what an image actually cost.
How much does GPT Image 2.6 cost, and is it more expensive than 2.5?
The token rates are the same ($30 per million image output tokens), but OpenAI's calculator gives GPT Image 2.6 about 4 times as many output tokens at low quality and about 3 times at medium. A 1024x1024 image costs about $0.025 (low) and $0.043 (medium) on 2.6, against $0.006 and $0.013 on 2.5. At high, xhigh and max the estimates are the same.
What's the difference between GPT Image 2, 2.5 and 2.6?
gpt-image-2 is the older model, with low, medium and high quality, and is now deprecated. GPT Image 2.5 (snapshots dated September 8, 2026) adds xhigh and max quality and custom sizes up to 4K. GPT Image 2.6, released November 4, 2026, adds a complexity setting, markup-guided edits, SVG output and animated GIF output, and is what OpenAI recommends for new integrations. Each generation comes as Flare (faster) and Sunburst (more detailed).
Is the GPT Image API free?
No. Image generation is billed per token from your OpenAI API credits, and the pricing page has no free allowance for image models. Image generation inside ChatGPT follows your ChatGPT plan, which is separate from the API.
Does the GPT Image API return a URL or base64?
The Images API returns base64-encoded image data, PNG by default, with JPEG and WebP available. GPT Image 2.6 can also return SVG or animated GIF. Decode the data and save it to a file, as in the examples on this page.
Do I need organization verification to use GPT Image?
You may. OpenAI says you may need to complete API Organization Verification in the developer console before using GPT Image models.
Can I use gpt-image-2 in the Chat Completions or Responses API?
Not as the model. The image models work with /v1/images/generations, /v1/images/edits and the Batch API. In the Responses API you call them through the image_generation tool from a regular model.
Found a mistake? Email support@api.foo.