GPT Image 2.6 Flare
GPT Image 2.6 is OpenAI's newest image generation and editing model in two specs: gpt-image-2.6-sunburst (Sunburst) for detailed visual work and gpt-image-2.6-flare (Flare) for fast iteration. Both specs share the same endpoints and parameters; just set model to the one you want. On top of GPT Image 2.5 it adds complexity to control how much the model plans before rendering, output_format: gif for animated GIFs and output_format: svg for SVG vectors with editable paths, shapes and colors. quality supports xhigh and max too. It works with the official OpenAI SDKs.
Authentication
- Base URL
https://api.dreamto.ai- Authorization
Authorization: Bearer YOUR_API_KEY- Content-Type
application/json- Model name (model)
gpt-image-2.6-flare
Setup
| OpenAI | DreamTo | |
|---|---|---|
| Base URL | https://api.openai.com/v1 | https://api.dreamto.ai/v1 |
| API Key | OpenAI API key | API Key from the DreamTo console, in the Authorization: Bearer header |
Endpoints
| Endpoint | Purpose |
|---|---|
POST /v1/images/generations | Create image |
POST /v1/images/edits | Edit image |
Parameters
| Field | Values |
|---|---|
prompt | Required, up to 32,000 characters |
size | auto (default) or WIDTHxHEIGHT: both edges multiples of 16, longest edge ≤ 3840, long-to-short ratio ≤ 3:1, total pixels 655,360–8,294,400. Common: 1024x1024, 1536x1024, 1024x1536 |
quality | auto (default) / low / medium / high / xhigh / max |
n | 1–10, default 1 |
background | auto (default) / opaque / transparent; transparency needs png or webp |
output_format | png (default) / jpeg / webp / gif (animation) / svg (vector, generations only) |
output_compression | 0–100, default 100, jpeg / webp only |
stream | true streams SSE events; partial_images sets 0–3 previews |
complexity | low / medium / high (default): how much the model plans before rendering, independent of quality |
svg.model | Required with output_format: svg: the text model that writes the SVG, e.g. gpt-6.1-terra |
Official parameters not supported yet
They return 400; the model is not called and nothing is charged.
| Parameter | Note |
|---|---|
images | JSON edit input is not supported yet; upload image[] as multipart/form-data |
frame_count | GIF frame count (2–16 upstream, default 9) is not supported yet; GIFs use the default 9 frames |
frame_duration_ms | GIF frame duration (20–2000 ms upstream, default 200) is not supported yet |
Pricing
Billed at the model price shown in the console. Invalid requests and failed generations are not charged.
The same model is also available on a cheaper per-request Economy route (gpt-image-2.6-sunburst-economy / gpt-image-2.6-flare-economy), see GPT Image 2.6 Economy.
Quick start
$DREAMTO_API_KEY is your API Key.
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"
}'Edit an image
/v1/images/edits takes the images as multipart/form-data files; repeat image[] for several reference images:
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"Notes
modelis the DreamTo model namegpt-image-2.6-sunburst/gpt-image-2.6-flare.- With
output_format: svg,svg.model(the text model that writes the SVG) is required; otherwise the request returns 400missing_required_parameter. SVG is for generations only, withn1 and no streaming, previews oroutput_compression;b64_jsondecodes to UTF-8 SVG (XML). output_format: gifreturns the official default 9-frame animation; the officialframe_count/frame_duration_msare not supported yet. GIF output does not support streaming, previews oroutput_compression.- Edits take
multipart/form-datafile uploads (image[],mask); the newer JSONimages/file_idform and themarkupannotation parameter are not supported yet. - As with OpenAI, images are returned as Base64 (
data[].b64_json). - The
xhigh/maxquality tiers take longer and use more output tokens; OpenAI recommends them only when lower tiers miss a quality requirement and the latency is acceptable. - Parameters the gateway does not declare return 400; the model is not called and nothing is charged.
- Errors use the DreamTo error envelope (see the error examples of each endpoint).