MODEL REFERENCE / ANTHROPIC

Claude Sonnet 5
API Pricing, Specs & Benchmarks

Official model specifications, clear API pricing and an independently reproducible 20-scenario SXF cache-cost study.

1,000,000context tokens
128,000max output
2026-11-10last verified

SOURCE-VERIFIED EDITORIAL UPDATE · 2026-11-26

Sonnet 5: current pricing and successor comparison

Anthropic's current pricing table retains $2/$10 per million input/output tokens and $0.20 cached reads for claude-sonnet-5. Cache writes cost $2.50 for five minutes and $4 for one hour per million tokens; Batch input/output is $1/$5. The model card lists 1M context and 128K output. Sonnet 5.5 is a distinct ID with a lower cache-hit price, not a change to this model's rate. The dated SXF study remains a historical reproducible calculation; compare current workload performance separately.

Primary sources: Anthropic model reference · Anthropic billing and cache rates

SXF / AI ORIGINAL MODEL RESEARCH · 10 NOVEMBER 2026

Research-backed Claude Sonnet 5 guide and SXF Cache Economics Lab.

Claude Sonnet 5 is Anthropic's June 30, 2026 balanced model for coding, professional workflows and agents. This reference separates primary-source model facts, attributed independent evaluation evidence and SXF's own reproducible 20-case token-cost research.

Model ID: claude-sonnet-5. It is not Claude Sonnet 5.5, the later release with a distinct API ID. The names “Sonnet 5”, “Claude 5 Sonnet” and “Claude Sonnet 5 API” refer to the earlier release, not to a generic current Claude subscription tier.

Provider specification recheck: 2026-11-10 · Original SXF cost study: 10 November 2026 · Anthropic references linked in the methodology.

DIRECT SEARCH ANSWERS / CLAUDE SONNET 5

What is Claude Sonnet 5? Release date, model ID, context and capabilities.

Anthropic introduced Claude Sonnet 5 on June 30, 2026. Its exact API model identifier is claude-sonnet-5. Anthropic's published specifications list 1 million input-context tokens, 128,000 maximum output tokens, text-and-image input and text output. The model uses adaptive thinking with configurable effort and a documented January 2026 knowledge cutoff.

CORE USES

Coding and agents

Production software tasks, multi-step agents, tool use, research assistance and knowledge work. Validate outcomes on your own task distribution rather than inferring reliability from the context limit.

API ACCESS

Official Anthropic API

Use the Messages API and the pinned model ID claude-sonnet-5. Hosted availability, tools and account limits are provider-specific.

MODEL SIZE

Parameters not disclosed

Anthropic does not publish an official parameter count or downloadable model weights for Sonnet 5. A 1M-token context window is not a parameter count.

Current-generation note: Claude Sonnet 5.5 launched on September 28, 2026. This is a Sonnet 5 reference page, not a claim that Sonnet 5 is Anthropic's latest release.

Explore SXF's Anthropic model portfolio or jump directly to the verified API pricing breakdown.

CLAUDE SONNET 5 API PRICING / USD PER MILLION TOKENS

How much does Claude Sonnet 5 API cost? Input, output and prompt caching.

Anthropic's current Standard price for Claude Sonnet 5 is $2.00 per million new input tokens, $0.20 per million cache-read input tokens and $10.00 per million output tokens. Prompt caching has a separate initial-write charge: $2.50 per million for a 5-minute write and $4.00 per million for a 1-hour write.

Standard text-token operationSonnet 5Sonnet 5.5
Input / 1M$2.00$2.00
Cached read / 1M$0.20$0.10
5-minute cache write / 1M$2.50$2.50
1-hour cache write / 1M$4.00$4.00
Output / 1M$10.00$10.00

Those are text-token API charges, not a Claude web subscription. Tool fees, Batch or alternative service tiers, nontext modalities, regional choices and other billing conditions are outside this simplified model. Cache hit eligibility and the duration of your requests affect whether the cached-read rate is achieved.

Pricing history: the initial promotional Standard pricing became permanent on August 10, 2026; no “promotion expiring today” claim is made here. Confirm any later changes in Anthropic's live API pricing documentation.

SXF ORIGINAL RESEARCH · REPRODUCIBLE 20-SCENARIO EXPERIMENT

SXF Prompt Cache Lab: when does reusing a Sonnet 5 prompt actually save money?

