token.app › Compare › GPT-4o vs Claude Sonnet 5
GPT-4o vs Claude Sonnet 5
Claude Sonnet 5 leads on 2 of 2 shared benchmarks. Claude Sonnet 5 is 1.1× cheaper per token on a blended 3:1 basis. Claude Sonnet 5 accepts the larger context window (1M).
Head to head
Blended price uses a 3:1 input:output mix
| GPT-4o | Claude Sonnet 5 | |
|---|---|---|
| Provider | OpenAI | Anthropic |
| Input $/1M | $2.50 | $2.00 |
| Output $/1M | $10.00 | $10.00 |
| Blended $/1M | $4.38 | $4.00 |
| Context window | 128K | 1M |
| Max output | 16K | 128K |
| Released | May 2024 | Jun 2026 |
| Licence | Proprietary | Proprietary |
| GPQA Diamond | 47.9% | 90.5% |
| OTIS Mock AIME | 6.3% | 94.7% |
Benchmark scores independently run and published by Epoch AI, 'AI Benchmarking Hub', used under CC BY 4.0. Only benchmarks with a score for BOTH models are compared.
Choose GPT-4o if…
- No clear advantage on the data we hold.
Choose Claude Sonnet 5 if…
- Costs less per token — $4.00 vs $4.38 blended
- Higher GPQA Diamond (90.5% vs 47.9%)
- Higher OTIS Mock AIME (94.7% vs 6.3%)
- Larger context window (1M)
- Newer model (released Jun 2026)
FAQ
Which is better, GPT-4o or Claude Sonnet 5?
Across the 2 benchmarks both models have independently-run scores for, GPT-4o leads on 0 and Claude Sonnet 5 leads on 2. Benchmarks are one input — price and context window are on this page too.
Is GPT-4o cheaper than Claude Sonnet 5?
Claude Sonnet 5 is cheaper: $4.00 versus $4.38 per million tokens blended at 3:1 input:output. Input alone: $2.50 vs $2.00. Output alone: $10.00 vs $10.00.
What context windows do GPT-4o and Claude Sonnet 5 have?
GPT-4o: 128,000 tokens. Claude Sonnet 5: 1,000,000 tokens.
Who makes GPT-4o and Claude Sonnet 5?
GPT-4o is made by OpenAI. Claude Sonnet 5 is made by Anthropic.