Claude Sonnet 4
Released May 2025 alongside Opus 4, with coding and reasoning upgrades over Sonnet 3.7 and hybrid instant and extended thinking.
Key Specifications
- Context window
- 200K tokens
- Max output
- 64K tokens
- Knowledge cutoff
- Released
- Inputs
- Text, image
- Capabilities Show details
- Reasoning Thinks before it answers, always on or as a switchable mode. Function calling Connect to external tools, APIs, and systems. Structured output Return responses in structured formats like JSON.
Hosted API pricing
| Provider | Input /1M tokens | Output /1M tokens | Cost at 10M in + 2M out | |
|---|---|---|---|---|
|
|
$3.00 | $15.00 | $60.00 | View |
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Similarly priced models
The models nearest Claude Sonnet 4 by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs Claude Sonnet 4 |
|---|---|---|---|---|---|---|
|
|
$3.75 | $2.50 | $10.00 | 256K | −25% | |
|
|
$3.75 | $2.50 | $10.00 | 128K | Oct 2023 | −25% |
|
|
$3.7917 | $1.75 | $14.00 | 400K | Aug 2025 | −24% |
|
|
$3.7917 | $1.75 | $14.00 | 400K | Aug 2025 | −24% |
|
|
$4.5833 | $2.50 | $15.00 | 1M | Aug 2025 | −8% |
|
|
$5.00 | $3.00 | $15.00 | 200K | Mar 2025 | |
|
|
$5.00 | $3.00 | $15.00 | 200K | Jan 2025 | 0% |
|
|
$5.00 | $3.00 | $15.00 | 1M | Aug 2025 | 0% |
|
|
$8.3333 | $5.00 | $25.00 | 200K | May 2025 | +67% |
|
|
$8.3333 | $5.00 | $25.00 | 1M | May 2025 | +67% |
|
|
$8.3333 | $5.00 | $25.00 | 1M | Jan 2026 | +67% |
Prices are USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Frequently Asked Questions
What is Claude Sonnet 4 good for?
Coding and reasoning, with a choice of instant or extended thinking. It takes text and images, at the Sonnet tier below Opus.
When is Claude Sonnet 4 not a good fit?
Any new work: Anthropic retired it in June 2026, and Sonnet 4.5 and 4.6 know more recent events. No audio or video input, and closed weights, so no self-hosting.
What is the cheapest way to run Claude Sonnet 4?
The cheapest hosted rate is $3.00 / $15.00 per 1M tokens via Replicate.
How does Claude Sonnet 4 compare with Claude Sonnet 4.5?
Anthropic says Claude Sonnet 4.5 improves on Claude Sonnet 4 most in computer use, reasoning and math, and holds focus on long multi-step tasks for many hours. The launch added a memory tool and context editing so agents can run longer. Same price, 200K-token context and text and image input. Claude Sonnet 4 came out 4 months earlier and has a newer knowledge cutoff (March 2025 against January 2025).
Can I self-host Claude Sonnet 4?
No. Anthropic does not publish the weights; Claude Sonnet 4 is available only through hosted APIs.
More from Anthropic
| Model | Context | Input /1M | Output /1M |
|---|---|---|---|
|
|
1M | $3.00 | $15.00 |
|
|
200K | $3.00 | $15.00 |
|
|
1M | $2.00 | $10.00 |
|
|
1M | $5.00 | $25.00 |
|
|
1M | $5.00 | $25.00 |
|
|
1M | $5.00 | $25.00 |
|
|
1M | $5.00 | $25.00 |
|
|
200K | $5.00 | $25.00 |