Claude Sonnet 4
by Anthropic · anthropic/claude-sonnet-4 · #291 cheapest of 325 paid models
Prices updated Jul 22, 2026, 2:41 AM UTC · refreshed hourly
Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...
Compare vs:GPT-5.6 SolGPT-5.6 TerraGPT-4.1GPT-4.1 Mini
Pricing
Input
$3.00
per 1M tokens
Output
$15.00
per 1M tokens
Blended (3:1)
$6.00
3 input : 1 output
Cache read
$0.30
per 1M cached tokens
Cache write
$3.75
per 1M tokens
Cache & batch economics
Effective prices for Claude Sonnet 4 with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $6.00 | $0.321 | — |
| 50% | $4.99 | $0.186 | −42% |
| 90% | $4.18 | $0.078 | −76% |
*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates for this provider’s batch API. Confirm on the vendor’s pricing page.
What a request costs
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $0.006 | $6.00 |
| Document summary | 8,000 | 1,000 | $0.039 | $39.00 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.12 | $120.00 |
| Long-context analysis | 150,000 | 5,000 | $0.525 | $525.00 |
Performance
Intelligence Index
28.9
AA composite quality
Coding Index
37.6
Math Index
—
Agentic Index
16.6
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Design Arena Elo
| Category | Elo |
|---|---|
| Website | 1,173 |
| UI components | 1,172 |
| Data viz | 1,188 |
| SVG | 1,125 |
| 3D | 1,198 |
| Game dev | 1,197 |
| Code categories | 1,175 |
Specs
Context window
1M
tokens
Max output
64K
tokens
Input modalities
image, text, file
Tokenizer
Claude