Anthropic · live price
Claude Sonnet 4 API pricing
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%),...
- Input
- $3
- per 1M tokens
- Output
- $15
- per 1M tokens
- Cached input
- $0.3
- per 1M tokens
- Context
- 200K
- 64K max output
List price from OpenRouter, which passes Anthropic's price through without markup. Refreshed hourly. Released May 22, 2025. Model id anthropic/claude-sonnet-4.
What Claude Sonnet 4 costs in practice
1,000 chat messages
$10.50
1,000 input + 500 output tokens each
1,000 RAG questions
$31.50
8,000 input + 500 output tokens each
100 coding-agent steps
$12.00
30,000 input + 2,000 output tokens each, no caching
Claude Sonnet 4 price history
Claude Sonnet 4 price by host
- Amazon Bedrock$3 in · $15 out · 200K ctx · 100.0% uptime 24h
Where to buy Anthropic credits for less
Disclosure: this site is run by the team behind smaaart, one of the options compared. Tables are ranked by price only, from live quotes and published fees, including when smaaart isn't first. How we compare
Claude Sonnet 4 cost calculator
Cheaper alternatives to Claude Sonnet 4
| Model | Input / 1M | Output / 1M |
|---|---|---|
| OpenAI: GPT-6.1 Sol Pro | $2 | $10 |
| OpenAI: GPT-6.1 Sol | $2 | $10 |
| Z.ai: GLM 5.3 Prime | $2.80 | $8.80 |
| OpenAI: GPT-6 Sol Pro | $2 | $10 |
| OpenAI: GPT-6 Sol | $2 | $10 |
| SpaceXAI: Grok 4.7 | $2 | $6 |
Other Anthropic models
| Model | Input / 1M | Output / 1M |
|---|---|---|
| Claude Opus 4.1 | $15 | $75 |
| Claude Sonnet 4.5 | $3 | $15 |
| Claude Haiku 4.5 | $1 | $5 |
| Claude Opus 4.5 | $5 | $25 |
| Claude Opus 4.6 | $5 | $25 |
| Claude Sonnet 4.6 | $3 | $15 |