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.
MODEL REFERENCE / ANTHROPIC
Official model specifications, clear API pricing and an independently reproducible 20-scenario SXF cache-cost study.
SOURCE-VERIFIED EDITORIAL UPDATE · 2026-11-26
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
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
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.
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.
Use the Messages API and the pinned model ID claude-sonnet-5. Hosted availability, tools and account limits are provider-specific.
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
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 operation | Sonnet 5 | Sonnet 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
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.
Illustrative Sonnet 5 list cost falls from all-uncached to a 5-minute cache-write scenario when nine subsequent reads hit the cache.
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 currently lists a lower read rate than Sonnet 5; a lower rate does not by itself prove equal output quality or latency.
| Reusable prefix | Calls | No cache | 5-min | 1-hour | Saving, 5-min |
|---|---|---|---|---|---|
| 2,048 | 1 | $0.05 | $0.05 | $0.05 | $-0.0010 |
| 2,048 | 2 | $0.10 | $0.09 | $0.10 | $0.0027 |
| 2,048 | 3 | $0.14 | $0.14 | $0.14 | $0.0063 |
| 2,048 | 10 | $0.48 | $0.45 | $0.45 | $0.03 |
| 2,048 | 100 | $4.81 | $4.45 | $4.45 | $0.36 |
| 16,000 | 1 | $0.08 | $0.08 | $0.11 | $-0.0080 |
| 16,000 | 2 | $0.15 | $0.13 | $0.16 | $0.02 |
| 16,000 | 3 | $0.23 | $0.18 | $0.20 | $0.05 |
| 16,000 | 10 | $0.76 | $0.51 | $0.53 | $0.25 |
| 16,000 | 100 | $7.60 | $4.76 | $4.78 | $2.84 |
| 100,000 | 1 | $0.24 | $0.29 | $0.44 | $-0.05 |
| 100,000 | 2 | $0.49 | $0.36 | $0.51 | $0.13 |
| 100,000 | 3 | $0.73 | $0.42 | $0.57 | $0.31 |
| 100,000 | 10 | $2.44 | $0.87 | $1.02 | $1.57 |
| 100,000 | 100 | $24.40 | $6.63 | $6.78 | $17.77 |
| 500,000 | 1 | $1.04 | $1.29 | $2.04 | $-0.25 |
| 500,000 | 2 | $2.09 | $1.44 | $2.19 | $0.65 |
| 500,000 | 3 | $3.13 | $1.58 | $2.33 | $1.55 |
| 500,000 | 10 | $10.44 | $2.59 | $3.34 | $7.85 |
| 500,000 | 100 | $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
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.
EXACT-MATCH COMPARISON · SONNET 5 VS SONNET 5.5
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 fact | Claude Sonnet 5 | Claude Sonnet 5.5 |
|---|---|---|
| API ID | claude-sonnet-5 | claude-sonnet-5-5 |
| Release | June 30, 2026 | September 28, 2026 |
| Context window | 1,000,000 tokens | 1,000,000 tokens |
| Maximum output | 128,000 tokens | 128,000 tokens |
| Knowledge cutoff | January 2026 | June 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 guide | This page | Sonnet 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
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.
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
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)
Primary API reference: Anthropic's official Sonnet 5 card and Anthropic pricing.
DIRECT SEARCH ANSWERS / FREQUENT QUESTIONS
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.
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.
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.
Use claude-sonnet-5 as the versioned model ID in the Anthropic Messages API.
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.
The official Sonnet 5 model card lists January 2026 as its knowledge cutoff. This is not the page update date.
Anthropic has not published a verified parameter count or downloadable weights for Claude Sonnet 5. Context tokens are not model parameters.
No. Claude Sonnet 5 is a proprietary hosted Anthropic model; an official model-weights download is not provided.
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.
No. Anthropic released Claude Sonnet 5.5 on September 28, 2026. Check the official model directory for the latest availability.
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.
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.
Yes. The official model specification documents text and image input with text output.
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.
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.
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
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.
Official and third-party evidence:
Anthropic Sonnet 5 specifications Anthropic Sonnet 5.5 specifications Anthropic API pricing and caching Anthropic June 2026 Sonnet 5 launch Anthropic September 2026 Sonnet 5.5 launch Artificial Analysis versioned observations SXF original data (CSV)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
No post-baseline factual changes recorded for Claude Sonnet 5 since 2026-09-27.
VERIFIED CHANGE HISTORY
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
agentic knowledge work · reasoning high
Evidence ↗composite intelligence · reasoning high
Evidence ↗long context reasoning · reasoning high
Evidence ↗business automation · reasoning high
Evidence ↗frontier science reasoning · reasoning high
Evidence ↗professional knowledge work · reasoning high
Evidence ↗multidisciplinary reasoning · reasoning high
Evidence ↗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.