Comparison
Claude Sonnet 5 vs GPT-4o
Per input token, Claude Sonnet 5 runs 20% cheaper than GPT-4o. Claude Sonnet 5 has the larger context window than GPT-4o.
| Field | Claude Sonnet 5 | GPT-4o Legacy |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Context window | 1M | 128K |
| Max output | 128K | — |
| Input / 1M | $2.0020% cheaper | $2.50 |
| Output / 1M | $10.00 | $10.00 |
| Cached input / 1M | $0.2084% cheaper | $1.25 |
| Batch discount | 50% | — |
| Release date | — | — |
Worked cost examples
Estimated monthly cost on three common usage shapes
| Workload | Claude Sonnet 5 | GPT-4o |
|---|---|---|
Chatbot 800 input / 200 output tokens per request, 100,000 requests/month | $360.00cheaper | $400.00 |
RAG pipeline 6,000 input / 700 output tokens per request, 30,000 requests/month | $570.00cheaper | $660.00 |
Batch summarization 20,000 input / 1,500 output tokens per request, 5,000 requests/month | $275.00cheaper | $325.00 |
Claude Sonnet 5 vs GPT-4o FAQ
- Is Claude Sonnet 5 cheaper than GPT-4o?
- Claude Sonnet 5 costs $2.00 per 1M input tokens versus $2.50 for GPT-4o — Claude Sonnet 5 is 20% cheaper per input token.
- Which is cheaper for output tokens, Claude Sonnet 5 or GPT-4o?
- Claude Sonnet 5 charges $10.00 per 1M output tokens; GPT-4o charges $10.00 per 1M output tokens.
- Which has the larger context window, Claude Sonnet 5 or GPT-4o?
- Claude Sonnet 5 does, with a 1,000,000-token context window.
- Do Claude Sonnet 5 and GPT-4o offer cache pricing?
- Claude Sonnet 5 discounts cached input to $0.20 per 1M tokens. GPT-4o discounts cached input to $1.25 per 1M tokens.
Looking for another matchup? See all comparisons.