Claude Sonnet 4
Anthropic · chat model
Claude Sonnet 4 is listed here as a chat model from Anthropic. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.
Input
$3.0000 / 1M tokens
Output
$15.0000 / 1M tokens
Cached input
$0.3000 / 1M tokens
Context
64.0K
Quick read
Best for
Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.
Things to verify
Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.
Pricing
| Item | Price |
|---|---|
| Input | $3.0000 / 1M tokens |
| Output | $15.0000 / 1M tokens |
| Cached input | $0.3000 / 1M tokens |
| Cache write | $3.7500 / 1M tokens |
| Embedding | $3.0000 / 1M tokens |
Token limits
Context window
64.0K
Max input tokens
1.0M
Max output tokens
64.0K
Max tokens
64.0K
Capabilities
| Capability | Supported |
|---|---|
| Vision | ✅ |
| Function calling | ✅ |
| Parallel function calling | — |
| Tool choice | ✅ |
| Prompt caching | ✅ |
| Reasoning | ✅ |
| Response schema | ✅ |
| System messages | — |
| Audio input | — |
| Audio output | — |
| Web search | — |
| PDF input | ✅ |
| Video input | — |
Benchmarks
Most benchmark rows are attached to the base model family rather than this provider route. Open benchmark explorer
| Benchmark | Score | Metric | Scope | Checked | Source |
|---|---|---|---|---|---|
| SWE-bench Verified | 72.7% | score | Base model: Claude Sonnet 4 (Claude Sonnet 4) | 2026-05-31 | Link |
| GPQA Diamond | 70.0% | score | Base model: Claude Sonnet 4 (Claude Sonnet 4) | 2026-05-31 | Link |
| MMMLU | 85.4% | score | Base model: Claude Sonnet 4 (Claude Sonnet 4) | 2026-05-31 | Link |
| MMMU | 72.6% | score | Base model: Claude Sonnet 4 (Claude Sonnet 4) | 2026-05-31 | Link |
| Aider Polyglot | Not available | percent_correct | Model route | 2026-05-23 | Link |
| LiveBench | Not available | overall | Model route | 2026-05-23 | Link |
Sources
| Source links | |
| Pricing data | LiteLLM model cost map |
| Synced at | 2026-05-28 |
Docs
| Official docs |
Similar models
This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.
Comparing from
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| Claude Sonnet 4 Anthropic | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Current model Reference row |
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| anthropic.claude-sonnet-4-6 bedrock_converse | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 100% |
| global.anthropic.claude-sonnet-4-6 bedrock_converse | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 100% |
| anthropic.claude-sonnet-4-20250514-v1:0 bedrock_converse | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 100% |
| anthropic.claude-sonnet-4-5-20250929-v1:0 bedrock_converse | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 100% |
| claude-sonnet-4-5 azure_ai | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 100% |
| claude-sonnet-4-6 azure_ai | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 100% |
| claude-sonnet-4-5 Anthropic | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Same provider Overall 100% |
| claude-sonnet-4-6 Anthropic | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Same provider Overall 100% |
| claude-3-7-sonnet-20250219 Anthropic | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Same provider Overall 97% |
| claude-4-sonnet-20250514 Anthropic | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Same provider Overall 97% |
| claude-sonnet-4-5-20250929 Anthropic | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Same provider Overall 97% |
| anthropic.claude-opus-4-5-20251101-v1:0 bedrock_converse | In $5.0000 / 1M tokens Out $25.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 92% |
| claude-opus-4-5-20251101 Anthropic | In $5.0000 / 1M tokens Out $25.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Same provider Overall 92% |
| anthropic.claude-3-7-sonnet-20250219-v1:0 bedrock_converse | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 8.2K | Text + image covered Overall 87% |
| anthropic.claude-haiku-4-5-20251001-v1:0 bedrock_converse | In $1.0000 / 1M tokens Out $5.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 87% |
| anthropic.claude-haiku-4-5@20251001 bedrock_converse | In $1.0000 / 1M tokens Out $5.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 64.0K | Text + image covered Overall 87% |
| anthropic.claude-3-5-sonnet-20241022-v2:0 Bedrock | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 8.2K | Text + image covered Overall 84% |
| anthropic.claude-3-5-sonnet-20240620-v1:0 Bedrock | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choiceResponse schema | 4.1K | Text + image covered Overall 77% |
| anthropic.claude-3-sonnet-20240229-v1:0 Bedrock | In $3.0000 / 1M tokens Out $15.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choiceResponse schema | 4.1K | Text + image covered Overall 77% |
| anthropic.claude-opus-4-1-20250805-v1:0 bedrock_converse | In $15.0000 / 1M tokens Out $75.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 32.0K | Text + image covered Overall 77% |
| anthropic.claude-opus-4-20250514-v1:0 bedrock_converse | In $15.0000 / 1M tokens Out $75.0000 / 1M tokens | imagepdftext
Output: text | VisionFunction callingTool choicePrompt caching | 32.0K | Text + image covered Overall 77% |
No models match this filter.