Claude Sonnet 4
anthropic The API that serves this model and sets the prices shown here. claude-sonnet-4-20250514 The model identifier to send in API requests. LLM Generates text from a prompt, so it can be compared with other LLMs on price and capability. Medium The balanced tier of a model family, trading some capability for speed and cost. Retired Jul 13, 2026 This model has been retired and can no longer be relied on.Provider: Anthropic
Deprecated April 14, 2026. Scheduled for retirement June 15, 2026. Replacement: claude-sonnet-4-6.
Sticker prices & cost-per-token
List rates as published by Anthropic, before any volume or enterprise discounts.
$3.00
$15.00
Closed weights
$1.50 / $7.50
Get this data free
Want to stay updated on price changes on this model? Pull this data free (no API key required) here:
curl "https://coolhandlabs.com/api/v2/inference_apis?q%5Bmodel_eq%5D=claude-sonnet-4-20250514&q%5Bsource_api_eq%5D=anthropic"
Pricing History
| Effective | Price |
|---|---|
| Feb 23, 2026 – present | Input cost: $3.00 / 1M, Output cost: $15.00 / 1M, Batch input cost: $1.50 / 1M, Batch output cost: $7.50 / 1M, Cached input cost: $0.00 / 1M, Cache creation cost: $0.00 / 1M, 5-minute cache write cost: $0.00 / 1M, 1-hour cache write cost: $0.00 / 1M, Reasoning output cost: $0.00 / 1M, Cache storage cost: $0.00 / 1M/hr |
History
Last change detected July 13, 2026 (3 months ago) by an automated scan.
No history recorded yet.
Source
https://www.anthropic.com/pricingComparable models
No comparable models identified yet.
Reliability
No reliability incidents recorded in the last 90 days.
Frequently asked questions
Claude Sonnet 4 (Anthropic) costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, as last published by Anthropic.
Claude Sonnet 4 sits in the medium size tier. Size tiers run from micro (small enough to run on a device) through small, medium and large to extra large (frontier flagships), and are assigned from the model's family, naming and limits rather than its price.
No — the weights of Claude Sonnet 4 have not been released, so it is only available through hosted APIs.
Yes — Anthropic deprecated Claude Sonnet 4 on July 13, 2026. Deprecated April 14, 2026. Scheduled for retirement June 15, 2026. Replacement: claude-sonnet-4-6.
Anthropic retired Claude Sonnet 4 on July 13, 2026.
Since Claude Sonnet 4 is deprecated, Anthropic customers are moving to Claude Fable 5, Claude Haiku 4.5, and Claude Opus 4.5.
Call GET https://coolhandlabs.com/api/v2/inference_apis?q[source_api_eq]=anthropic&q[model_eq]=claude-sonnet-4-20250514 — free, no API key required, and scoped to just this model since source_api and model together are unique. See https://coolhandlabs.com/docs for the full REST API reference.
Coolhand also tracks Claude Opus 4, Claude Opus 4.1, Claude Fable 5, Claude Haiku 4.5, Claude Opus 4.5, and Claude Opus 4.6 from Anthropic. Some may already be deprecated, so check each model's status alongside its current pricing.
| Model | Input cost | Output cost | Context window | Max output tokens | Status |
|---|---|---|---|---|---|
| Claude Opus 4 | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 | — | — |
Deprecated Jul 13, 2026
|
| Claude Opus 4.1 | $15.00/1M $0.0000150000 | $75.00/1M $0.0000750000 | — | — |
Deprecated Jul 13, 2026
|
| Claude Fable 5 | $10.00/1M $0.0000100000 | $50.00/1M $0.0000500000 | 1,000,000 | 128,000 | Active |
| Claude Haiku 4.5 | $1.00/1M $0.0000010000 | $5.00/1M $0.0000050000 | 200,000 | 64,000 | Active |
| Claude Opus 4.5 | $5.00/1M $0.0000050000 | $25.00/1M $0.0000250000 | 200,000 | 64,000 | Active |
| Claude Opus 4.6 | $5.00/1M $0.0000050000 | $25.00/1M $0.0000250000 | 1,000,000 | 128,000 | Active |
Track LLM pricing and deprecations automatically.
Start free