Back to Models
GPT Image 2
openaiopenai/gpt-image-2
OpenAI's most advanced image generation model with native reasoning — thinks before drawing. 2K resolution, multi-image consistency, magazine-quality typography, and image editing. Released April 21, 2026.
Context Length
--
Max Output
--
Image Price
$0.0636/ image
Input Price
$6.00/ 1M tokens
Modalities
textimage→image
Pricing Breakdown
| Type | Rate |
|---|---|
| Image | $0.0636 / image |
| Input | $6.00 / 1M tokens |
| Output | $36.00 / 1M tokens |
| Image input | $9.60 / 1M tokens |
| Cached image input | $2.40 / 1M tokens |
| Low quality | $0.0072 / image |
| Medium quality | $0.0636 / image |
| High quality | $0.2532 / image |
image is medium-quality generation price per image
Supported Parameters
promptsizequalitybackgroundoutput_formatnuser
API Usage Examples
cURL
curl https://api.therouter.ai/v1/images/generations -H "Content-Type: application/json" -H "Authorization: Bearer $THE_ROUTER_API_KEY" -d '{
"model": "openai/gpt-image-2",
"prompt": "A cinematic product render with soft studio lighting"
}'