Anthropic logo

Anthropic: Claude Sonnet 4 (latest)

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$2.898/M
Output price$14.493/M
Context200K
Max output64K
Providers4
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 (latest)
ProviderProvider model IDContextMax outputInputOutputCache readCapabilitiesDocs
Cortecs claude-sonnet-4 200K 65K $2.898 $14.493 $0.29 ReasoningToolsJSON Docs ↗
OrcaRouter anthropic/claude-sonnet-4 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
Cloudflare AI Gateway anthropic/claude-sonnet-4 200K 64K $3 $15 $0.3 ReasoningTools Docs ↗
GitHub Copilot claude-sonnet-4 216K 16K $3 $15 $0.3 ReasoningTools 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 $2.898/M

Across 4 priced providers

Median input $3/M

Midpoint of listed rates

Highest input $3/M

1.0× the lowest listed rate

Output range $14.493 – $15

Per million output tokens

Cortecs $2.898/MLowest
OrcaRouter $3/M
Cloudflare AI Gateway $3/M
GitHub Copilot $3/M
Cost calculator

Estimate a workload

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

Context limits also differ by provider, from 200K to 216K 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 Yes
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-0
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
SWE-Bench Pro resolve rate Source ↗
SWE-Bench Pro #28 of 38
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 SWE-Bench Pro, the benchmark with the widest published coverage that this model appears in.

0 43 85 $1 $10 Qwen3 235B-A22B — $0.7/M, score 21.41 Qwen3-Coder 480B-A35B Instruct — $1.5/M, score 38.7 Qwen3.7 Max — $2.5/M, score 60.6 Claude Fable 5 — $10/M, score 80.3 Claude Haiku 4.5 (latest) — $1/M, score 39.45 Claude Opus 4.5 — $5/M, score 45.89 Claude Opus 4.6 — $5/M, score 51.9 Claude Opus 4.7 — $5/M, score 64.3 Claude Opus 4.8 — $5/M, score 69.2 Claude Opus 5 — $5/M, score 79.2 Claude Sonnet 4 (latest) — $2.898/M, score 42.7 Claude Sonnet 4.5 (latest) — $3/M, score 43.6 Claude Sonnet 5 — $2/M, score 63.2 Gemini 3 Flash Preview — $0.5/M, score 34.63 Gemini 3 Pro Preview — $0.57/M, score 43.3 Gemini 3.1 Pro Preview — $2/M, score 54.2 Gemini 3.5 Flash — $1.5/M, score 55.1 Gemini 3.5 Flash Lite — $0.3/M, score 54.2 LongCat-2.0 — $0.3/M, score 59.5 Llama 4 Maverick 17B Instruct — $0.14/M, score 5.24 Muse Glimmer 30B — $0.2/M, score 51.2 Muse Spark 1.1 — $1.25/M, score 61.5 MiniMax-M2.1 — $0.3/M, score 36.81 GPT-5 — $1.25/M, score 41.78 GPT-5.2 — $1.75/M, score 29.94 GPT-5.2 Codex — $0.14/M, score 41.04 GPT-5.4 — $2.5/M, score 59.1 GPT-5.4 mini — $0.75/M, score 54.4 GPT-5.4 nano — $0.2/M, score 52.4 GPT-5.5 — $5/M, score 58.6 GPT-5.6 Luna — $0.2/M, score 62.7 GPT-5.6 Sol — $4/M, score 64.6 GPT-5.6 Terra — $2/M, score 63.4 Step 3.7 Flash — $0.185/M, score 56.3 Grok 4.5 — $2/M, score 64.7 MiMo-V2.5-Pro — $0.435/M, score 57.2 GLM-4.6 — $0.6/M, score 9.67 GLM-5.2 — $1.4/M, score 62.1 Claude Sonnet 4 (latest) Input price per million tokens (log scale) Resolve rate

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
Price Completion15.0 → 14.493
Price Prompt3.0 → 2.898
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-0
curl
curl "https://model.kyssta.lol/api/v1/models/anthropic/claude-sonnet-4-0"
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 (latest)?

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 (latest) cost?

Listed input pricing starts at $2.898 per million tokens from Cortecs, rising to $3 across 4 listed providers.

What is the context length of Claude Sonnet 4 (latest)?

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

Does Claude Sonnet 4 (latest) support tool calling and structured output?

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

Which providers serve Claude Sonnet 4 (latest)?

4 providers list this model: Cortecs, OrcaRouter, Cloudflare AI Gateway, GitHub Copilot.

Are the weights for Claude Sonnet 4 (latest) open?

No. This model is served through hosted APIs only.

When was Claude Sonnet 4 (latest) released?

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

More models from Anthropic

View all →