Claude Sonnet 4 API Pricing
Claude Sonnet 4 was retired by Anthropic on June 15, 2026 - the claude-sonnet-4-20250514 model id no longer answers. Anthropic names Claude Sonnet 4.6 as the replacement. Its last listed rates were $3.00/M input and $15.00/M output, with cache hits at $0.30/M, kept here for invoice checks and migration math. Checked against Anthropic's model deprecations page.
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
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 Current | $3.00 cache $0.30 | $15.00 | $2.05 agentic 92/8 | 200K | Production Claude agents |
| Claude Sonnet 4.6 | $3.00 cache $0.30 | $15.00 | $2.05 same | 1M | Production Claude agents |
| Claude Sonnet 4.5 | $3.00 cache $0.30 | $15.00 | $2.05 deprecated · same | 200K | Production Claude agents |
| Claude Haiku 4.5 | $1.00 cache $0.10 | $5.00 | $0.682 −3.0× | 200K | Low-latency Claude workloads |
| Claude Opus 4.7 | $5.00 cache $0.50 | $25.00 | $3.41 +67% | 1M | Frontier reasoning and hard code |
| GPT-5.4 | $2.50 cache $0.25 | $15.00 | $1.80 −12% | 1.05M | OpenAI production apps |
| Gemini 3.8 Flash | $0.75 cache $0.075 | $3.75 | $0.481 −4.3× · promo | 1M | Gemini long-context work |
| DeepSeek V4 Pro | $1.32 cache $0.044 | $3.96 | $0.569 −3.6× | 1M | Low-cost reasoning and coding |
Frequently asked.
Short answers for teams checking old Claude Sonnet 4 costs or migrating archive workloads.
Q · 01 Can I still call Claude Sonnet 4? +
claude-sonnet-4-20250514 on June 15, 2026, and requests to it now fail. Anthropic names Claude Sonnet 4.6 as the replacement. The rates on this page are the last ones Anthropic listed, kept for reading old invoices and for estimating a migration.Q · 02 What replaced Claude Sonnet 4? +
claude-sonnet-4-6 as the recommended replacement in its model deprecations page.