Claude Sonnet 4.5 vs GPT-4.1 Pro: which model should you choose?
We compared Claude Sonnet 4.5 and GPT-4.1 Pro on price, context window and 12 benchmarks. Claude Sonnet 4.5 has the stronger average benchmark score; Claude Sonnet 4.5 is cheaper on a blended 3:1 basis.
Claude Sonnet 4.5
Claude Sonnet 4.5 is a frontier model from Anthropic. It offers a 400,000-token context window, costs $17.84 per million input tokens and $70.50 per million output tokens, and averages 86.0 across the index's benchmark suite.
- Input
- $17.84 / 1M
- Output
- $70.50 / 1M
- Context
- 400,000
- Avg score
- 86.0
- Open weights
- No
GPT-4.1 Pro
GPT-4.1 Pro is a frontier model from OpenAI. It offers a 400,000-token context window, costs $17.56 per million input tokens and $91.14 per million output tokens, and averages 85.2 across the index's benchmark suite.
- Input
- $17.56 / 1M
- Output
- $91.14 / 1M
- Context
- 400,000
- Avg score
- 85.2
- Open weights
- No
Specification comparison
| Spec | Claude Sonnet 4.5 | GPT-4.1 Pro | Edge |
|---|---|---|---|
| Input price / 1M | $17.84 | $17.56 | B |
| Output price / 1M | $70.50 | $91.14 | A |
| Context window | 400,000 | 400,000 | Tie |
| Max output | 128,000 | 8,192 | A |
| Average score | 86.0 | 85.2 | A |
| Arena Elo | 1478.2 | 1449.6 | A |
| Open weights | No | No | Tie |
Benchmark comparison
Claude Sonnet 4.5 wins 6, GPT-4.1 Pro wins 6, and 0 benchmarks are tied. The table shows the modelled score for each model and the gap.
| Benchmark | Claude Sonnet 4.5 | GPT-4.1 Pro | Gap | Winner |
|---|---|---|---|---|
| MMLU-Pro | 88.0 | 86.9 | 1.1 | Claude Sonnet 4.5 |
| GPQA Diamond | 82.6 | 78.2 | 4.4 | Claude Sonnet 4.5 |
| SWE-bench Verified | 74.2 | 77.3 | 3.1 | GPT-4.1 Pro |
| HumanEval | 92.7 | 91.9 | 0.8 | Claude Sonnet 4.5 |
| MATH-500 | 87.0 | 88.8 | 1.8 | GPT-4.1 Pro |
| AIME 2025 | 86.3 | 82.8 | 3.5 | Claude Sonnet 4.5 |
| LiveCodeBench | 82.5 | 76.7 | 5.8 | Claude Sonnet 4.5 |
| IFEval | 91.1 | 92.2 | 1.1 | GPT-4.1 Pro |
| TruthfulQA | 87.2 | 87.7 | 0.5 | GPT-4.1 Pro |
| HellaSwag | 93.0 | 93.7 | 0.7 | GPT-4.1 Pro |
| MMMU | 80.9 | 81.5 | 0.6 | GPT-4.1 Pro |
| Arena Elo | 1478.2 | 1449.6 | 28.6 | Claude Sonnet 4.5 |
Price analysis
On a blended 3:1 input-to-output basis, Claude Sonnet 4.5 costs about $31.00 per million tokens and GPT-4.1 Pro costs about $35.95. Claude Sonnet 4.5 is roughly 14% cheaper than GPT-4.1 Pro. At high volume, that gap compounds quickly, so price should carry real weight unless the quality difference is decisive.
Both models list a 400,000-token context window. That is enough for long documents, large codebases and multi-step agent traces.
Verdict
Across 12 shared benchmarks, Claude Sonnet 4.5 wins 6, GPT-4.1 Pro wins 6, and 0 are tied. On the index average, Claude Sonnet 4.5 leads GPT-4.1 Pro by 0.8 points (86.0 versus 85.2).
The price picture favours Claude Sonnet 4.5. The context picture is effectively a tie. Those two dimensions often matter more than a few benchmark points once a model is good enough for the task.
If you need a single default, start with Claude Sonnet 4.5 for quality-sensitive work, and check whether its price holds at your expected volume before committing.
Choose Claude Sonnet 4.5 if
- You want the higher average benchmark score in this index.
- Unit cost matters and you want the cheaper blended price.
- You need the larger 128,000-token output limit.
Choose GPT-4.1 Pro if
- You prefer OpenAI's tooling or already use it.
FAQ
Is Claude Sonnet 4.5 better than GPT-4.1 Pro?
On the index average, Claude Sonnet 4.5 leads GPT-4.1 Pro by 0.8 points (86.0 versus 85.2). The better choice depends on price, context and your task. Claude Sonnet 4.5 wins 6 benchmarks, GPT-4.1 Pro wins 6.
Which is cheaper, Claude Sonnet 4.5 or GPT-4.1 Pro?
Claude Sonnet 4.5 is cheaper on a blended 3:1 basis at about $31.00 per million tokens, versus $35.95 for GPT-4.1 Pro.
Which has the larger context window?
Both models list a 400,000-token context window.
Are these models open weights?
Claude Sonnet 4.5 is proprietary; GPT-4.1 Pro is proprietary.
Which should I choose for production?
If you need a single default, start with Claude Sonnet 4.5 for quality-sensitive work, and check whether its price holds at your expected volume before committing.