Claude Sonnet 5 vs GPT-5.1 Codex Max
Price and specs side by side · USD per 1M tokens · verified 2026-11-14
// side by side
| metric | Claude Sonnet 5 | GPT-5.1 Codex Max |
|---|
| input / 1M | $2.00 | $1.25 |
| output / 1M | $10.00 | $10.00 |
| blended (3:1) | $4.00 | $3.4375 |
| cache read / 1M | $0.20 | $0.125 |
| context | 1M | 400K |
| max output | 128K | 128K |
| input types | text · image · pdf | text · image · pdf |
| reasoning | yes | yes |
| tool calling | yes | yes |
| structured output | yes | yes |
| open weights | no | no |
| released | 2026-06-29 | 2025-11-13 |
| knowledge cutoff | 2026-01-31 | 2024-09-30 |
| lab | Anthropic | OpenAI |
// monthly cost scenarios
| workload | tokens in / out | Claude Sonnet 5 | GPT-5.1 Codex Max |
|---|
| Chatbot | 10M / 2M | $40.00 | $32.50 |
| RAG app | 50M / 5M | $150 | $113 |
| Coding agent | 20M / 10M | $140 | $125 |
// verdict
- GPT-5.1 Codex Max is 14.1% cheaper than Claude Sonnet 5 on a blended 3:1 input/output basis.
- Claude Sonnet 5 has the larger context window (1M vs 400K tokens).
- Chatbot (10M input / 2M output tokens per month): GPT-5.1 Codex Max costs $32.50 vs $40.00 for Claude Sonnet 5, saving $7.50 per month.
- RAG app (50M input / 5M output tokens per month): GPT-5.1 Codex Max costs $113 vs $150 for Claude Sonnet 5, saving $37.50 per month.
- Coding agent (20M input / 10M output tokens per month): GPT-5.1 Codex Max costs $125 vs $140 for Claude Sonnet 5, saving $15.00 per month.
// Claude Sonnet 5 or GPT-5.1 Codex Max: which one to choose
- Choose GPT-5.1 Codex Max for cost-sensitive, high-volume workloads.
- Choose Claude Sonnet 5 for long documents and large codebases (1M-token context).