Skip to main content

Overview

GPT Image 2.5 Flare is an asynchronous image generation API for text-to-image and reference-guided image editing.
Current implementation notice: GPT Image 2.5 Flare currently provides the GPT Image 2 capability baseline. Its public model ID, accepted parameters, and prices are listed on this page.

Endpoint and authentication

Base URL:

Quickstart

The accepted response includes data.taskId. Save it and poll until state becomes success or failed.

Request body

Text-to-image

Image-to-image

Parameters

string
default:"async"
required
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
string
Required when request_type is callback. It must be a public HTTPS URL that can receive the final task payload. See Webhooks.
object
required
GPT Image 2.5 Flare input parameters.

Poll for results

When successful, data.resultJson is a JSON string containing resultUrls:
For failed tasks, state is failed and the response includes failCode and failMsg.

Billing

Billing is per successfully generated image. Prices below are in USD and retain four decimal places. For the live price catalog, see Pricing.

Latency and polling

Generation time depends on prompt complexity, reference images, selected resolution, and current queue load. Start polling after 30-60 seconds, then poll every 10 seconds. For production workloads, prefer callback mode.