Skip to main content
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.

Setup

Endpoints

Parameters

Official parameters not supported yet

They return 400; the model is not called and nothing is charged.

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.

Edit an image

/v1/images/edits takes the images as multipart/form-data files; repeat image[] for several reference images:
cURL

Notes

  • model is the DreamTo model name gpt-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 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 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).