Claude Sonnet 4 API Pricing
Claude Sonnet 4 is deprecated and scheduled to retire on June 15, 2026. $3/M input, $15/M output, and $0.3/M cache-hit input. Use this page for archived Anthropic API pricing and migration checks. New production traffic should move to Claude Sonnet 4.6.
Run the numbers.
Archive calculator pre-loaded with Claude Sonnet 4 rates. Tweak spend, output mix, or cache hit rate to compare historical bills with current replacements.
Real-world presets.
Repo-wide bug fix
Reading 100-page contracts
Support agent ticket triage
Research planning turn
Price history.
Paste text. See tokens. See cost.
This is a chars-per-token approximation, not a real tokenizer. Actual tokens vary by language, code density, and tool-call overhead — counts are typically ±10–20% off for English prose, more for code or non-Latin scripts. For exact billing, use the vendor's official tokenizer.
| Model | Input /M | Output /M | Effective blended | Context | Best for |
|---|---|---|---|---|---|
| Claude Sonnet 4 | $3.00 cache $0.30 | $15.00 | $1.92 current archive | 200K | Production Claude agents |
| Claude Sonnet 4.6 | $3.00 cache $0.30 | $15.00 | $1.92 same blend | 1M | Production Claude agents |
| Claude Sonnet 4.5 | $3.00 cache $0.30 | $15.00 | $1.92 same blend | 200K | Production Claude agents |
| Claude Haiku 4.5 | $1.00 cache $0.10 | $5.00 | $0.64 cheaper | 200K | Low-latency Claude workloads |
| Claude Opus 4.7 | $5.00 cache $0.50 | $25.00 | $3.21 pricier | 1M | Frontier reasoning and hard code |
| GPT-5.4 | $2.50 cache $0.25 | $15.00 | $1.80 same blend | 1.05M | OpenAI production apps |
| Gemini 2.5 Pro | $1.25 cache $0.13 | $10.00 | $1.10 cheaper | 2M | Gemini long-context work |
| DeepSeek V4 Pro | $0.43 cache $0.00 | $0.87 | $0.14 cheaper | 1M | Low-cost reasoning and coding |
Frequently asked.
Short answers for teams checking old Claude Sonnet 4 costs or migrating archive workloads.
Q · 01 Is Claude Sonnet 4 still available? +
Q · 02 What replaced Claude Sonnet 4? +
claude-sonnet-4-6 as the recommended replacement in its model deprecations page.