Claude Sonnet 4
Retired Jun 2026Released May 2025 alongside Opus 4, with coding and reasoning upgrades over Sonnet 3.7 and hybrid instant and extended thinking.
- Context
- 200K tokens
- Max output
- 64K
- Cutoff
- Released
Hosted API price
Cheapest via Replicate · per 1M tokens
- Input
- $3.00 /1M
- Output
- $15.00 /1M
- Hosted by
-
1 provider
Hosted API pricing
How we price
Order
Providers are listed cheapest input rate first, then by output rate, a tie going to the creator's own listing. A provider that lists the model without a published rate sits at the end.
Prices
Base-tier, on-demand rates in USD per 1M tokens, converted at ECB reference rates where a provider publishes in another currency. Cached-input and batch rates show only where a provider publishes them. "Cheapest" marks the one provider with the lowest input and output pair; a tie wears no badge.
Cost
Input rate times the input tokens plus output rate times the output tokens, at the monthly volume set above the table. Cached-input, batch, long-context and reasoning-token billing are not modelled.
Transparency and funding
- Affiliates: Affiliate links are marked. We may earn a commission if you click them, but commissions never affect the order.
Every provider serving Claude Sonnet 4, cheapest input first. Set your monthly volume to see what each would bill.
| Provider | Input /1M | Output /1M | Cost at 10M in + 2M out | Link |
|---|---|---|---|---|
|
|
$3.00 | $15.00 | $60.00 | Visit website |
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% |
|
|
$6.6667 | $4.00 | $20.00 | 1M | Jun 2026 | +33% |
|
|
$8.3333 | $5.00 | $25.00 | 200K | May 2025 | +67% |
|
|
$8.3333 | $5.00 | $25.00 | 1M | May 2025 | +67% |
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.
Capabilities
What Claude Sonnet 4 accepts and can do, as published by Anthropic.
- Text Accepts and generates natural-language text.
- Image Accepts images as input alongside text.
- 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.
Common 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
-
Claude Sonnet 4.6
1M context · cutoff Aug 2025
From $3.00 / $15.00 /1M in / out at the cheapest provider -
Claude Sonnet 4.5
200K context · cutoff Jan 2025
From $3.00 / $15.00 /1M in / out at the cheapest provider -
Claude Opus 5.5
1M context · cutoff Jun 2026
From $4.00 / $20.00 /1M in / out at the cheapest provider -
Claude Sonnet 5.5
1M context · cutoff Jun 2026
From $2.00 / $10.00 /1M in / out at the cheapest provider -
Claude Sonnet 5
1M context · cutoff Jan 2026
From $2.00 / $10.00 /1M in / out at the cheapest provider -
Claude Opus 5
1M context · cutoff May 2026
From $5.00 / $25.00 /1M in / out at the cheapest provider -
Claude Opus 4.7
1M context · cutoff Jan 2026
From $5.00 / $25.00 /1M in / out at the cheapest provider -
Claude Opus 4.8
1M context · cutoff Jan 2026
From $5.00 / $25.00 /1M in / out at the cheapest provider