GPT Image 2.6 Flare API
$30.00/1M tokens
OpenAI’s latest image model for fast iteration. Generates and edits images, with transparent backgrounds and custom sizes.
Call GPT Image 2.6 Flare
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-flare", "prompt": "A playful sticker of a cat astronaut floating among stars, bold outlines, transparent background", "size": "auto", "moderation": "auto", "n": 1 }'
Parameters
modelstringDefaultgpt-image-2.6-flare- 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
complexitystring- low, medium, high
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.6 FlareAny$5.00/1M tokensInput text tokensInput text tokens
GPT Image 2.6 FlareAny$8.00/1M tokensInput image tokensInput image tokens