We designed an auditable deterministic experiment using four reusable prompt-prefix sizes (2,048, 16,000, 100,000 and 500,000 tokens) and five request counts (1, 2, 3, 10 and 100), for 20 scenarios. Each call adds 2,000 new input tokens and 4,000 output tokens. We calculate no cache versus an initial 5-minute or 1-hour cache write followed by successful reads, for both Sonnet 5 and Sonnet 5.5.

100K PREFIX · 10 CALLS$2.44 → $0.87

Illustrative Sonnet 5 list cost falls from all-uncached to a 5-minute cache-write scenario when nine subsequent reads hit the cache.

5-MINUTE CACHE BREAK-EVEN2 requests

Under the study's idealized matching-prefix assumptions, a 5-minute cache write is cheaper than two uncached requests on the second call.

SONNET 5.5 · CACHED READ$0.10 / 1M

Sonnet 5.5 currently lists a lower read rate than Sonnet 5; a lower rate does not by itself prove equal output quality or latency.

Reusable prefixCallsNo cache5-min1-hourSaving, 5-min
2,0481$0.05$0.05$0.05$-0.0010
2,0482$0.10$0.09$0.10$0.0027
2,0483$0.14$0.14$0.14$0.0063
2,04810$0.48$0.45$0.45$0.03
2,048100$4.81$4.45$4.45$0.36
16,0001$0.08$0.08$0.11$-0.0080
16,0002$0.15$0.13$0.16$0.02
16,0003$0.23$0.18$0.20$0.05
16,00010$0.76$0.51$0.53$0.25
16,000100$7.60$4.76$4.78$2.84
100,0001$0.24$0.29$0.44$-0.05
100,0002$0.49$0.36$0.51$0.13
100,0003$0.73$0.42$0.57$0.31
100,00010$2.44$0.87$1.02$1.57
100,000100$24.40$6.63$6.78$17.77
500,0001$1.04$1.29$2.04$-0.25
500,0002$2.09$1.44$2.19$0.65
500,0003$3.13$1.58$2.33$1.55
500,00010$10.44$2.59$3.34$7.85
500,000100$104.40$15.55$16.30$88.85

Displayed USD values are rounded for readability; the downloadable source CSV keeps six-decimal precision.

Download full original CSVStudy methodologyRun your own scenario

Study boundary: this is independently reproducible API billing arithmetic, not a paid model-performance benchmark, live cache-hit measurement, latency experiment or real invoice. For comparisons to be fair, both models are assigned the same hypothetical input and output counts.

SXF INTERACTIVE COST TOOL · NO NETWORK REQUESTS

Claude Sonnet 5 vs 5.5 prompt caching calculator.

Estimate total Standard token cost for repeated calls, including an initial write and subsequent cache hits. Select a 5-minute or 1-hour write, then compare Sonnet 5 with Sonnet 5.5. Values never leave your browser; the tool estimates, not invoices.

SONNET 5 · NO CACHE—
SONNET 5 · WITH CACHE—
SONNET 5.5 · NO CACHE—
SONNET 5.5 · WITH CACHE—
SONNET 5 CACHE SAVING—

All scenarios assume the same repeated prefix and successful reuse within the chosen cache lifetime.

EXACT-MATCH COMPARISON · SONNET 5 VS SONNET 5.5

Claude Sonnet 5 vs Claude Sonnet 5.5: which model should developers use?

Claude Sonnet 5.5 followed Sonnet 5 on September 28, 2026. The two have separate model identifiers, distinct knowledge cutoffs, and different published cached-read prices. For a production migration, compare the same held-out tasks with pinned model IDs and measure task acceptance rate, response consistency, latency, retry count and total billed tokens.

Verified factClaude Sonnet 5Claude Sonnet 5.5
API IDclaude-sonnet-5claude-sonnet-5-5
ReleaseJune 30, 2026September 28, 2026
Context window1,000,000 tokens1,000,000 tokens
Maximum output128,000 tokens128,000 tokens
Knowledge cutoffJanuary 2026June 2026
Uncached input$2.00 / 1M$2.00 / 1M
Cached read$0.20 / 1M$0.10 / 1M
Output$10.00 / 1M$10.00 / 1M
Read detailed guideThis pageSonnet 5.5 specifications

