Claude 3.5 Sonnet vs OpenAI GPT-5.4
Both have similar output pricing, while OpenAI GPT-5.4 offers a larger context window. Choose Claude 3.5 Sonnet or OpenAI GPT-5.4 based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | Claude 3.5 Sonnet | OpenAI GPT-5.4 |
|---|---|---|
| Provider | DigitalOcean | DigitalOcean |
| Input / 1M tokens | $3.00 | $2.50 |
| Output / 1M tokens | $15.00 | $15.00 |
| Context window | 200K | 400K |
| Parameters | — | — |
| Open weights | No | No |
| Released | Jun 2024 | Mar 2026 |
| Aider Polyglot score | 51.6 | — |
| SWE-bench Verified score | 63.4 | — |
| SWE-bench Multimodal score | 25.3 | — |
| LMArena (Chatbot Arena) Elo score | 1298 | — |
| LMArena Vision Elo score | 1126 | — |
| GPQA Diamond score | 55.3 | — |
| FrontierMath score | 2.1 | — |
| Epoch Capabilities Index score | 133 | — |
FAQ
Is Claude 3.5 Sonnet or OpenAI GPT-5.4 cheaper?
Claude 3.5 Sonnet and OpenAI GPT-5.4 have comparable output pricing.
Which has the larger context window, Claude 3.5 Sonnet or OpenAI GPT-5.4?
OpenAI GPT-5.4 has the larger context window (400K tokens).
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.