Claude Sonnet 4
Language Available Full comparison ↗ anthropic/claude-sonnet-4 · by Anthropic
· decoder-only-transformer
Pricing — 1 offering(s)
Input tokens
- $3.00 / 1M tokens (input) Current 2026-06-12 → present
Output tokens
- $15.00 / 1M tokens (output) Current 2026-06-12 → present
Showing the active price and any recorded history. Full pricing history is available via the paid API — see API docs.
See how Claude Sonnet 4 fits into a cost-aware routing setup
See how →Capability profile
reasoning strong
coding strong
tool use strong
instruction following strong
context window strong
multilingual strong
speed moderate
cost efficiency moderate
Coding benchmarks
View full leaderboard →| Benchmark | Score | Harness | Source |
|---|---|---|---|
| swe-bench-verified ↗ | 72.7% 2025-05 | agentless 2.0 | 🏢 vendor ↗ |
| aider-polyglot ↗ | 56.4% 2025-05 | aider | 📊 leaderboard ↗ |
| livecodebench ↗ | 52.8% 2025-05 | — | 📊 leaderboard ↗ |
Operator guidance
The price/performance sweet spot of the Claude 4 line — a sensible default. Step up to Opus 4 for the hardest tasks; drop to Haiku 4 for cost/latency.
Use cases
- The default workhorse: strong quality at a moderate price/latency
- Production coding agents, RAG, and tool use at scale
Limitations
- Not as strong as Opus 4 on the very hardest reasoning/agentic tasks
- Capability ratings are qualitative, not a single cited benchmark run
Citations
Compare models
ComparingClaude Sonnet 4with
Pick a model above to see the comparison.