OpenAI · live price
GPT-5.1-Codex-Max API pricing
GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks. It is based on an updated version of the 5.1 reasoning stack and trained on agentic...
- Input
- $1.25
- per 1M tokens
- Output
- $10
- per 1M tokens
- Cached input
- $0.125
- per 1M tokens
- Context
- 400K
- 128K max output
List price from OpenRouter, which passes OpenAI's price through without markup. Refreshed hourly. Released December 4, 2025. Model id openai/gpt-5.1-codex-max.
What GPT-5.1-Codex-Max costs in practice
1,000 chat messages
$6.25
1,000 input + 500 output tokens each
1,000 RAG questions
$15.00
8,000 input + 500 output tokens each
100 coding-agent steps
$5.75
30,000 input + 2,000 output tokens each, no caching
GPT-5.1-Codex-Max price history
GPT-5.1-Codex-Max price by host
- Azure$1.25 in · $10 out · 400K ctx · 100.0% uptime 24h
Where to buy OpenAI credits for less
Disclosure: this site is run by the team behind smaaart, one of the options compared. Tables are ranked by price only, from live quotes and published fees, including when smaaart isn't first. How we compare
GPT-5.1-Codex-Max cost calculator
Cheaper alternatives to GPT-5.1-Codex-Max
| Model | Input / 1M | Output / 1M |
|---|---|---|
| SpaceXAI: Grok 4.7 | $2 | $6 |
| Qwen: Qwen3.8 Omni Flash | $0.15 | $0.47 |
| Z.ai: GLM 5.3 FlashX | $0.37 | $1.25 |
| DeepSeek: DeepSeek V4.1 Flash | $0.03 | $0.5 |
| Qwen: Qwen3.8 Max (0902) | $2 | $6 |
| Google: Gemini 3.8 Flash | $0.75 | $3.75 |
Other OpenAI models
| Model | Input / 1M | Output / 1M |
|---|---|---|
| GPT-5.2 | $1.75 | $14 |
| GPT-5.2 Pro | $21 | $168 |
| GPT-5.2 Chat | $1.75 | $14 |
| GPT-5.1 | $1.25 | $10 |
| GPT-5.1-Codex | $1.25 | $10 |
| GPT-5.1-Codex-Mini | $0.25 | $2 |