GPT Image 2.6 Sunburst APINew

$30.00/1M tokens

OpenAI’s latest image model for detailed visual work. Generates and edits images, with transparent backgrounds and custom sizes.

Auto, 1024x1024, 1536x1024, 1024x1536 or customUp to 10 per Playground run

Call GPT Image 2.6 Sunburst

The request below mirrors the Playground tab. Change a setting there and this code follows. You need a key first: create an API key.

curl -X POST https://api.letsfliq.com/v1/images/generations \
  -H "Authorization: Bearer $FLIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2.6-sunburst",
    "prompt": "A detailed botanical illustration of a fern, labelled in neat handwriting on cream paper",
    "size": "auto",
    "moderation": "auto",
    "n": 1
  }'

Parameters

modelstringDefault gpt-image-2.6-sunburst
Model ID, same as the official one
promptstring
What to generate.
sizestringDefault auto
auto, 1024x1024, 1536x1024, 1024x1536, or width x height
qualitystring
low, medium, high, xhigh, max, auto
backgroundstring
transparent, opaque, auto
complexitystring
low, medium, high
moderationstringDefault auto
auto, low
nintegerDefault 1
1 to 10 images

Getting the result

  • POST /v1/images/generations answers once the images are made: each image's link is in data[].url.
  • Links last 7 days. Save the images to your own storage.

Pricing

ModelSettingPriceBilled forDiscount
GPT Image 2.6 SunburstNewAny$30.00/1M tokensOutput image tokensOutput image tokens
GPT Image 2.6 SunburstAny$5.00/1M tokensInput text tokensInput text tokens
GPT Image 2.6 SunburstAny$8.00/1M tokensInput image tokensInput image tokens