anthropic--claude-4-sonnet
anthropic--claude-4-sonnet is a reasoning model from Anthropic released on May 22, 2025. It reads text, images and files and writes text, with a 200K token context window and up to 64K tokens per reply.
Show moreShow less
It costs $3 per million input tokens and $15 per million output tokens. Cached input bills at $0.30, 90% less than fresh input.
It supports tool calling and prompt caching.
2 providers serve it, including Merge Gateway and SAP AI Core.
- Modalities
- In / out price
- $3 / $15 per 1M
- Context
- 200K
- Max output
- 64K
- Released
- May 22, 2025
- Knowledge cutoff
- Mar 2025
- Tool calling
- Structured output
- Reasoning
- Prompt caching
- Open weights
- Free to use
anthropic--claude-4-sonnet pricing
USD, as listed on Oct 19, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.
| Input | $3 / 1M tokens | |
|---|---|---|
| Output | $15 / 1M tokens | |
| Cached input (read) | $0.30 / 1M tokens | 90% off input |
| Cache write | $3.75 / 1M tokens |
anthropic--claude-4-sonnet providers
2 providers serve it, including Merge Gateway and SAP AI Core. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.
| Provider | Input /M | Output /M | Cache read /M | Context | Max output |
|---|---|---|---|---|---|
| Merge Gateway | $3 | $15 | $0.30 | 200K | 64K |
| SAP AI Core | $3 | $15 | $0.30 | 200K | 64K |
What anthropic--claude-4-sonnet costs per month
Pick a workload close to yours or type your own volumes.
Supported request parameters
What you can set when you call anthropic--claude-4-sonnet through an OpenAI compatible API.
- Tools
tools - Reasoning
reasoning - Temperature
temperature
Alternatives to anthropic--claude-4-sonnet
Models that take the same inputs and call tools, closest in price, cheaper ones first.
- 1M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 49 providers.
by anthropicFeb 5, 2026$3/M input tokens$15/M output tokens49 providers
- 200K context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 33 providers.
by anthropicJan 15, 2025$3/M input tokens$15/M output tokens33 providers
- Index 42.1
Reads text, images and files. Tool calling, structured output, reasoning. Served by 41 providers.
by openaiJul 9, 20261.05M context$2/M input tokens$12/M output tokens41 providers
- Index 29.7
Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 5 providers.
by googleFeb 19, 20261.05M context$2/M input tokens$12/M output tokens5 providers
- 1M context
Reads text, images and files. Tool calling, structured output, reasoning.
by anthropicMay 22, 2025$3/M input tokens$15/M output tokens
- 200K context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 6 providers.
by anthropicMay 14, 2025$3/M input tokens$15/M output tokens6 providers
More from Anthropic
- Index 43.4
Reads text, images and files. Tool calling, structured output, reasoning. Served by 29 providers.
by anthropicOct 7, 20261M context$0.10/M input tokens$0.50/M output tokens29 providers
- Index 56
Reads text, images and files. Tool calling, structured output, reasoning. Served by 30 providers.
by anthropicSep 26, 20261M context$2/M input tokens$10/M output tokens30 providers
- Index 57.6
Reads text, images and files. Tool calling, structured output, reasoning. Served by 32 providers.
by anthropicSep 18, 20261M context$4/M input tokens$20/M output tokens32 providers
- Index 53.4
Reads text, images and files. Tool calling, structured output, reasoning. Served by 33 providers.
by anthropicAug 29, 20261M context$10/M input tokens$50/M output tokens33 providers
- 1M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 38 providers.
by anthropicJul 23, 2026$5/M input tokens$25/M output tokens38 providers
- 1M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 40 providers.
by anthropicJun 29, 2026$2/M input tokens$10/M output tokens40 providers
anthropic--claude-4-sonnet questions
How much does the anthropic--claude-4-sonnet API cost?
$3 per million input tokens and $15 per million output tokens, with cached input at $0.30. The estimator on this page turns that into a monthly bill for your own workload.
What is the context window of anthropic--claude-4-sonnet?
200,000 tokens of input, and it can write up to 64,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.
Which providers serve anthropic--claude-4-sonnet?
2 providers serve it, including Merge Gateway and SAP AI Core. Prices differ by host, so the Providers table on this page lists each one with its input and output price.
Does anthropic--claude-4-sonnet support tool calling?
Yes. It accepts tool definitions, which is what an agent needs to call your APIs.
Is anthropic--claude-4-sonnet open source?
No. Anthropic serves it through an API only, so you cannot download the weights or host it yourself.
When was anthropic--claude-4-sonnet released?
May 22, 2025, with training data up to Mar 2025.
Catalog data from models.dev (MIT licensed), refreshed daily, last on Oct 19, 2026. The summary is written from these facts.