GPT-4o vs GPT-5.1-Codex-Max
Both have similar output pricing, while GPT-5.1-Codex-Max offers a larger context window. Choose GPT-4o or GPT-5.1-Codex-Max based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | GPT-4o | GPT-5.1-Codex-Max |
|---|---|---|
| Provider | OpenAI | OpenAI |
| Input / 1M tokens | $2.50 | $1.25 |
| Output / 1M tokens | $10.00 | $10.00 |
| Context window | 128K | 400K |
| Parameters | — | — |
| Open weights | No | No |
| Released | May 2024 | Nov 2025 |
| SWE-bench Verified score | 38.8 | — |
| SWE-bench Multimodal score | 30.4 | — |
| LMArena (Chatbot Arena) Elo score | 1300 | — |
| LMArena Vision Elo score | 1137 | — |
| GPQA Diamond score | 49.2 | — |
| FrontierMath score | 0.3 | — |
| Epoch Capabilities Index score | 129 | — |
| LiveBench score | — | 74.4 |
FAQ
Is GPT-4o or GPT-5.1-Codex-Max cheaper?
GPT-4o and GPT-5.1-Codex-Max have comparable output pricing.
Which has the larger context window, GPT-4o or GPT-5.1-Codex-Max?
GPT-5.1-Codex-Max has the larger context window (400K tokens).
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.