Anthropic logo

Anthropic: Claude Sonnet 4

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

Source-linked claude-sonnet Closed weights Released 2025-05-22
API record Report
InputT
OutputT
Input price$3/M
Output price$15/M
Context200K
Max output64K
Providers11
Inference availability

Providers

Provider-specific identifiers, limits, and listed prices per million tokens. Every row links back to the provider's own documentation.

Report a price
Providers offering Claude Sonnet 4
ProviderProvider model IDContextMax outputInputOutputCache readCapabilitiesDocs
OpenRouter anthropic/claude-sonnet-4 1M 64K $3 $15 $0.3 ReasoningTools Docs ↗
FastRouter anthropic/claude-sonnet-4 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
Requesty anthropic/claude-sonnet-4 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
OpenCode Zen claude-sonnet-4 1M 64K $3 $15 $0.3 ReasoningTools Docs ↗
Abacus claude-sonnet-4-20250514 200K 64K $3 $15 ReasoningTools Docs ↗
DigitalOcean anthropic-claude-sonnet-4 1M 64K $3 $15 $0.3 ReasoningTools Docs ↗
Vertex (Anthropic) claude-sonnet-4@20250514 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
Vertex claude-sonnet-4@20250514 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
Merge Gateway anthropic/claude-sonnet-4-20250514 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
Vercel AI Gateway anthropic/claude-sonnet-4 1M 8.192K $3 $15 $0.3 ReasoningTools Docs ↗
Cortecs claude-sonnet-4 200K 64K $3.307 $16.536 Tools Docs ↗

Capability badges appear only where the provider catalog explicitly lists support. A blank cell means the source is silent, not that the feature is absent.

Listed rates

Price across providers

Input price per million tokens as published by each provider. Bars are drawn from listed rates only — no traffic weighting, since the catalog observes no requests.

Lowest input $3/M

Across 11 priced providers

Median input $3/M

Midpoint of listed rates

Highest input $3.307/M

1.1× the lowest listed rate

Output range $15 – $16.536

Per million output tokens

OpenRouter $3/M
FastRouter $3/M
Requesty $3/M
OpenCode Zen $3/M
Abacus $3/M
DigitalOcean $3/M
Vertex (Anthropic) $3/M
Vertex $3/M
Merge Gateway $3/M
Vercel AI Gateway $3/M
Cortecs $3.307/M
Cost calculator

Estimate a workload

$0.00
Excludes taxes, non-token charges, and tiered discounts.

10 providers list the identical $3 input rate, so price alone will not separate them — compare context limits, max output, and capabilities above.

Context limits also differ by provider, from 200K to 1M tokens. Compare the provider table above before choosing on price alone.

Specification

Capabilities

Recorded from the source catalog and provider listings.

Reasoning Yes
Tool calling Yes
? Structured output Unknown
Attachments Yes
Vision input Yes
× Open weights No
Creator
Anthropic
Model family
claude-sonnet
Knowledge cutoff
2025-03-31
License
Not documented
Release date
2025-05-22
Model ID
anthropic/claude-sonnet-4-20250514
Published evaluations

Benchmarks

Every result stays attached to its source, version, metric and harness. Scores from different versions are never merged, and the profile below plots each benchmark against its own population rather than on a shared scale.

Benchmark registry
Aider Polyglot percent correct · 2025-05-24 Source ↗
Aider Polyglot #12 of 31

Each strip shows every published score for that benchmark, with this model marked. The lighter shape behind the ticks is the density of results, and the dashed line is the median.

Cost against capability

Price and performance

Listed input price plotted against Aider Polyglot, the benchmark with the widest published coverage that this model appears in.

0 47 93 $0.1 $1 $10 Qwen Max — $1.6/M, score 21.8 Qwen3 235B-A22B — $0.7/M, score 59.6 Qwen3 32B — $0.7/M, score 40.0 Claude Haiku 3.5 — $0.8/M, score 28.0 Claude Sonnet 3.7 — $3/M, score 64.9 Claude Opus 4 — $15/M, score 72.0 Claude Sonnet 4 (latest) — $2.898/M, score 61.3 Claude Sonnet 4 — $3/M, score 61.3 Command A — $2.5/M, score 12.0 DeepSeek Chat — $0.147/M, score 70.2 DeepSeek-R1 — $0.7/M, score 56.9 DeepSeek Reasoner — $0.147/M, score 74.2 Gemini 2.5 Flash — $0.3/M, score 55.1 Gemini 2.5 Pro — $1.25/M, score 83.1 Llama 4 Maverick 17B Instruct — $0.14/M, score 15.6 Codestral (latest) — $0.3/M, score 11.1 GPT-4.1 — $2/M, score 52.4 GPT-4.1 mini — $0.4/M, score 32.4 GPT-4.1 nano — $0.1/M, score 8.9 GPT-4o — $2.5/M, score 23.1 GPT-4o (2024-08-06) — $2.5/M, score 23.1 GPT-4o (2024-11-20) — $2.5/M, score 18.2 GPT-4o mini — $0.15/M, score 3.6 GPT-5 — $1.25/M, score 88.0 o1 — $15/M, score 61.7 o3 — $2/M, score 81.3 o3-mini — $1.1/M, score 60.4 o3-pro — $20/M, score 84.9 o4-mini — $1.1/M, score 72.0 Claude Sonnet 4 Input price per million tokens (log scale) Percent correct

The stepped line is the efficient frontier: at each price, the best score available for that money or less. A model sitting on it is not being beaten by anything cheaper. Price is log-scaled because listed rates span four orders of magnitude. Only models with both a listed price and a score on this benchmark can appear.

Catalog activity

Change log

Field-level changes detected between successful source imports.

Full change log
No changes recorded

This record has not changed within the retained import history.

Provenance

Sources & verification

Every figure on this page traces back to one of these records.

Methodology
Public API

Use this record

Fetch the complete source-linked model record. No key, no account, no rate-limited tier.

API documentation
Endpoint
GET https://model.kyssta.lol/api/v1/models/anthropic/claude-sonnet-4-20250514
curl
curl "https://model.kyssta.lol/api/v1/models/anthropic/claude-sonnet-4-20250514"
Common questions

Frequently asked questions

Answered directly from the stored record — nothing here is generated beyond the catalog's own fields.

What is Claude Sonnet 4?

Balanced Claude model for coding, analysis, agent workflows, and cost control. It is published by Anthropic and catalogued here from Models.dev.

How much does Claude Sonnet 4 cost?

Listed input pricing starts at $3 per million tokens from OpenRouter, rising to $3.307 across 11 listed providers.

What is the context length of Claude Sonnet 4?

Claude Sonnet 4 accepts up to 200K tokens of context and returns up to 64K output tokens.

Does Claude Sonnet 4 support tool calling and structured output?

Provider catalogs list support for tool calling, reasoning, and image input.

Which providers serve Claude Sonnet 4?

11 providers list this model: OpenRouter, FastRouter, Requesty, OpenCode Zen, Abacus, DigitalOcean and 5 more.

Are the weights for Claude Sonnet 4 open?

No. This model is served through hosted APIs only.

When was Claude Sonnet 4 released?

The catalog records a release date of 2025-05-22, last verified Sep 11, 2026.

More models from Anthropic

View all →