For cross-provider pricing, see SXF's Anthropic API pricing guide and SXF's full model pricing index. For Sonnet use within Copilot, see our Claude Sonnet and GitHub Copilot guide; GitHub model availability and Anthropic API billing are distinct.

BENCHMARK TRANSPARENCY · INDEPENDENT PROVIDER ATTRIBUTION

Claude Sonnet 5 benchmarks: what independent evaluations can—and cannot—tell you.

The SXF evaluation registry includes versioned observations from Artificial Analysis. Each reported score requires the evaluator, benchmark version and reasoning configuration. None of these are original SXF inference test scores.

How to interpret the independently reported benchmarks

Artificial Analysis scores should be evaluated alongside their benchmark versions, harness settings and model effort. An Elo rating is not a percentage, a composite index is not a task pass rate, and a score cannot guarantee real-world reliability.

See the Evaluation Evidence cards below the historical ledger for all eight versioned measurements and their original source links. We show the numerical results there once instead of repeating the same numbers in multiple sections.

What is not claimed: a guaranteed SWE-bench pass rate, a private SXF paid inference run or universal agent reliability. Scores vary with evaluator settings, time and benchmark version. Current direct evidence should be checked at the linked evaluator, not interpreted as live measurements.

DIRECT DEVELOPER ANSWER · ANTHROPIC MESSAGES API

How to use Claude Sonnet 5 API: Python example and testing checklist.

Call the Anthropic Messages API using claude-sonnet-5. Set ANTHROPIC_API_KEY securely in your backend environment. Do not expose credentials to browser code, public repositories or generated HTML. This code is an illustrative integration example, not an actual paid model call executed by SXF.

import anthropic

client = anthropic.Anthropic()  # reads ANTHROPIC_API_KEY
message = client.messages.create(
    model="claude-sonnet-5",
    max_tokens=1024,
    messages=[
        {"role": "user",
         "content": "Review this pull request for correctness and risk."}
    ],
)
print(message.content[0].text)

How to compare before migrating to Sonnet 5.5

  1. Version a held-out set of actual engineering and agent tasks, with explicit acceptance criteria.
  2. Run the same prompts, tool policies and output-budget settings on the two exact IDs.
  3. Record input, cache-write, cache-read and output token counts alongside latency and success rates.
  4. Compare cost per accepted result and monitor the failure cases, rather than selecting models by the lowest input rate alone.

Primary API reference: Anthropic's official Sonnet 5 card and Anthropic pricing.

DIRECT SEARCH ANSWERS / FREQUENT QUESTIONS

Claude Sonnet 5 frequently asked questions.

What is Claude Sonnet 5?

Claude Sonnet 5 is Anthropic's June 30, 2026 balanced model for coding, agentic workflows, research and professional knowledge work. Its exact API model ID is claude-sonnet-5.

How much does Claude Sonnet 5 cost per million tokens?

Standard Claude Sonnet 5 API pricing is $2 uncached input, $0.20 cached input read and $10 output per million tokens, as rechecked on November 10, 2026. Special service options and tools can have separate fees.

Is Claude Sonnet 5 API pricing promotional?

No. Anthropic announced the $2 input and $10 output Standard rates as permanent on August 10, 2026. Published rates can still change in the future.

What is the Claude Sonnet 5 model ID?

Use claude-sonnet-5 as the versioned model ID in the Anthropic Messages API.

What is Claude Sonnet 5's context window?

Anthropic documents a 1,000,000-token context window and 128,000 maximum output tokens for Claude Sonnet 5. These are serving limits, not performance guarantees.

What is the Claude Sonnet 5 knowledge cutoff?

The official Sonnet 5 model card lists January 2026 as its knowledge cutoff. This is not the page update date.

How many parameters does Claude Sonnet 5 have?

Anthropic has not published a verified parameter count or downloadable weights for Claude Sonnet 5. Context tokens are not model parameters.

Is Claude Sonnet 5 open source?

No. Claude Sonnet 5 is a proprietary hosted Anthropic model; an official model-weights download is not provided.

What is the difference between Claude Sonnet 5 and 5.5?

Claude Sonnet 5 and 5.5 are distinct API model IDs. Sonnet 5.5 launched on September 28, 2026 and lists a newer knowledge cutoff and a lower cached-read rate than Sonnet 5.

Is Claude Sonnet 5 the latest Sonnet model?

No. Anthropic released Claude Sonnet 5.5 on September 28, 2026. Check the official model directory for the latest availability.

