Claude Sonnet 4 is Anthropic's language model with a 1.0M context window and up to 64K output tokens, available from 9 providers, starting at $3.00 / 1M input and $0.3 / 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 · 2 years ago
Deprecation Date
Benchmarks
Intelligence Index
#176
Coding Index
#103
Math Index
#105
MMLU-Pro
#45
GPQA
#184
HLE
#225
LiveCodeBench
#112
AIME
#29
IFBench
#148
Time to First Token
#76
SciCode
#160
MATH-500
#6
AIME 2025
#105
LCR
#131
TerminalBench Hard
#98
TAU2
#167
Output TPS
#307

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
N/A$0.3N/AN/AN/AN/AN/A——
Databricks logo
Databricks
databricks/databricks-claude-sonnet-4
$3.00$15.00$0.3$3.75N/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——
OpenRouter logo
OpenRouter
anthropic/claude-sonnet-4
$3.00$15.00$0.3$3.75$6.00$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 51.0M$2.00$0.200Deprecating
Claude Sonnet 4.61.0M$3.00$0.300Deprecating
Claude Sonnet 4.51.0M$3.00$0.300Deprecating
Claude Sonnet 41.0M$3.00$0.300Current
Claude Sonnet 4.6 Adaptive————Available
Claude Sonnet 4.5————Available
Claude Sonnet 4.6 Non-Reasoning Low Effort————Available
Claude Sonnet 4————Available
Claude Sonnet 4.1—200K$3.00$15.00Available
Claude Sonnet 3.7200K——Available
Claude Sonnet 3.7200K$3.00$15.00Deprecated

Other Models

ModelTierReleasedContextInput / 1MOutput / 1M
Claude Opus 5.5Opus1.0M$4.00$0.200
Claude Fable 5.1—1.0M$10.00$0.250
Claude Opus 5Opus1.0M$5.00$0.500
Claude Fable 5Fable1.0M$10.00$1.00
Claude Fable 5.3Fable————
Claude Mythos 5Mythos—1.0M$10.00$1.00
Claude Mythos 5.1Mythos—1.0M$10.00$0.250
Claude Opus 4.8Opus1.0M$5.00$0.500
Claude Opus 4.7Opus1.0M$5.00$0.500
Claude Opus 4.6Opus1.0M$5.00$0.500

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