Claude Sonnet 5 vs GPT-5.4
GPT-5.4 wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (157.9 vs 156.9). Claude Sonnet 5 is about 1.4× cheaper on a blended (3:1 input:output) token price. GPT-5.4 has the larger context window (1.1M vs 1M).
| Spec | Claude Sonnet 5 | GPT-5.4 |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Released | Jun 29, 2026 (better) | Mar 5, 2026 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | — | — |
| Context window | 1M | 1.1M (better) |
| Max output | 125K | 125K |
| Input price / 1M | $2 (better) | $2.50 |
| Output price / 1M | $10 (better) | $15 |
| Input modalities | text, image, pdf, file | text, image, pdf, file |
| Open weights | No | No |
| License | Proprietary | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 56 (better) | 51 |
| Epoch Capabilities Index | 156.9 | 157.9 (better) |
| GPQA Diamond | 90.5% | 93.3% (better) |
| Humanity's Last Exam | — | 36.2% |
| SWE-bench Verified | — | 76.9% |
| Terminal-Bench | — | 81.8% |
| WebDev Arena | 1537 (better) | 1463 |
| OTIS Mock AIME | 94.7% | 97.8% (better) |
| FrontierMath | 65.6% | 78.6% (better) |
| ARC-AGI-2 | — | 74.0% |
| SimpleQA Verified | 33.7% | 45.1% (better) |
| METR Time Horizon | — | 342 min |
Cost example
For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and GPT-5.4 costs $55.00 at list price (Anthropic / openai pricing).
About Claude Sonnet 5
Claude Sonnet 5 is a proprietary reasoning llm from Anthropic, released Jun 29, 2026. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $10 per million output tokens. It is available from 56 API providers. It scores 156.9 on the Epoch Capabilities Index. Full Claude Sonnet 5 specs →
About GPT-5.4
GPT-5.4 is a proprietary reasoning llm from OpenAI, released Mar 5, 2026. It has a 1.1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2.50 per million input tokens and $15 per million output tokens. It is available from 51 API providers. It scores 157.9 on the Epoch Capabilities Index. Full GPT-5.4 specs →
Compare other models
FAQ
Which is better, Claude Sonnet 5 or GPT-5.4?
GPT-5.4 wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (157.9 vs 156.9). Claude Sonnet 5 is about 1.4× cheaper on a blended (3:1 input:output) token price. GPT-5.4 has the larger context window (1.1M vs 1M).
Is Claude Sonnet 5 cheaper than GPT-5.4?
Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; GPT-5.4 costs $2.50 / $15. Claude Sonnet 5 is cheaper overall.
Which has a bigger context window?
Claude Sonnet 5: 1,000,000 tokens. GPT-5.4: 1,050,000 tokens.
Are Claude Sonnet 5 and GPT-5.4 open source?
Claude Sonnet 5 is proprietary; GPT-5.4 is proprietary.