gpt-image-2
NixAPI price, from
USD per 1M tokens · via group Codex-Gpt-2 · Official list price $5 / $30Save 90%
About gpt-image-2
GPT Image 2 is our most advanced image generation model, supporting fast, high-quality image generation and editing. It supports flexible image dimensions and high-fidelity image input.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|---|
Codex-Gpt-2 | … | ×0.0994 | $0.4971 | $2.983 | — | — | |
Codex-Gpt-3 | … | ×0.1243 | $0.6213 | $3.728 | — | — | |
Azure-Gpt-2 | … | ×0.169 | $0.845 | $5.07 | — | — | |
Azure-Gpt-3 | … | ×0.3718 | $1.859 | $11.154 | — | — | |
Azure-Gpt-4 | … | ×0.7436 | $3.718 | $22.308 | — | — | |
Openai-Gpt-1 | … | ×0.9941 | $4.971 | $29.824 | — | — | |
Azure-Gpt-5 | … | ×1.014 | $5.07 | $30.42 | — | — | |
Openai-Gpt-2 | … | ×1.2427 | $6.213 | $37.28 | — | — | |
Azure-Gpt-6 | … | ×1.521 | $7.605 | $45.63 | — | — |
USD per 1M tokens
Supported endpoints
Call gpt-image-2 in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="gpt-image-2",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "gpt-image-2",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about gpt-image-2
How much does gpt-image-2 cost on NixAPI?
From $0.4971 per 1M input tokens and $2.983 per 1M output tokens in the Codex-Gpt-2 group, about 90% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call gpt-image-2?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "gpt-image-2".
Which routing groups serve gpt-image-2?
gpt-image-2 is available in 9 routing groups: Codex-Gpt-2, Codex-Gpt-3, Azure-Gpt-2, Azure-Gpt-3, Azure-Gpt-4, Openai-Gpt-1, Azure-Gpt-5, Openai-Gpt-2, Azure-Gpt-6. The lowest price is in Codex-Gpt-2.