GPT Image 2.5 Sunburst API
$30.00/1M tokens
The previous generation of OpenAI’s image model for detailed visual work. Generates and edits images, with transparent backgrounds and custom sizes.
Call GPT Image 2.5 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.5-sunburst", "prompt": "An isometric cutaway of a tiny library inside a tree trunk, warm lamps and spiral stairs", "size": "auto", "moderation": "auto", "n": 1 }'
Parameters
modelstringDefaultgpt-image-2.5-sunburst- Model ID, same as the official one
promptstring- What to generate.
sizestringDefaultauto- auto, 1024x1024, 1536x1024, 1024x1536, or width x height
qualitystring- low, medium, high, xhigh, max, auto
backgroundstring- transparent, opaque, auto
moderationstringDefaultauto- auto, low
nintegerDefault1- 1 to 10 images
Getting the result
POST /v1/images/generationsanswers once the images are made: each image's link is indata[].url.- Links last 7 days. Save the images to your own storage.
Pricing
ModelSettingPriceBilled forDiscount
GPT Image 2.5 SunburstAny$5.00/1M tokensInput text tokensInput text tokens
GPT Image 2.5 SunburstAny$8.00/1M tokensInput image tokensInput image tokens