Skip to main content
POST
Image to Image

Models

GPT Image 2.6 Flare is the fast variant, GPT Image 2.6 Sunburst is the highest-quality variant, and GPT Image 2.6 Economy is a flat-price 1K variant.
This endpoint only accepts the models listed above. Text-to-image models (for example gpt-image-2-6/flare-text-to-image) must be sent to /gpt-image/text-to-image. Any other model returns a 400 “Invalid route” error.

Field Applicability

Fields not listed for a model are rejected with a VALIDATION_ERROR.

Body Parameters

string
required
Model to use:
  • gpt-image-2-6/flare-image-to-image
  • gpt-image-2-6/sunburst-image-to-image
  • gpt-image-2-6/economy-image-to-image
  • gpt-image-2-5-flare-image-to-image
  • gpt-image-2-5-sunburst-image-to-image
object
required
Input parameters for the generation.
string
URL to receive a webhook when the task completes.
object
Custom key-value metadata to attach to the task.

Pricing

Per-image models (input images are included): GPT Image 2.6 Flare and Sunburst are billed per token: Because token usage is only known after generation, GPT Image 2.6 Flare / Sunburst requests are pre-deducted at submit based on the resolution, the number of input images and the prompt:
  • Output: 4,000 image output tokens at 1K ($0.12), 8,000 at 2K ($0.24), 12,000 at 4K ($0.36).
  • Input images: 6,000 image input tokens ($0.048) for each image in input_urls and for mask_url.
  • Prompt: about one text input token per 3 characters, plus 64 tokens.
For example, a 2K request with 2 input images and a short prompt pre-deducts about $0.24 + 2 × $0.048 = $0.336. Completed tasks are settled from actual token usage and the unused part of the pre-deduction is refunded. The final charge never exceeds the pre-deduction. Failed tasks are refunded. Prices are in USD and current as of November 23, 2026.

Example