OpenAI model
GPT-5.1-Codex-Mini API cost calculator
GPT-5.1-Codex-Mini costs $0.25 per 1M input tokens and $2 per 1M output tokens on the OpenAI API, with a 400K-token context window. A typical request (2K input, 500 output tokens) costs $0.0015 — about $45.00/month at 1,000 requests per day. Use the calculator below to model your exact workload.
Find me a cheaper modelWhat real workloads cost on GPT-5.1-Codex-Mini
| Workload | Tokens (in / out) | Per request | Per 1K requests |
|---|---|---|---|
| Chatbot message | 500 / 300 | $0.0007 | $0.72 |
| RAG query with context | 4,000 / 500 | $0.0020 | $2.00 |
| Document summarization | 20,000 / 1,000 | $0.0070 | $7.00 |
| Agent coding session | 100,000 / 5,000 | $0.04 | $35.00 |
GPT-5.1-Codex-Mini vs other OpenAI models
| Model | Input /1M | Output /1M | Context |
|---|---|---|---|
| GPT-5.1-Codex-Mini | $0.25 | $2 | 400K |
| GPT-5.6 Luna Pro | $0.20 | $1.20 | 1.1M |
| GPT-5.6 Luna | $0.20 | $1.20 | 1.1M |
| GPT-5.6 Terra Pro | $2 | $12 | 1.1M |
| GPT-5.6 Terra | $2 | $12 | 1.1M |
Frequently asked questions
How much does GPT-5.1-Codex-Mini cost per 1M tokens?
According to current pricing data, GPT-5.1-Codex-Mini costs $0.25 per 1M input tokens and $2 per 1M output tokens. Processing 1M tokens each way costs $2.25.
What does a typical API request to GPT-5.1-Codex-Mini cost?
A typical request with 2,000 input tokens and 500 output tokens costs $0.0015. At 1,000 requests per day that is $1.50 daily, or about $45.00 per month.
What is GPT-5.1-Codex-Mini's context window?
GPT-5.1-Codex-Mini supports a 400K-token context window (400,000 tokens).
Does GPT-5.1-Codex-Mini support prompt caching?
Yes. Cached input tokens cost $0.03 per 1M — a 88% discount versus the standard input rate, which matters for agents and chat apps that resend the same system prompt.
What is a cheaper alternative to GPT-5.1-Codex-Mini?
Ling-2.6-flash from Inclusionai is currently the cheapest comparable option at $0.01 per 1M input tokens versus $0.25 for GPT-5.1-Codex-Mini — roughly 25x cheaper on input.
Prices may differ from OpenAI's official pricing page for batch, tiered, or fine-tuned usage. Compare all current prices on the live model pricing dashboard, see GPT-5.1-Codex-Mini vs Ling-2.6-flash pricing, or run GPT-5.1-Codex-Mini head-to-head against other models in the side-by-side comparison playground.
Pricing data via the OpenRouter models API.