GPT Image 2.6 Sunburst Economy

gpt-image-2.6-sunburst-economy
ImageOpenAIGPT Image 2.6 Economygpt-image-2.6-sunburst-economy

GPT Image 2.6 Economy is the economy route of GPT Image 2.6: the same OpenAI model, billed per request (one price for every size) at a lower price, for cost-sensitive batch jobs that can wait longer. Endpoints, parameters and responses are the same as for the standard model; just set model to an Economy model ID:

It works with the official OpenAI SDKs.

Authentication

Base URL
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
Model name (model)
gpt-image-2.6-sunburst-economy
Economy model IDStandard model
gpt-image-2.6-sunburst-economygpt-image-2.6-sunburst
gpt-image-2.6-flare-economygpt-image-2.6-flare

Setup

OpenAIDreamTo
Base URLhttps://api.openai.com/v1https://api.dreamto.ai/v1
API KeyOpenAI API keyAPI Key from the DreamTo console, in the Authorization: Bearer header

Endpoints

EndpointPurpose
POST /v1/images/generationsCreate image
POST /v1/images/editsEdit image

Parameters

FieldValues
promptRequired, up to 32,000 characters
sizeauto (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
qualityauto (default) / low / medium / high / xhigh / max
n1–10, default 1
backgroundauto (default) / opaque / transparent; transparency needs png or webp
output_formatpng (default) / jpeg / webp / gif (animation) / svg (vector, generations only)
output_compression0–100, default 100, jpeg / webp only
streamtrue streams SSE events; partial_images sets 0–3 previews
complexitylow / medium / high (default): how much the model plans before rendering, independent of quality
svg.modelRequired 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.

ParameterNote
imagesJSON edit input is not supported yet; upload image[] as multipart/form-data
frame_countGIF frame count (2–16 upstream, default 9) is not supported yet; GIFs use the default 9 frames
frame_duration_msGIF frame duration (20–2000 ms upstream, default 200) is not supported yet

Pricing

Billed per request (one price for every size), not per token. See the model catalog and the console for current prices. Invalid requests and failed generations are not charged.

Quick start

$DREAMTO_API_KEY is your API Key.

cURLbash
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-economy",
    "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:

cURLbash
curl -X POST "https://api.dreamto.ai/v1/images/edits" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -F "model=gpt-image-2.6-sunburst-economy" \
  -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

  • model is the DreamTo model name gpt-image-2.6-sunburst-economy / gpt-image-2.6-flare-economy.
  • With output_format: svg, svg.model (the text model that writes the SVG) is required; otherwise the request returns 400 missing_required_parameter. SVG is for generations only, with n 1 and no streaming, previews or output_compression; b64_json decodes to UTF-8 SVG (XML).
  • output_format: gif returns the official default 9-frame animation; the official frame_count / frame_duration_ms are not supported yet. GIF output does not support streaming, previews or output_compression.
  • Edits take multipart/form-data file uploads (image[], mask); the newer JSON images / file_id form and the markup annotation parameter are not supported yet.
  • As with OpenAI, images are returned as Base64 (data[].b64_json).
  • The xhigh / max quality tiers take longer; 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).