OpenAIPaidOperational
Gpt 5.1 Codex Mini
API model name: gpt-5.1-codex-mini
Gpt 5.1 Codex Mini is OpenAI's chat model, served on the Api.Airforce unified API. It is priced at $0.18 per million input tokens and $1.48 per million output tokens. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Specifications
- Provider
- OpenAI
- Type
- chat model
Benchmarks
Independent evaluations and measured speed from Artificial Analysis.
Intelligence Index
38.6/100
Coding Index
36.4/100
Math Index
91.7/100
MMLU-Pro82%
GPQA Diamond81%
Humanity's Last Exam17%
LiveCodeBench84%
AIME 202592%
Output speed218.1 tok/s
Time to first token4.12 s
Source: Benchmark data by Artificial Analysis (artificialanalysis.ai)
What is Gpt 5.1 Codex Mini used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
Gpt 5.1 Codex Mini vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Gpt 5.1 Codex Mini | 38.6 | — | $0.18 | $1.48 |
| Gpt 3.5 | — | — | $1.71 | $3.42 |
| Gpt 3.5 Turbo 16k | — | — | $10.26 | $20.52 |
| Gpt 4 | — | 8K | $6.42 | $12.84 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Chatgpt ImageOpenAI · $17.10 / 1MDall E 2OpenAI · $10.00 / 1MDall E 3OpenAI · $20.00 / 1MGpt 3.5OpenAI · $1.71 / 1MGpt 3.5 Turbo 16kOpenAI · $10.26 / 1MGpt 4OpenAI · $6.42 / 1MGpt 4 0125OpenAI · $2.13 / 1MGpt 4 1106OpenAI · $2.13 / 1MGpt 4 32kOpenAI · $205.32 / 1MGpt 4 TurboOpenAI · $2.13 / 1MGpt 4 VisionOpenAI · $2.13 / 1MGpt 4.1OpenAI · $0.30 / 1M
Gpt 5.1 Codex Mini — frequently asked questions
- How much does Gpt 5.1 Codex Mini cost?
- Gpt 5.1 Codex Mini is billed pay-as-you-go at $0.18 per 1M input tokens and $1.48 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can Gpt 5.1 Codex Mini do?
- Gpt 5.1 Codex Mini is OpenAI's chat model, accessible through the Api.Airforce API.
- Is Gpt 5.1 Codex Mini free to use?
- Gpt 5.1 Codex Mini is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Gpt 5.1 Codex Mini via the API?
- Gpt 5.1 Codex Mini is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID gpt-5.1-codex-mini with your Api.Airforce API key.
- Who makes Gpt 5.1 Codex Mini?
- Gpt 5.1 Codex Mini is OpenAI's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Gpt 5.1 Codex Mini via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass gpt-5.1-codex-mini as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.1-codex-mini",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="gpt-5.1-codex-mini",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "gpt-5.1-codex-mini",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);