GPT Image family
OpenAI’s image generation models, five in total: the latest gpt-image-2.6-flare and gpt-image-2.6-sunburst, the previous gpt-image-2.5-flare and gpt-image-2.5-sunburst, and gpt-image-2. All are called through the OpenAI-compatible API.
What do you want to do?
The request structure and response fields shared by these endpoints are in Images API.
Which model to use
gpt-image-2.6-flare for text to image and gpt-image-2.6-sunburst for editing.- Everyday and batch generation; fast
- 6 quality tiers: low to max
- Supports complexity, SVG and animated GIF
- Editing and combining images; fidelity first
- 6 quality tiers: low to max
- Supports complexity, SVG and animated GIF
- Fine for existing projects
- 6 quality tiers; supports markup editing
- No complexity, SVG or GIF
- Fine for existing projects
- 4 quality tiers; no xhigh or max
2.6 and 2.5 share the same token prices, quality tiers and size rules, so switching only means changing the model ID. At the same tier, however, 2.6 outputs more tokens, so each image costs more — see Quality and price. For what 2.6 adds, see New in 2.6. When moving from gpt-image-2, choose the quality tier again — see Quality and price below.
2.6 is currently served by OpenAI only; 2.5 and gpt-image-2 are served by both Azure and OpenAI, and the gateway routes requests automatically — see Selecting a provider.
openai/gpt-image-2.6-flareEveryday and batch generation; fastopenai/gpt-image-2.6-sunburstEditing and combining images; fidelity firstopenai/gpt-image-2.5-flareFor editing use openai/gpt-image-2.5-sunburstopenai/gpt-image-2No xhigh or max tiersNew in 2.6
svg.model text model — see SVG cost.complexity controls how much compute the model spends planning the image before generating it, independently of quality, which controls rendering detail. Raising it can make complex compositions more accurate, but it is slower and may introduce unwanted changes.
SVG cost
SVG is generated in two steps and billed in two parts. First a reference image is generated at the given quality and billed at the image model’s price. Then the text model you choose in svg.model (any OpenAI text model on OfoxAI, without the openai/ prefix) turns the reference image into SVG code; that part is billed separately at the text model’s price, and its usage is recorded in svg_usage in the response.
The table below is from tests with the same prompt at 1024x1024, low tier. The first part is about $0.025 in every case; the difference comes entirely from the model that writes the SVG:
Output tokens for writing SVG vary widely — runs of the same model can differ several-fold — so treat the numbers in the table as orders of magnitude only.
Quality (quality) and price
quality explicitly and use low during development. Omitting it is not the same as medium.quality has the biggest effect on price. Higher tiers cost more and take longer.
OpenAI’s official reference prices (per image, output image only; prompt and reference images not included):
OpenAI has not published a per-image price table for the four 2.6 and 2.5 models. It gives unit prices instead, the same for all four: $30 per million output image tokens, $8 per million reference image input tokens, and $5 per million text input tokens.
Same unit prices, but different token counts per image: at the same 1024×1024, 2.6 outputs far more tokens than 2.5. Measured (2026-11-05):
For other tiers and sizes, estimate with the official calculator .
These are OpenAI’s official figures; the actual charge follows usage in each response. OfoxAI’s live prices (including discounts) are on the model page .
Tiers supported by each model:
standard and hd (old DALL·E values) are not supported and return 400.
Latency and timeouts (timeout)
The API is synchronous: the response is returned only once the image has been generated. If the client disconnects early, you cannot get the image, but the request is still billed.
Latency varies with the model, quality and size. High-quality, large-size and editing requests may take several minutes, which common default timeouts of 60 or 120 seconds do not cover.
Size (size)
size takes a custom width and height in the form WIDTHxHEIGHT, but all four rules below must hold; breaking any one returns 400.
- Width and height both divisible by 16
- Neither side exceeds 3840
- Aspect ratio between 1:3 and 3:1
- At least 655,360 pixels in total
Omitted or auto Common mistake: the model picks the size. It is not guaranteed to be 1024×1024, or to match your reference image. In our tests both text to image and editing returned 1254×1254. Pass a size explicitly when you need a fixed one.
The documented maximum is 3840×2160; anything above 2560×1440 is an experimental resolution.
Technical specs
Selecting a provider
Select one when you have content moderation requirements: providers apply different moderation thresholds. For example, gpt-image-2 is stricter on Azure and comparatively lenient on OpenAI.
The two 2.6 models are currently served by OpenAI only; selecting azure_foundry returns No available channel for platform 'azure_foundry'.
The gateway picks an available provider between Azure and OpenAI automatically.
Requests go only to that provider; if it is unavailable, they will not fall back to another provider.
X-OfoxAI-Provider-Type: openaiWorks on both text to image and editing; values: azure_foundry, openai"extra_body": { "provider": { "type": "openai" } }Text to image only; editing is a multipart upload and accepts the header onlyFull details: Provider routing.
Common errors
moderation_blocked) and timeouts are the most common.Full error reference: Error Handling.
Exact error messages
The full messages we measured, so you can search for or compare against them:
Invalid size '1000x1000'. Width and height must both be divisible by 16.
Invalid size '4096x4096'. The longest edge must be less than or equal to 3840.
Invalid size '3200x1024'. The maximum supported aspect ratio is 3:1.
Invalid size '768x768'. Requested resolution is below the current minimum pixel budget.
The model 'gpt-image-2' does not support quality 'xhigh'.
Invalid value: 'standard'. Supported values are: 'low', 'medium', 'high', and 'auto'.
Invalid 'n': integer above maximum value. Expected a value <= 10, but got 11 instead.
Unknown parameter: 'style'.
The model 'gpt-image-2.5-sunburst' does not support the 'input_fidelity' parameter.
Transparent background is not supported for JPEG output format
Invalid file 'image[0]': unsupported mimetype ('text/plain; charset=utf-8'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp'.
unknown provider type in X-OfoxAI-Provider-Type header
Model 'GPT-Image-2' not found
Invalid image file or mode for image 1
No available channel for platform 'azure_foundry' on model 'openai/gpt-image-2.6-flare'. Available platforms for this model: openai.
No supported sheet fits 9 GIF frames at size '256x256'. Invalid size '768x768'. Requested resolution is below the current minimum pixel budget.
SVG output requires an svg object with a model, e.g. {"svg":{"model":"gpt-6-luna"}}. [ofox.ai]
SVG author model 'gpt-5.5-mini' is not supported for svg.model. [ofox.ai]
SVG output supports only n=1. [ofox.ai]Note that the list of supported values in Invalid value: 'standard' is incomplete: the four 2.6 and 2.5 models also accept xhigh and max. Go by the tier table on this page.
Parameters that have no effect
These parameters do not cause an error, but do nothing for this family. The request succeeds and is billed as usual:
Note: no error does not mean it worked. style, for example, is rejected outright, while the ones above are silently ignored.
Official docs
OpenAI’s docs describe behavior when you call OpenAI directly. When you call through OfoxAI, the measured results in these pages take precedence. For example, pricing follows the usage in the response and the model page.
- OpenAI image generation guide
- OpenAI image generation guide · Limitations
- OpenAI Images API reference
- OpenAI model page: gpt-image-2.6-flare
- OpenAI model page: gpt-image-2.6-sunburst
- OpenAI model page: gpt-image-2.5-flare
- OpenAI model page: gpt-image-2.5-sunburst
- OpenAI model page: gpt-image-2
FAQ
What is the difference between GPT Image 2.6 and 2.5?
Token prices, quality tiers and size rules are the same, so you only need to change the model ID — but at the same tier 2.6 outputs more tokens per image: at 1024x1024 low we measured 824 tokens for 2.6 (about $0.025) versus 196 for 2.5 (about $0.006). 2.6 adds complexity (how much planning happens before generation: low, medium, high), SVG vector output and animated GIF output; markup editing is supported by both 2.5 and 2.6. 2.6 is currently served by OpenAI only, while 2.5 is served by both Azure and OpenAI.
Can GPT Image 2.6 generate SVG or GIF?
Yes. SVG is available only on the text-to-image endpoint: set output_format to svg and use svg.model to choose the model that writes the SVG (your choice — any OpenAI text model on OfoxAI, without the openai/ prefix; pick gpt-6-luna to save money), and n must be 1. SVG adds a separate charge for writing the SVG at the svg.model price. GIF works on both the text-to-image and edit endpoints: set output_format to gif and use frame_count (2–16, default 9) and frame_duration_ms (default 200) to control the frame count and per-frame duration. Neither format supports streaming.
Does GPT Image 2.5 accept any size?
It accepts custom sizes as long as four rules hold: width and height divisible by 16, longest edge no more than 3840, aspect ratio between 1:3 and 3:1, and at least 655,360 total pixels. Breaking any rule returns 400. For example, 768x768 has too few pixels and is rejected, while 1024x768 works.
What size do I get if I omit size?
The model decides. It is not necessarily 1024x1024 and does not necessarily match the reference image. In our tests both text to image and editing returned 1254x1254. Pass a size explicitly if you need a fixed one.
Does gpt-image-2 support xhigh and max quality?
No, both return 400. xhigh and max are only supported by the four flare and sunburst models of 2.6 and 2.5. gpt-image-2 accepts low, medium, high and auto.
Can GPT Image 2.5 quality be hd or standard?
No, those return 400. Valid values are low, medium, high, xhigh, max and auto. If omitted, the model picks a tier itself (low in our tests), so set it explicitly for consistent quality.
What timeout should I set for the gpt-image-2 / GPT Image 2.5 API?
Set the client timeout to 600 seconds. Latency varies with the model, quality and size; high-quality, large-size and editing requests may take several minutes.
How do I fix the GPT Image error moderation_blocked (Your request was rejected by the safety system)?
The prompt or reference image was blocked by the upstream safety system, typically for real people, copyrighted characters or sensitive content. Change the prompt or reference image and try again; retrying unchanged gives the same result. error.moderation_details in the response indicates whether the block happened at the input or output stage. Providers apply different moderation thresholds, so consider selecting a provider if you have moderation requirements.
How do I fix the GPT Image error Unknown parameter: response_format?
response_format is an old DALL·E parameter. GPT Image only returns base64 (data[0].b64_json) and does not provide image URLs. Remove response_format and use output_format to choose png, jpeg or webp. Through OfoxAI the parameter is ignored and does not cause an error.
What should I do about "Your organization must be verified" when calling gpt-image?
That is the organization verification OpenAI requires for direct access. Through OfoxAI you do not need to verify an organization yourself: an OfoxAI API key can call GPT Image 2.6, 2.5 and gpt-image-2.
What should I do when GPT Image requests time out or return 504 or 524?
The API is synchronous, and high-quality, large-size and editing requests may take several minutes. Set the client timeout to 600 seconds, and check the timeouts of intermediate proxies such as Nginx, Vercel or Cloudflare, whose defaults are often only 60 to 100 seconds.
How do I fix the GPT Image error does not support the input_fidelity parameter?
GPT Image 2.5 and gpt-image-2 always process reference images at high fidelity, so the edit endpoint does not accept input_fidelity. Remove it; the parameter only applies to gpt-image-1.5.
How do I fix the GPT Image error Invalid size?
The size breaks one of the four rules, and the message says which: divisible by 16 means width or height is not a multiple of 16; longest edge means the longest side is over 3840; aspect ratio means the ratio is beyond 3:1; minimum pixel budget means fewer than 655,360 pixels, e.g. 768x768. Use a size that meets all four, such as 1024x768, 1024x1024 or 1536x1024.
How much does one GPT Image image cost?
Billing is by token, and the quality tier matters most. Official OpenAI reference prices for a 1024x1024 image with gpt-image-2: about $0.006 at low, $0.053 at medium and $0.211 at high. For the four 2.6 and 2.5 models, output image tokens cost $30 per million; 1024x1024 at low is about $0.006 on 2.5 and about $0.025 on 2.6. What you are actually charged is the usage in the response; live OfoxAI prices are on the model page.
Do I need to pin a provider when editing with GPT Image?
No, the gateway routes requests automatically. 2.5 and gpt-image-2 are served by both Azure and OpenAI; 2.6 is currently served by OpenAI only, and pinning azure_foundry returns an error.