How much do Claude Sonnet 5 prompt cache writes cost?

Standard five-minute cache writes cost $2.50 and one-hour writes cost $4 per million input tokens; subsequent eligible cached reads cost $0.20 per million tokens.

When does Sonnet 5 prompt caching save money?

For identical eligible reusable prefixes, SXF's dated hypothetical pricing study finds a five-minute cache write plus one successful cached read costs less than two all-uncached calls. Real cache hits are not guaranteed.

Does Claude Sonnet 5 support images?

Yes. The official model specification documents text and image input with text output.

How to call Claude Sonnet 5 in Python?

Use the Anthropic Python SDK Messages API with model='claude-sonnet-5', a max_tokens value and a messages array, and keep ANTHROPIC_API_KEY in secure server environment variables.

Is Claude Sonnet 5 available in GitHub Copilot?

GitHub Copilot model availability and plan conditions are separate from Anthropic's direct API. Check GitHub's current model list rather than inferring access from the API model ID.

Did SXF independently benchmark Claude Sonnet 5?

SXF's original research is a 20-scenario reproducible billing simulation for prompt caching, not a live model inference or latency benchmark. Performance scores are explicitly attributed to Artificial Analysis.

EVIDENCE / ORIGINAL DATA / LIMITATIONS

Sources and SXF research method: reproduce our token-cost calculations.

The SXF experiment applies Anthropic's dated Standard rate table to fixed hypothetical workloads. The repeated prefix sizes are 2,048, 16,000, 100,000 and 500,000 input tokens; request counts are 1, 2, 3, 10 and 100. Each request adds 2,000 new input tokens and 4,000 output tokens. A cache scenario bills the first prefix at the selected initial write rate and each later prefix at the published read rate. The uncached scenario bills each prefix at full input rates.

Assumptions: identical cacheable prefixes, all calls inside retention, eligible cache creation, successful cache hits, the same token counts across both models and no optional paid tools or other tier fees. The modelled 1M context is a serving limit, not a claim that every 500K-token prompt will be reliable. The downloadable original dataset publishes the numerical inputs, all six costs per scenario and the savings arithmetic. A source-backed automated test recomputes every row during site builds.

Editorial review and source recheck: 2026-11-10. Historical baseline and source-change ledger appear below. Provider-reported benchmarks are clearly distinguished from original SXF billing arithmetic. Structured data accurately summarizes the visible research; Google does not guarantee ranking changes or search enhancements from markup.

WHAT CHANGED

Claude Sonnet 5: what changed.

No post-baseline factual changes recorded for Claude Sonnet 5 since 2026-09-27.

HISTORICAL BASELINE2026-09-27Original ledger snapshot, not the latest source check. See Last verified above.

VERIFIED CHANGE HISTORY

Claude Sonnet 5 verified history.

Open ledger JSON ↗
BASELINE

Claude Sonnet 5

Baseline verified: 1,000,000 context · 128,000 max output · $2.00 input / $0.20 cached / $10.00 output per 1 million tokens

Official evidence ↗

Append-only SXF ledger · 1 verified event · chain head 744b2a3d12d1…

EVALUATION EVIDENCE

Claude Sonnet 5 benchmark observations.

Evaluation methodology ↗
independentArtificial Analysis

AA-Briefcase 1.1

1,176 Elo

agentic knowledge work · reasoning high

Evidence ↗
independentArtificial Analysis

Artificial Analysis Intelligence Index 4.3.2

32

composite intelligence · reasoning high

Evidence ↗
independentArtificial Analysis

AA-LCR 1.1

77.0%

long context reasoning · reasoning high

Evidence ↗
independentArtificial Analysis

AutomationBench-AA

32.0%

business automation · reasoning high

Evidence ↗
independentArtificial Analysis · under review

CritPt

15.0%

frontier science reasoning · reasoning high

Evidence ↗
independentArtificial Analysis

GDPval-AA 2.1

1,258 Elo

professional knowledge work · reasoning high

Evidence ↗
independentArtificial Analysis

Humanity's Last Exam

36.0%

multidisciplinary reasoning · reasoning high

Evidence ↗
independentArtificial Analysis · under review

SciCode

54.0%

scientific coding · reasoning high

Evidence ↗

Scores are shown only with their evaluator, benchmark version and model configuration. They are not merged into a universal model score.