Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max,...
Model details →Anthropic: Claude Sonnet 5 vs OpenAI: GPT-4.1
OpenAI: GPT-4.1 wins on 2 of 6 axes — pricing and capability skew in its favour for most workloads.
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...
Model details →Side-by-side comparison
| Capability | Anthropic: Claude Sonnet 5 | OpenAI: GPT-4.1 | Winner |
|---|---|---|---|
| Context window Maximum number of input tokens the model can attend to in a single request. | 1M | 1.0M | 🏆 OpenAI: GPT-4.1 |
| Input price (per 1M) Cost per million input tokens billed by the provider. | $2.00 | $2.00 | Tie |
| Output price (per 1M) Cost per million output tokens billed by the provider. | $10.00 | $8.00 | 🏆 OpenAI: GPT-4.1 |
| Tool / function calling First-class support for emitting structured tool calls. | Yes | Yes | Tie |
| Vision input Accepts image inputs alongside text. | Yes | Yes | Tie |
| Reasoning mode Internal chain-of-thought / extended-thinking support. | Yes | — | 🏆 Anthropic: Claude Sonnet 5 |
Frequently asked questions
Is Anthropic: Claude Sonnet 5 better than OpenAI: GPT-4.1?
OpenAI: GPT-4.1 wins on 2 of 6 axes — pricing and capability skew in its favour for most workloads.
What's the price difference between Anthropic: Claude Sonnet 5 and OpenAI: GPT-4.1?
Input: $2.00 vs $2.00 per 1M tokens. Output: $10.00 vs $8.00 per 1M tokens.
What context windows do Anthropic: Claude Sonnet 5 and OpenAI: GPT-4.1 support?
Anthropic: Claude Sonnet 5 supports up to 1M tokens. OpenAI: GPT-4.1 supports up to 1.0M tokens.
Do both Anthropic: Claude Sonnet 5 and OpenAI: GPT-4.1 support tool calling?
Anthropic: Claude Sonnet 5: yes. OpenAI: GPT-4.1: yes.
Compare Anthropic: Claude Sonnet 5 with other models
vs Anthropic Claude Haiku Latestvs Anthropic Claude Sonnet Latestvs Anthropic: Claude Fable Latestvs Anthropic: Claude Opus Latest