Overview
GPT Image 2.5 Sunburst is an asynchronous image generation API for text-to-image and reference-guided image editing.Endpoint and authentication
Base URL:Quickstart
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 Sunburst input parameters.
Poll for results
data.resultJson is a JSON string containing resultUrls:
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. Text-to-image and image-to-image use the same output-tier price; reference images do not add an extra charge.
For the live price catalog, see Pricing.