Claude Sonnet 4
Active66.2CompetentBalanced mid-tier Claude model with strong general capability and price.
Intelligence Index
66.2/ 100
Competentweighted across 4 benchmarks
- General knowledge
- 83.1
- Coding
- 68.0
- Long context
- 47.5
Computed as the mean of per-category averages across MMLU, GPQA, SWE-bench, HumanEval, MATH, GSM8K, AIME, Aider Polyglot and more. See each benchmark for methodology.
Overview
Claude Sonnet 4 balances intelligence and cost. Widely used for production coding, agents, and content workflows.
History
Claude Sonnet 4 became available via the Anthropic API on 2025-05-22.
Training & availability
Training data has a knowledge cutoff of 2025-01-31 — information about events after that date is unlikely to appear in the model's responses. Anthropic has not released the underlying model weights — access is via their hosted API only.
Capabilities
-
Context window: 200K tokens.
-
Max output: 64K tokens.
-
Input modalities: text, image.
-
Intelligence Index: 75.5/100.
Strongest categories: General knowledge (83), Coding (68).
Recommended for: vision, agentic, long-context.
Limitations
- The knowledge cutoff is 14 months old — this model will not know about recent events, releases, or API changes.
Pricing
- Input: $3.0000 per 1M tokens
- Output: $15.0000 per 1M tokens
Use the cost calculator above to estimate monthly spend for your workload.
Quick start
Minimal example using the anthropic API. Copy, paste, replace the key.
from anthropic import Anthropic
client = Anthropic(api_key="sk-ant-...")
resp = client.messages.create(
model="claude-sonnet-4",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain quantum computing in one sentence."}],
)
print(resp.content[0].text)Cost calculator
Estimate your monthly bill. Presets are typical workload sizes.
Benchmarks
Integrations & tooling support
- Tool calling
- Supported
- Structured outputs
- Supported
Price vs quality
Mid-tier performance at frontier pricing.
- Quality percentile
- 50%
- Effective price
- $12/1M
- Pricing breakdown
- $3/1M in
$15/1M out
Community ratings
Rate Claude Sonnet 4
Sign in to rate and review.
Comments
Sign in to leave a comment.