GPT Image 2
GPT Image 2 is an OpenAI model for high-fidelity image generation and editing through the dedicated Images API. It supports text-to-image generation and image-to-image editing.
Modalities
In / Out Price
20% off$4/ 1M
$5 Official price
$24/ 1M
$30 Official price
Context
400K
Released
Jun 23, 2026
Playground
Output
Explore AI StudioAPI call examples
POST /v1/images/generationscurl --request POST 'https://api.tokatlas.com/v1/images/generations' \
--header "Authorization: Bearer $UNIROUTER_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2",
"prompt": "A serene koi pond at sunset.",
"size": "1024x1024",
"n": 1
}'Providers & routes
Current provider · OpenAI
Platform configured price · Group: codex
USD / 1M tokens. Each row shows input and output from the same tier. Displayed rates use the lowest available group multiplier; your API key group may differ.
GPT Image 2 FAQ
How do I call this model through the API?
Click Create API Key in the API calls section, or find the button in the Try this model panel at the top of the page. If you’re signed out, sign in to continue to the API keys page. After creating a key, copy the model ID from the header and follow the endpoint and request example.
Where can I see the supported inputs and outputs?
The modality icons at the top show the supported input and output types. If this page has a playground, it also shows the generation options currently available for the model.
How is this model billed?
Check Pricing for billing units and applicable conditions. If the playground shows an estimate, it updates based on the parameters you select.