OpenAI, released Nov 13, 2025
GPT-5.1-Codex
GPT-5.1-Codex is OpenAI's coding-focused version of GPT-5.1, built for both back-and-forth dev sessions and longer tasks where you just turn it loose on a project. It came out in late 2025, so it sits a generation behind OpenAI's newer GPT-6.1 Terra and GPT-6.2 Sol and Astra models, though it still lands in the middle of the lineup on cost (cheaper than the GPT-6.2 models, pricier than Terra). If you want a model tuned specifically for software work rather than a general release, this is what it was made for.
Already paying for ChatGPT?
GPT-5.1-Codex costs $10 per 1M output tokens. Use GPT-6.2 Sol through your ChatGPT plan instead, $0 per token.
Updated
GPT-5.1-Codex pricing and specs
- Input
- $1.25per 1M tokens
- Output
- $10per 1M tokens
- Cached input
- $0.13per 1M tokens
- Context window
- 400K400,000 tokens
- Max output
- 128K128,000 tokens
- Released
- Nov 13, 2025
- Accepts
- TextImages
- Features
- Tool callingReasoningStructured outputs
What GPT-5.1-Codex is good at
- Long, hands-off coding runs where you hook it up to tools and let it work through a hard task on its own - it's built for independent execution, and the huge context window plus a very high output limit give it room to finish without getting cut off.
- Interactive dev sessions when you want reasoning baked in from the start.
- Visual debugging where you need to send an image alongside your text, since it accepts both.
- Automated dev pipelines that need predictable, machine-readable responses, with built-in support for structured JSON output and tool calling.
Good to know
- Reasoning is always on. You can't turn it off for quick, trivial prompts, so if you just want fast boilerplate or simple text generation, it's probably overkill.
- It's an older generation now. GPT-6.1 Terra and the GPT-6.2 Sol and Astra lines all landed nearly a year later, so if you don't specifically need a Codex-tuned model, it's worth checking those first.
- Price-wise it sits in an awkward middle spot: way cheaper than GPT-6.2 Astra and a bit cheaper on input than GPT-6.2 Sol, but more expensive than GPT-6.1 Terra.
GPT-5.1-Codex vs similar models
| Model | Input | Output | Plan2API | Context |
|---|---|---|---|---|
| GPT-5.1-Codex | $1.25 | $10 | 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 |
| Claude Sonnet 5.5 | $2 | $10 | $0 on Claude | 1M |
| Claude Sonnet 5 | $2 | $10 | $0 on Claude | 1M |
GPT-5.1-Codex cost per month
| Workload | API price |
|---|---|
| Side project2M in, 500K out | $7.50 |
| Production app25M in, 5M out | $81.25 |
| Agents at scale250M in, 50M out | $813 |
FAQ
How much does the GPT-5.1-Codex API cost?
GPT-5.1-Codex costs $1.25 per 1M input tokens and $10 per 1M output tokens, and cached input costs $0.13 per 1M.
What is the GPT-5.1-Codex context window?
GPT-5.1-Codex takes 400,000 tokens of context, with up to 128,000 output tokens per request.
When was GPT-5.1-Codex released?
OpenAI released GPT-5.1-Codex on Nov 13, 2025.
Can I use GPT-5.1-Codex 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 reasoning off for simpler calls?
No. Reasoning is always on with GPT-5.1-Codex, so every request runs with it enabled. If you have lightweight tasks that don't need it, you'll want to route those to another model.
Why pick this over the newer GPT-6.1 or GPT-6.2 models?
Mainly if you want something tuned specifically for coding workflows. The GPT-6.1 Terra and GPT-6.2 Sol and Astra models are newer releases, so they're the obvious starting point for general work. But if your workload is heavy on interactive coding or long autonomous engineering tasks, GPT-5.1-Codex is still purpose-built for that.
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