Skip to main content
POST
Text 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. Image-to-image models (for example gpt-image-2-6/flare-image-to-image) must be sent to /gpt-image/image-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-text-to-image
  • gpt-image-2-6/sunburst-text-to-image
  • gpt-image-2-6/economy-text-to-image
  • gpt-image-2-5-flare-text-to-image
  • gpt-image-2-5-sunburst-text-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: 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 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).
  • Prompt: about one text input token per 3 characters, plus 64 tokens.
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