Skip to main content

Overview

GPT Image 2.6 Flare is an asynchronous API for text-to-image generation and reference-guided image editing. Each successful task returns one file.

Endpoints and authentication

Base URL:
Use Authorization: Bearer YOUR_API_KEY and Content-Type: application/json.

Quickstart

Generate an image with a custom size. This example requests 2304 × 1536 pixels and uses the 2K billing tier.
Generate a GIF:
For SVG, set output_format to svg. To edit a reference image using an annotated guide, submit this request body:

Parameters

string
default:"async"
Use async to poll for results or callback for webhook delivery.
string
Public HTTPS URL that receives the final task payload. Required when request_type is callback. See Webhooks.
object
required
GPT Image 2.6 Flare input parameters.

Poll for results

The create response returns data.taskId. Save it and use it to query the task:
When data.state is success, decode data.resultJson as JSON and read resultUrls:
Continue polling while state is processing or processing_r2. When state is failed, read failCode and failMsg when present. With request_type: "callback", use the supplied webhook URL to receive the terminal result. See Webhooks.

Billing

When you provide size, billing uses the rounded dimensions. The first matching row applies. Text-to-image GIF uses the static base price for the same quality and resolution. Text-to-image SVG adds $0.020 to that base price. GIF and SVG edits use the matching text-to-image format price plus $0.015 for every reference image, including the first. PNG, JPEG, and WebP edits include the first reference image in the base price. Each additional reference image costs $0.015, and an optional mask or markup adds $0.015 once. Complexity and frame duration do not affect the standard price. At medium and 1k, PNG and GIF text-to-image each cost $0.050, and SVG costs $0.070. With one reference image, GIF editing costs $0.065 and SVG editing costs $0.085. A static edit with three reference images and one markup costs $0.110. These are standard prices before discounts. See the full pricing table and credit conversion and rounding.

Latency and polling

Allow 3–5 seconds between status requests. For production workloads, use callback delivery.

MCP integration

The complete model schema declares the result format in mcp.result and attachment paths in mcp.attachments. Bind files to image_urls, mask_url, or markup_url and preserve the order of reference images. The API validates mode requirements and the choice of one edit guide.