Claude Sonnet 4 is Anthropic's language model with a 1.0M context window and up to 64K output tokens, available from 10 providers, starting at $3.00 / 1M input and $15.00 / 1M output. A versatile Claude 4 Sonnet model with strong reasoning, vision, and tool-use capabilities across a broad range of tasks.
Specifications
Canonical IDanthropic-claude-4-sonnet
TypeLanguage
StatusDeprecated
CreatorAnthropicAnthropic
Providers
Context Window1.0M tokens
Max Output64K tokens
Input ModalitiesImagePDFText
Output ModalitiesText
Reasoning Effortsdefault
Tool Use Overhead159 tokens
Release Date · 1 year ago
Knowledge Cutoff · 1 year ago
Training Data Cutoff
Deprecation Date
Benchmarks
Intelligence Index
33.0
#119
Coding Index
30.6
#107
Math Index
38.0
#156
MMLU-Pro
0.8
#43
GPQA
0.7
#206
HLE
0.0
#395
LiveCodeBench
0.4
#154
AIME
0.4
#62
IFBench
0.5
#178
Time to First Token
1.13s
#346
SciCode
0.4
#139
MATH-500
0.9
#45
AIME 2025
0.4
#156
LCR
0.4
#159
TerminalBench Hard
0.3
#105
TAU2
0.5
#168
Output TPS
48.8
#221

Capabilities

Input3/5
Text
Image
Audio·
Video·
PDF
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities8/13
Reasoning
Adaptive Reasoning·
Function Calling
Parallel Function Calling
Structured Outputs
Native JSON Schema·
Web Search
URL Context·
Computer Use
Code Execution·
File Search·
Prompt Caching
Assistant Prefill

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandardBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Cache Write 5m
$ / 1M
Cache Write 1h
$ / 1M
Image In
$ / image
Web Search
$ / request
Input
$ / 1M
Output
$ / 1M
Amazon Bedrock logo
Amazon Bedrock
global.anthropic.claude-sonnet-4-20250514-v1:0
$3.00$15.00$0.3$3.75N/AN/AN/A$1.50$7.50
Anthropic logo
Anthropic
claude-sonnet-4
$3.00$15.00$0.3$3.75$6.00N/AN/A$1.50$7.50
Databricks logo
Databricks
databricks/databricks-claude-sonnet-4
$3.00$15.00N/AN/AN/AN/AN/A
DeepInfra logo
DeepInfra
deepinfra/anthropic/claude-4-sonnet
$3.30$16.50N/AN/AN/AN/AN/A
GMI Cloud logo
GMI Cloud
gmi/anthropic/claude-sonnet-4
$3.00$15.00N/AN/AN/AN/AN/A
Google Vertex AI logo
Google Vertex AI
vertex_ai/claude-sonnet-4
$3.00$15.00$0.3$3.75N/AN/AN/A
OpenRouter logo
OpenRouter
anthropic/claude-sonnet-4
$3.00$15.00$0.3$3.75N/A$0.0048$0.010
Replicate logo
Replicate
replicate/anthropic/claude-4-sonnet
$3.00$15.00N/AN/AN/AN/AN/A
Snowflake logo
Snowflake
claude-4-sonnet
$3.60$18.00$0.3N/AN/AN/AN/A$1.80$9.00
Vercel AI Gateway logo
Vercel AI Gateway
anthropic/claude-sonnet-4
$3.00$15.00$0.3$3.75N/AN/AN/A

Cost Calculator

US Dollar ($)
Preset:

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Claude Sonnet 4.61.0M$3.00$15.00Available
Claude Sonnet 4.51.0M$3.00$15.00Available
Claude Sonnet 41.0M$3.00$15.00Current
Claude Sonnet 4.6 AdaptiveAvailable
Claude Sonnet 4.5Available
Claude Sonnet 4.6 Non-Reasoning Low EffortAvailable
Claude Sonnet 4Available
Claude Sonnet 4.1200K$3.00$15.00Available
Claude Sonnet 3.7200KAvailable
Claude Sonnet 3.7200K$3.00$15.00Deprecated
Claude Sonnet 3.5 V2200K$3.00$15.00Deprecating

Other Models

ModelTierReleasedContextInput / 1MOutput / 1M
Claude Fable 5Fable1.0M$10.00$50.00
Claude Mythos 5Mythos1.0M$10.00$50.00
Claude Opus 4.8Opus1.0M$5.00$25.00
Claude Opus 4.8 FastOpus1.0M$10.00$50.00
Claude Opus 4.7 FastOpus1.0M$30.00$150.00
Claude Opus 4.7Opus1.0M$5.00$25.00
Claude Opus 4.6Opus1.0M$5.00$25.00
Claude Opus 4.5Opus410K$5.00$25.00
Claude Haiku 4.5Haiku200K$1.00$5.00
Claude Opus 4.1Opus200K$15.00$75.00

Model IDs

anthropic-claude-4-sonnet
anthropic.claude-sonnet-4-20250514-v1:0
anthropic.claude-sonnet-4-20250514-v1:0:200k
anthropic.claude-sonnet-4-20250514-v1:0:32k
anthropic/claude-4-sonnet
anthropic/claude-sonnet-4
apac.anthropic.claude-sonnet-4-20250514-v1:0
claude-4-sonnet
claude-4-sonnet-20250514
claude-4-sonnet-thinking
claude-sonnet-4
claude-sonnet-4-20250514
claude-sonnet-4@20250514
databricks/databricks-claude-sonnet-4
deepinfra/anthropic/claude-4-sonnet
eu.anthropic.claude-sonnet-4-20250514-v1:0
github_copilot/claude-sonnet-4
global.anthropic.claude-sonnet-4-20250514-v1:0
gmi/anthropic/claude-sonnet-4
heroku/claude-4-sonnet
openrouter/anthropic/claude-sonnet-4
publishers/google/models/claude-sonnet-4
replicate/anthropic/claude-4-sonnet
snowflake/claude-4-sonnet
us.anthropic.claude-sonnet-4-20250514-v1:0
vercel_ai_gateway/anthropic/claude-4-sonnet
vercel_ai_gateway/anthropic/claude-sonnet-4
vertex_ai/claude-sonnet-4
vertex_ai/claude-sonnet-4@20250514