Anthropic logo

Claude Sonnet 4 (latest)

anthropic/claude-sonnet-4-0

Balanced Claude model for coding, analysis, agent workflows, and cost control

Source-linkedclaude-sonnetClosed weightsReleased 2025-05-22
Report data
Context window200K
Maximum output64K
Provider offers3
Knowledge cutoff2025-03-31
Capabilities

What this model supports

ReasoningYes
Tool callingYes
Structured outputNo
AttachmentsYes
Temperature controlYes
Open weightsNo
Creator
Anthropic
Family
claude-sonnet
Modalities
Image, Pdf, Text
License
Not documented
Release date
2025-05-22
Model ID
anthropic/claude-sonnet-4-0
Market availability

Provider pricing

Report price →
Providers offering Claude Sonnet 4 (latest)
ProviderProvider model IDContextInput / 1MOutput / 1MCached / 1MFeaturesAll pricing
Cloudflare AI Gatewayanthropic/claude-sonnet-4200K$3.000$15.000$0.300R T ·
View
{
  "cache_read": 0.3,
  "cache_write": 3.75,
  "input": 3,
  "output": 15
}
GitHub Copilotclaude-sonnet-4216K$3.000$15.000$0.300R T ·
View
{
  "cache_read": 0.3,
  "cache_write": 3.75,
  "input": 3,
  "output": 15
}
OrcaRouteranthropic/claude-sonnet-4200K$3.000$15.000$0.300R T ·
View
{
  "cache_read": 0.3,
  "cache_write": 3.75,
  "input": 3,
  "output": 15
}
Evidence

Published benchmark results

Aider Polyglot vs top 8 models
GPT-5
88.0
o3-pro
84.9
Gemini 2.5 Pro
83.1
o3
81.3
DeepSeek Reasoner
74.2
Claude Opus 4
72.0
o4-mini
72.0
Claude Sonnet 4 (latest)
61.3
SWE-Bench Pro vs top 8 models
Claude Fable 5
80.3
Claude Opus 4.8
69.2
Grok 4.5
64.7
GPT-5.6 Sol
64.6
Claude Opus 4.7
64.3
GPT-5.6 Terra
63.4
Claude Sonnet 5
63.2
Claude Sonnet 4 (latest)
42.7