Skip to main content
GPT Image 2.6 is OpenAI’s image generation and editing model family. AnyFast exposes both models through the Image API: Both models accept text and image inputs and return images. Use POST /v1/images/generations to create an image from text, or POST /v1/images/edits to edit one or more uploaded images.

What changed in GPT Image 2.6

  • Two specialized modes — Sunburst is for detailed visual work and Flare is for fast iteration.
  • Complexity control — Set complexity to low, medium, or high to control planning effort independently of rendering quality; omitted values use high.
  • Markup-guided edits — The model family supports annotation layers that point to the region to change.
  • Expanded image outputs — OpenAI documents SVG and animated GIF generation for GPT Image 2.6. The output controls below show the corresponding request fields.
  • Usage accounting — AnyFast responses include input and output image token counts under usage.

Key capabilities

  • Text-to-image — Generate an image from a natural-language prompt
  • Image editing — Apply broad or localized edits to uploaded images
  • Flexible dimensions — Use recommended sizes or valid custom WIDTHxHEIGHT dimensions up to 4K
  • Expanded quality controls — Select low, medium, high, xhigh, max, or auto
  • Planning complexity — Select low, medium, or high independently of rendering quality
  • Transparent output — Request a transparent background with PNG or WebP output
  • Multiple outputs — Use n to request more than one result in one generation request
Send a JSON request to POST /v1/images/generations. Choose Sunburst for maximum editing and rendering precision, or Flare when latency matters more.
cURL

Official usage examples

The following images are from OpenAI’s official GPT Image 2.6 guides. They show how the same prompt can respond to different planning complexity settings and how a reference image can be turned into a transparent product cutout.

Compare planning complexity

OpenAI uses the same paper-cut football prompt at low, medium, and high complexity with Sunburst. The examples illustrate how planning complexity can change the composition and level of detail.
Paper-cut football scene generated with low complexity

Low complexity — OpenAI official example

Paper-cut football scene generated with medium complexity

Medium complexity — OpenAI official example

Paper-cut football scene generated with high complexity

High complexity — OpenAI official example

Create a transparent product cutout

This official example uses a shampoo photograph as the input and requests a transparent PNG output. OpenAI shows the result from both Flare and Sunburst.
Shampoo product photograph used as the input image

Input — OpenAI official example

Shampoo bottle isolated on a transparent background with GPT Image 2.6 Flare

Flare output — OpenAI official example

Shampoo bottle isolated on a transparent background with GPT Image 2.6 Sunburst

Sunburst output — OpenAI official example

These are official OpenAI usage references. See the OpenAI image generation guide and GPT Image 2.6 prompting guide for the prompts and settings.

Output controls

Animated GIF output

Each frame must fit the total pixel budget; 1024x1024 exceeds the budget at the default 9 frames, so use 1024x768 or reduce the frame count.
GIF generation

Custom size rules

Custom dimensions must satisfy all of the following requirements:
  • Width and height are multiples of 16 pixels.
  • The aspect ratio is between 1:3 and 3:1.
  • Neither edge exceeds 3,840 pixels.
  • Total pixels are between 655,360 and 8,294,400.
  • Resolutions above 2560x1440 are experimental.

Image editing inputs

  • For JSON requests, pass up to 16 objects in images. Each object uses file_id for an uploaded File API asset or image_url for a fully qualified URL or Base64-encoded data URL.
  • images[].image_url uses URI format and has a maximum length of 20,971,520 characters.
  • For multipart requests, upload a single source image with image, or up to 16 source images with image[].
  • Do not combine JSON images references with multipart image or image[] fields.
  • An optional mask must have an alpha channel and match the first source image’s format and dimensions.
  • The source image and mask must each be smaller than 50 MB.

Response handling

GPT Image models return image data in data[].b64_json. Each result may also include data[].revised_prompt; AnyFast returns token accounting in usage. Decode the Base64 value and save it using the extension reported by output_format; save GIF results with a .gif extension. The response_format parameter used by DALL·E models does not apply to GPT Image 2.6.
Decode the first result
The upstream OpenAI API also lets supported mainline models call GPT Image 2.6 through the Responses API image-generation tool. This page documents the direct AnyFast Image API endpoints.
See the OpenAI image generation guide, Create image API, Create image edit API, Sunburst model page, and Flare model page for the upstream model specification.

GPT Image 2.6 API Reference

View generation and editing request fields, response fields, and usage accounting.