gpt-image-2· Released Jun 24, 2026
openai/gpt-image-2
OpenAI's latest image generation model. Supports high-fidelity image generation and editing via the dedicated Images API.
Input
From$4.125/M
Output
—
Context
Up to 400K
Max output
—
Modalities
TextImageImageInput and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.
Upstreams & pricing
| Upstream | Context | Max output | Input $/1M | Output $/1M |
|---|---|---|---|---|
Zenlayer AI Gateway-openai_compat (Global)From price | 400K | — | $4.125 | — |
Routed in real time — you pay the listed price of whichever upstream serves your call.
How to call
curlrequest.sh
curl https://api.tkex.ai/v1/chat/completions \
-H "Authorization: Bearer $TX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2",
"messages": [
{"role": "user", "content": "Say hello in five words."}
]
}'