OpenAI: GPT 5.1 Codex Mini
GPT 5.1 Codex Mini is a reasoning model from OpenAI released on Jan 1, 2025. It reads text and images and writes text, with a 400K token context window and up to 128K tokens per reply.
Show moreShow less
It costs $0.25 per million input tokens and $2 per million output tokens. Cached input bills at $0.025, 90% less than fresh input.
It supports tool calling, structured JSON output and prompt caching.
16 providers serve it, including Azure, Vercel AI Gateway and Ofox. The lowest input price is $0.20 per million tokens at Ofox.
- Modalities
- In / out price
- $0.25 / $2 per 1M
- Context
- 400K
- Max output
- 128K
- Released
- Jan 1, 2025
- Knowledge cutoff
- Sep 2024
- Tool calling
- Structured output
- Reasoning
- Prompt caching
- Open weights
- Free to use
GPT 5.1 Codex Mini pricing
USD, as listed on Oct 15, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.
| Input | $0.25 / 1M tokens | |
|---|---|---|
| Output | $2 / 1M tokens | |
| Cached input (read) | $0.025 / 1M tokens | 90% off input |
GPT 5.1 Codex Mini providers
16 providers serve it, including Azure, Vercel AI Gateway and Ofox. The lowest input price is $0.20 per million tokens at Ofox. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.
| Provider | Input /M | Output /M | Cache read /M | Context | Max output |
|---|---|---|---|---|---|
| Azure | $0.25 | $2 | $0.025 | 400K | 128K |
| Vercel AI Gateway | $0.25 | $2 | $0.03 | 400K | 128K |
| Ofox | $0.20 | $1.60 | $0.024 | 256K | 66K |
| Poe | $0.22 | $1.80 | $0.022 | 400K | 128K |
| Jiekou.AI | $0.225 | $1.80 | – | 400K | 128K |
| AIHubMix | $0.25 | $2 | $0.025 | 400K | 128K |
| Azure Cognitive Services | $0.25 | $2 | $0.025 | 400K | 128K |
| DevPass (LLM Gateway) | $0.25 | $2 | $0.025 | 400K | 128K |
| Eden AI | $0.25 | $2 | $0.025 | 272K | 128K |
| Helicone | $0.25 | $2 | $0.025 | 400K | 128K |
| Impossibl | $0.25 | $2 | $0.025 | 400K | 128K |
| Kilo Gateway | $0.25 | $2 | $0.03 | 400K | 128K |
Showing 12 of 16 providers: the lab first, then the major clouds, then the cheapest resellers.
What GPT 5.1 Codex Mini costs per month
Pick a workload close to yours or type your own volumes.
Supported request parameters
What you can set when you call GPT 5.1 Codex Mini through an OpenAI compatible API.
- Tools
tools - Structured outputs
structured_outputs - Reasoning
reasoning
Alternatives to GPT 5.1 Codex Mini
Models that take the same inputs and call tools, closest in price, cheaper ones first.
- Index 13.1
Reads text and images. Tool calling, structured output, reasoning. Served by 2 providers.
by cohereMay 20, 2026192K context$0.30/M input tokens$1.50/M output tokens2 providers
- 1.05M context
Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 24 providers.
by googleFeb 18, 2026$0.25/M input tokens$1.50/M output tokens24 providers
- Index 46.3
Reads text, images, audio and video. Tool calling, structured output, reasoning. Served by 17 providers.
by xiaomiSep 22, 20261.05M context$0.435/M input tokens$0.87/M output tokens17 providers
- Index 29.2
Reads text, images and video. Tool calling, structured output, reasoning. Served by 43 providers.
by minimaxMay 31, 20261M context$0.30/M input tokens$1.20/M output tokens43 providers
- 262K context
Reads text and images. Tool calling, structured output, reasoning. Served by 2 providers.
by bytedanceApr 28, 2026$0.25/M input tokens$2/M output tokens2 providers
- 256K context
Reads text, images and video. Tool calling, structured output, reasoning. Served by 6 providers.
by bytedance-seedFeb 14, 2026$0.25/M input tokens$2/M output tokens6 providers
More from OpenAI
- Index 51.8
Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.
by openaiSep 29, 20261.05M context$2/M input tokens$10/M output tokens27 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiSep 29, 2026$2/M input tokens$10/M output tokens2 providers
- Index 38.1
Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.
by openaiSep 22, 20261.05M context$0.10/M input tokens$0.50/M output tokens27 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiSep 22, 2026$0.10/M input tokens$0.50/M output tokens2 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.
by openaiSep 22, 2026$2/M input tokens$10/M output tokens27 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiSep 22, 2026$2/M input tokens$10/M output tokens2 providers
GPT 5.1 Codex Mini questions
How much does the GPT 5.1 Codex Mini API cost?
$0.25 per million input tokens and $2 per million output tokens, with cached input at $0.025. The estimator on this page turns that into a monthly bill for your own workload.
What is the context window of GPT 5.1 Codex Mini?
400,000 tokens of input, and it can write up to 128,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.
Which providers serve GPT 5.1 Codex Mini?
16 providers serve it, including Azure, Vercel AI Gateway and Ofox. The lowest input price is $0.20 per million tokens at Ofox. Prices differ by host, so the Providers table on this page lists each one with its input and output price.
Does GPT 5.1 Codex Mini support tool calling?
Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.
Is GPT 5.1 Codex Mini open source?
No. OpenAI serves it through an API only, so you cannot download the weights or host it yourself.
When was GPT 5.1 Codex Mini released?
Jan 1, 2025, with training data up to Sep 2024.
Catalog data from models.dev (MIT licensed), refreshed daily, last on Oct 15, 2026. The summary is written from these facts.
Building on GPT 5.1 Codex Mini?
I test your real tasks on it and the two closest alternatives, then ship the agent on whichever wins on cost and accuracy.
Book Meeting