OpenAI, released Dec 4, 2025
GPT-5.1-Codex-Max
GPT-5.1-Codex-Max is OpenAI's coding-focused model from the 5.1 generation, built for long, multi-step software tasks where the model has to keep track of a big codebase and call tools on its own. It's older than the GPT-6.1 Terra and GPT-6.2 Sol and Astra releases, sitting in the middle of OpenAI's lineup on cost - way cheaper than Astra, a little cheaper on input than Sol, and pricier than Terra. If you're building coding agents that need to chew through a lot of context and write long outputs, that's what it's made for.
Already paying for ChatGPT?
GPT-5.1-Codex-Max costs $10 per 1M output tokens. Use GPT-6.2 Sol through your ChatGPT plan instead, $0 per token.
Updated
GPT-5.1-Codex-Max pricing and specs
- Input
- $1.25per 1M tokens
- Output
- $10per 1M tokens
- Cached input
- $0.125per 1M tokens
- Context window
- 400K400,000 tokens
- Max output
- 128K128,000 tokens
- Released
- Dec 4, 2025
- Accepts
- TextImages
- Features
- Tool callingReasoningStructured outputs
What GPT-5.1-Codex-Max is good at
- Coding agents that run in a loop, calling tools while holding a huge chunk of a repo in context.
- Big refactors or heavy code generation, since it can output a massive amount of text in one go without cutting off halfway through a file (which saves you from stitching pieces together yourself).
- Front-end or UI debugging when you want to drop a screenshot next to your code, as it takes images as well as text.
- Automated dev pipelines that need structured JSON back instead of freeform text.
Good to know
- Reasoning is always on, and you can't switch it off. That's fine for hard coding work, less great for tiny one-off prompts.
- It came out back in late 2025, before OpenAI's GPT-6.1 Terra and GPT-6.2 Sol and Astra lines. So if you're starting a new integration, it's worth checking how it stacks up against GPT-6.2 Sol in particular (they're priced the same on output, though Codex-Max is a bit cheaper on input).
- Input is pretty cheap compared to the top-end GPT-6.2 Astra models, but output costs a lot more than input. Chatty loops that rewrite full files on every turn will add up fast.
GPT-5.1-Codex-Max vs similar models
| Model | Input | Output | Plan2API | Context |
|---|---|---|---|---|
| GPT-5.1-Codex-Max | $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-Max 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-Max API cost?
GPT-5.1-Codex-Max costs $1.25 per 1M input tokens and $10 per 1M output tokens, and cached input costs $0.125 per 1M.
What is the GPT-5.1-Codex-Max context window?
GPT-5.1-Codex-Max takes 400,000 tokens of context, with up to 128,000 output tokens per request.
When was GPT-5.1-Codex-Max released?
OpenAI released GPT-5.1-Codex-Max on Dec 4, 2025.
Can I use GPT-5.1-Codex-Max 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-Max?
No. Reasoning is always on, so every call runs through it.
Does it support images, tool calling, and structured JSON?
Yep, all three. You can feed it screenshots alongside your code, wire it up to your own tools, and ask for structured JSON back when you need a predictable output shape.
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