GPT Image 2.6 API guide: Flare, Sunburst and the Economy tier
Call GPT Image 2.6 on DreamTo with the OpenAI SDK: Flare and Sunburst model IDs, generation and edit requests, size and quality rules, GIF, SVG and Economy.

On this page
GPT Image 2.6 runs on DreamTo behind the two endpoints the OpenAI SDKs already call: POST /v1/images/generations and POST /v1/images/edits. Point the SDK at https://api.dreamto.ai/v1, send your DreamTo API key, and choose a spec by model ID: gpt-image-2.6-flare for fast iteration or gpt-image-2.6-sunburst for detailed work.
This guide covers a first generation request, edits with reference images, the size and quality rules, GIF and SVG output, and the per-request Economy route. It also lists what the gateway does not support yet, and where the model catalog is narrower than the API docs. The reference pages are GPT Image 2.6 and GPT Image 2.6 Economy.
Four model IDs in two families#
Flare and Sunburst are the two specs of GPT Image 2.6. Each has an Economy twin that is billed per request instead of per token.
| Model ID | Spec | Billing |
|---|---|---|
gpt-image-2.6-flare | Flare, fast iteration | Per 1M tokens |
gpt-image-2.6-sunburst | Sunburst, detailed visual work | Per 1M tokens |
gpt-image-2.6-flare-economy | Flare on the Economy route | Per request |
gpt-image-2.6-sunburst-economy | Sunburst on the Economy route | Per request |
The catalog describes Flare as the fast model, built for interactive editing: as little as six seconds per image at low quality, with better layout for posters and product shots. It describes Sunburst as the detail model, with higher quality and steadier results across edits at medium or high quality. Both use the same endpoints, so switching is a one-line change to model.
The catalog suggests using them together: check on Flare whether a composition works, then run the chosen prompt on Sunburst when detail and text placement matter. To compare them, hold the reference image, dimensions and quality setting constant, and record response time and text legibility.
You can try each spec in the browser first, in the Flare playground and the Sunburst playground. The model pages are /gpt-image-2-6-flare and /gpt-image-2-6-sunburst.
A first generation request#
Authentication is a bearer header. Create an API key in the DreamTo console and export it as DREAMTO_API_KEY; the authentication page has the details.
curl -X POST "https://api.dreamto.ai/v1/images/generations" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2.6-sunburst", "prompt": "An orange cat in an astronaut helmet floating in space with Earth behind it, photorealistic", "size": "1024x1024", "quality": "medium" }'The same call through the official OpenAI Python SDK changes only the base URL and the key:
import base64import osfrom openai import OpenAIclient = OpenAI( base_url="https://api.dreamto.ai/v1", api_key=os.environ["DREAMTO_API_KEY"],)result = client.images.generate( model="gpt-image-2.6-flare", prompt="An orange cat in an astronaut helmet floating in space with Earth behind it, photorealistic", size="1024x1024", quality="medium",)with open("output.png", "wb") as f: f.write(base64.b64decode(result.data[0].b64_json))The request is synchronous. The API reference gives 10 to 90 seconds as the usual range, longer for high quality and large sizes, and says to set the client timeout to at least 5 minutes. As with OpenAI, the image comes back as Base64 in data[].b64_json, so decode it and write the bytes yourself. The response also carries a usage object with input and output token counts. Invalid requests and failed generations are not charged.
Parameters, sizes and quality#
The docs give one parameter table for both specs, and the Economy page repeats it.
| Field | Values |
|---|---|
prompt | Required, up to 32,000 characters |
size | auto (default) or WIDTHxHEIGHT |
quality | auto (default), low, medium, high, xhigh, max |
n | 1 to 10, default 1 |
background | auto (default), opaque, transparent |
output_format | png (default), jpeg, webp, gif, svg |
output_compression | 0 to 100, default 100, jpeg and webp only |
stream | true streams SSE events; partial_images sets 0 to 3 previews |
complexity | low, medium, high (default) |
svg.model | Required with output_format: svg |
Where the catalog is narrower than the docs#
The docs say both specs share the same parameters and that the Economy IDs take them too. The per-model parameter lists in the catalog do not fully agree:
gpt-image-2.6-flarelistsqualityfromautotohighonly, andpng,jpegandwebpas output formats.gpt-image-2.6-sunburstis the only model ID whose list includesgif,svgandcomplexity.- The two Economy IDs list
qualityup tomax, but notgif,svgorcomplexity.
So the GIF and SVG examples below use gpt-image-2.6-sunburst, as the docs examples do. If you need xhigh, GIF, SVG or complexity on another model ID, send one test request first. An invalid value or an unsupported parameter returns 400 and is not charged.
Size#
size is auto or a WIDTHxHEIGHT string. A custom value has to satisfy all of these:
- both edges are multiples of 16;
- the longest edge is at most 3840;
- the long-to-short ratio is at most 3:1;
- total pixels are between 655,360 and 8,294,400.
The docs name 1024x1024, 1536x1024 and 1024x1536 as the common sizes. Check the rules together, because a size can pass one and fail another: 3840x2160 is 8,294,400 pixels, exactly the upper bound, and 3840x1280 sits on the 3:1 limit, but 3840x3840 passes the edge and ratio rules and exceeds the pixel count.
Quality and complexity#
The API reference describes low as the fastest and cheapest tier, good for drafts, and high as the tier for the best detail and text. Above that, xhigh and max take longer and, on the token-billed route, use more output tokens. The docs pass on OpenAI's recommendation to use them only when lower tiers miss a quality requirement and the latency is acceptable.
complexity is a separate control: how much the model plans before rendering. It defaults to high, for complex layouts and many elements; low plans the least and is the fastest, for simple images. The reference gives a rule for choosing between the two: when the layout is right but small text is hard to read, raise quality, not complexity.
Streaming previews#
With stream: true the response is SSE instead of a single JSON body. partial_images sets how many previews are pushed first, from 0 to 3, and each preview adds about 100 output tokens.
Transparent backgrounds#
background: transparent needs png or webp output, so set both fields together. The API reference notes that transparency is a preview feature upstream.
curl -X POST "https://api.dreamto.ai/v1/images/generations" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2.6-flare", "prompt": "A single enamel pin of a paper boat, flat vector style, centered, no background elements", "size": "1024x1024", "quality": "low", "background": "transparent", "output_format": "png" }'Editing with reference images#
POST /v1/images/edits takes multipart/form-data, with model, prompt and at least one image[] file required. Repeat image[] for several references: up to 16 files in png, jpeg or webp, each under 50 MB. The docs example prints a logo from a second image onto the product in the first:
curl -X POST "https://api.dreamto.ai/v1/images/edits" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -F "model=gpt-image-2.6-sunburst" \ -F "prompt=Print the logo from the second image on the tote bag in the first image; keep the product-photo style" \ -F "image[][email protected]" \ -F "image[][email protected]" \ -F "size=1024x1024" \ -F "quality=medium"An optional mask PNG marks the area to change with transparent pixels. It must be the same size as the first input image.
Three inputs are not supported yet. The newer JSON images form and file_id are not accepted, so reference images have to be multipart uploads. The markup annotation parameter is not supported either, although the catalog's family description mentions markup-guided edits.
The catalog's advice for reference edits: give each reference one job, for example one image for the subject and another for materials or color, and name in the prompt what each one contributes. Break a complex edit into single changes, such as the counter surface first and the sign color next, and inspect the affected area after each round.
GIF and SVG output#
GPT Image 2.6 adds two output formats that GPT Image 2.5 did not have. Both come with restrictions.
Animated GIF#
Set output_format to gif:
curl -X POST "https://api.dreamto.ai/v1/images/generations" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2.6-sunburst", "prompt": "A looping pixel-art animation of a kitten wagging its tail", "size": "1024x1024", "output_format": "gif" }'The result is the default 9-frame animation. The upstream frame_count (2 to 16) and frame_duration_ms (20 to 2000) parameters are not supported yet and return 400, so you cannot change the frame count or timing. GIF output does not support streaming, previews or output_compression.
SVG vector#
Set output_format to svg and pass svg.model, the text model that writes the SVG. The docs use gpt-6.1-terra as the example value. Without it the request returns 400 missing_required_parameter. SVG works for generations only: n must be 1, and streaming, previews and output_compression are not available. b64_json decodes to UTF-8 SVG (XML) with editable paths, shapes and colors.
In the JSON body, svg.model is a nested object. With the OpenAI Python SDK and the client from the first example, extra_body adds both fields to the request as written:
result = client.images.generate( model="gpt-image-2.6-sunburst", prompt="A simple two-color outdoor brand logo combining a mountain and a sun", size="1024x1024", extra_body={ "output_format": "svg", "svg": {"model": "gpt-6.1-terra"}, },)svg = base64.b64decode(result.data[0].b64_json).decode("utf-8")with open("logo.svg", "w", encoding="utf-8") as f: f.write(svg)The Economy route#
The Economy model IDs call the same model through the same endpoints, with the same request and response format. They are billed per request, at one price for every size, and the docs position them for cost-sensitive batch jobs that can wait longer. Only model changes: in the first example, replace gpt-image-2.6-sunburst with gpt-image-2.6-sunburst-economy.
The catalog's guidance for this tier is to plan by request count: estimate calls from the number of concepts, revisions and placement sizes, and set aside a round for changes after review. It also says to read the selected model's listing for dimensions, quality options and image inputs before you fix a batch template, then run a representative sample. The model pages are /gpt-image-2-6-flare-economy and /gpt-image-2-6-sunburst-economy, and there is a Flare Economy playground.
Prices#
As of December 2026, the catalog lists these prices, after the discount it shows for each route (60% on the standard models, 92% on Economy). See /prices for the current figures.
| Model ID | Price | Unit |
|---|---|---|
gpt-image-2.6-flare, gpt-image-2.6-sunburst | Text input $2, cache read $0.5, image input $3.2, cached image input $0.8, image output $12 | per 1M tokens |
gpt-image-2.6-flare-economy, gpt-image-2.6-sunburst-economy | $0.004 | per request |
The standard route is billed on tokens, so the cost of one image depends on the request; the docs give no per-image figure, and this guide does not estimate one. The usage object in each response reports the token counts for that call. On the Economy route, budgeting a batch means counting requests. Prices for every model are in the model catalog.
Errors and what to check first#
Errors come back as real HTTP status codes with the DreamTo error envelope. The API reference for these two endpoints lists five:
| HTTP | Example error.code | Meaning |
|---|---|---|
| 400 | invalid_request | A required parameter is missing, a value is invalid or a parameter is not supported. Not charged. |
| 401 | unauthorized | Missing or invalid API key |
| 402 | insufficient_balance | Insufficient balance |
| 429 | rate_limit_exceeded | Too many requests; retry later |
| 502 | service_unavailable | Upstream generation failed, including content moderation refusals. Not charged; you may retry. |
The errors page gives the general rule: 4xx errors other than 429 usually need a corrected request, while 429 and 5xx can be retried with exponential backoff. The error body includes a request_id; quote it when you report a problem.
For a 400, check these first:
- a parameter the gateway does not declare, which returns 400 without calling the model or charging you;
output_format: svgwithoutsvg.model;frame_count,frame_duration_msor a JSONimagesfield;- a
sizethat breaks one of the four size rules.
Also confirm that background: transparent is paired with png or webp.
Related reading: how to choose an AI image API compares this model with the other image families on DreamTo, product photo prompts covers prompt construction for product shots, and the OpenAI-compatible API guide shows the same one-key pattern for text models.
FAQ#
What is the difference between GPT Image 2.6 Flare and Sunburst?#
Both are specs of GPT Image 2.6 on the same two endpoints. The catalog describes Flare as the fast model, with as little as six seconds per image at low quality, and Sunburst as the detail model with steadier results across edits. You switch by changing model between gpt-image-2.6-flare and gpt-image-2.6-sunburst.
What sizes does the GPT Image 2.6 API accept?#
size is auto or WIDTHxHEIGHT. Both edges must be multiples of 16, the longest edge at most 3840, the long-to-short ratio at most 3:1, and the total pixel count between 655,360 and 8,294,400.
Can GPT Image 2.6 output SVG or animated GIF?#
Yes. Set output_format to svg or gif. SVG requires svg.model (the text model that writes the SVG), works for generations only, and needs n of 1. GIF returns the default 9-frame animation because frame_count and frame_duration_ms are not supported yet. Neither format supports streaming or output_compression. The catalog lists both formats under gpt-image-2.6-sunburst only, so test them first on any other model ID.
How do I edit an image with the GPT Image 2.6 API?#
Send a multipart/form-data request to /v1/images/edits with model, prompt and one or more image[] files (up to 16), plus an optional mask. JSON images, file_id and markup are not supported yet. Images come back as Base64 in data[].b64_json.
What is the Economy tier and when should I use it?#
Economy model IDs such as gpt-image-2.6-flare-economy call the same model at a lower price, billed per request with one price for every size. The docs position it for cost-sensitive batch jobs that can wait longer. As of December 2026 the catalog lists $0.004 per request; check /prices for the current figure.
Do I need a separate SDK to call GPT Image 2.6 on DreamTo?#
No. The official OpenAI SDKs work. Set the base URL to https://api.dreamto.ai/v1 and send your DreamTo API key in the Authorization: Bearer header.


