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.

Get your API key Free plan, no card needed

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

API price per 1M tokens
ModelInputOutputPlan2APIContext
GPT-5.1-Codex-Max$1.25$10Not available400K
GPT-6.2 Astra$8$40$0 on ChatGPT1.1M
GPT-6.2 Astra Pro$8$40Not available1.1M
GPT-6.2 Sol$2$10$0 on ChatGPT1.1M
Claude Sonnet 5.5$2$10$0 on Claude1M
Claude Sonnet 5$2$10$0 on Claude1M

GPT-5.1-Codex-Max cost per month

Tokens a month at $1.25 input and $10 output per 1M
WorkloadAPI 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

All 57 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

GPT-6.2 Sol at $0 per tokenFree plan, no card needed

Get your API key

Guides

80