OpenAI, released Nov 13, 2025
GPT-5.1-Codex-Mini
GPT-5.1-Codex-Mini is OpenAI's compact, quicker take on GPT-5.1-Codex, built for coding work and released back in November 2025. It sits well below the newer GPT-6.1 Terra and GPT-6.2 Sol or Astra lines in OpenAI's lineup, and it's a fraction of the price of any of them. You still get a big context window, a ton of output room and always-on reasoning, just in a lighter package.
Already paying for ChatGPT?
GPT-5.1-Codex-Mini costs $2 per 1M output tokens. Use GPT-6.2 Sol through your ChatGPT plan instead, $0 per token.
Updated
GPT-5.1-Codex-Mini pricing and specs
- Input
- $0.25per 1M tokens
- Output
- $2per 1M tokens
- Cached input
- $0.03per 1M tokens
- Context window
- 400K400,000 tokens
- Max output
- 128K128,000 tokens
- Released
- Nov 13, 2025
- Accepts
- ImagesText
- Features
- Tool callingReasoningStructured outputs
What GPT-5.1-Codex-Mini is good at
- Coding agents that run in a loop calling tools - it handles tool calling and structured JSON output, and since it's so cheap next to GPT-6.1 Terra or GPT-6.2 Sol, you can let an agent take a bunch of steps without the bill getting out of hand.
- Big refactors or multi-file edits. The context window is huge and it can return a very long response in one shot, so you aren't constantly splitting files up.
- Debugging frontend or UI issues with screenshots - it takes images right alongside text.
- High-volume background coding jobs where speed and low cost matter more than using OpenAI's newest flagship.
Good to know
- Reasoning is always on. You can't toggle it off for tiny, straightforward prompts where you just want an instant answer.
- It's an older generation model now, sitting behind GPT-6.1 Terra, GPT-6.2 Sol and GPT-6.2 Astra (plus their Pro versions). So if you run into a wall on harder tasks, those newer lines are the obvious step up.
- It's the Mini version of GPT-5.1-Codex, aimed at speed and budget rather than matching the heaviest models.
GPT-5.1-Codex-Mini vs similar models
| Model | Input | Output | Plan2API | Context |
|---|---|---|---|---|
| GPT-5.1-Codex-Mini | $0.25 | $2 | Not available | 400K |
| GPT-6.2 Astra | $8 | $40 | $0 on ChatGPT | 1.1M |
| GPT-6.2 Astra Pro | $8 | $40 | Not available | 1.1M |
| GPT-6.2 Sol | $2 | $10 | $0 on ChatGPT | 1.1M |
| Qwen3.6 27B | $0.25 | $2 | Not available | 262K |
| Seed-2.0-Lite | $0.25 | $2 | Not available | 262K |
GPT-5.1-Codex-Mini cost per month
| Workload | API price |
|---|---|
| Side project2M in, 500K out | $1.50 |
| Production app25M in, 5M out | $16.25 |
| Agents at scale250M in, 50M out | $163 |
FAQ
How much does the GPT-5.1-Codex-Mini API cost?
GPT-5.1-Codex-Mini costs $0.25 per 1M input tokens and $2 per 1M output tokens, and cached input costs $0.03 per 1M.
What is the GPT-5.1-Codex-Mini context window?
GPT-5.1-Codex-Mini takes 400,000 tokens of context, with up to 128,000 output tokens per request.
When was GPT-5.1-Codex-Mini released?
OpenAI released GPT-5.1-Codex-Mini on Nov 13, 2025.
Can I use GPT-5.1-Codex-Mini with my subscription?
Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6.2 Sol runs through your ChatGPT plan at $0 per token instead.
Can I turn off reasoning on GPT-5.1-Codex-Mini?
No. Reasoning stays on for every request, which is handy when you want it working through code, less great if you just want a quick, bare-bones completion.
Can I send it screenshots or other images?
Yes, it takes both images and text as input. That makes it easy to drop in a screenshot of a broken layout or an error message right next to your code (which beats trying to describe a UI bug in plain text).
More OpenAI models
Already paying for ChatGPT? Use GPT-6.2 Sol through your plan, $0 per token.
- Free: 1 subscription, no daily cap, no card
- Pro: $12 a month