gpt-5.1-codex-mini
NixAPI price, from
USD per 1M tokens · via group Azure-Gpt-2 · Official list price $0.25 / $2Save 83%
About gpt-5.1-codex-mini
GPT-5.1-codex-mini is an efficient model for fast code generation and lightweight development tasks.
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 |
|---|---|---|---|---|---|---|---|
Azure-Gpt-2 | … | ×0.169 | $0.0423 | $0.338 | $0.004225 | — | |
Azure-Gpt-3 | … | ×0.3718 | $0.0929 | $0.7436 | $0.009295 | — |
USD per 1M tokens
Supported endpoints
Call gpt-5.1-codex-mini 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-5.1-codex-mini",
"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-5.1-codex-mini",
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-5.1-codex-mini",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about gpt-5.1-codex-mini
How much does gpt-5.1-codex-mini cost on NixAPI?
From $0.0423 per 1M input tokens and $0.338 per 1M output tokens in the Azure-Gpt-2 group, about 83% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call gpt-5.1-codex-mini?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "gpt-5.1-codex-mini".
Which routing groups serve gpt-5.1-codex-mini?
gpt-5.1-codex-mini is available in 2 routing groups: Azure-Gpt-2, Azure-Gpt-3. The lowest price is in Azure-Gpt-2.