by Anthropic

Claude Sonnet 5 pricing, plans and limits

Anthropic's mid-tier flagship: the best combination of speed and intelligence, built for high-volume agentic coding and computer use at 40% below Opus 4.8 pricing.

Best for
Agentic coding at scale
Not for
Voice assistants or real-time speech apps
  • Available
  • Proprietary

Should you use Claude Sonnet 5?

Sonnet 5 fits engineering teams running high-volume agentic coding and computer-use work who want near-Opus quality at Sonnet pricing. It's the wrong pick for voice or video-first products, since it has no native audio or video I/O, and for configs still pinned to non-default sampling parameters. Max output runs to 128,000 tokens on the synchronous API.

Best for

  • Agentic coding at scale 82.1% SWE-bench Verified, the first model to clear 80%, at 40% lower cost than Opus 4.8.
  • Computer-use automation 81.2% OSWorld-Verified and 80.4% Terminal-Bench 2.1, both sharp jumps over Sonnet 4.6.
  • Long-document and codebase analysis 1M-token context window shared with Opus 4.8 at a third of the price.

Not for

  • Voice assistants or real-time speech apps No native audio input or output; text and image only.
  • Offensive cyber-capability research Anthropic states it performs substantially worse than Claude Mythos 5 on cyber-relevant evaluations by design.
  • Configs pinned to non-default sampling params Non-default temperature, top_p, or top_k now return a 400 error, breaking direct Sonnet 4.6 migrations.

Claude Sonnet 5 pricing

Input, per 1M tokens
$3.00/1M
Output, per 1M tokens
$15.00/1M
Cached input, per 1M tokens
$0.30/1M
Pricing model
per-token
Free tier
Default model on claude.ai Free and Pro plans, subject to standard message-rate limits; full-rate API access requires a paid API account.

What a real job costs

JobInputOutputTotal
Summarise a 20-page PDF$0.090$0.015$0.105
Support reply$0.0060$0.0045$0.010
One coding agent run$0.600$0.300$0.900

Budgets: 20-page PDF = 30k in / 1k out · Support reply = 2k in / 300 out · Coding agent run = 200k in / 20k out. Computed from the vendor's per-token prices at render time; cached-input discounts are not applied.

Cost examples

Summarize 100K-token research paper
$0.30
Daily agentic coding loop (1M tokens in / 200K out)
$6.00
Customer support chat (avg 2K in / 500 out per turn, 1000 turns)
$13.50

$3 per 1M input tokens and $15 per 1M output tokens at standard pricing, identical to Sonnet 4.6's rate card. An introductory discount of $2/$10 per 1M tokens runs through August 31, 2026, offsetting the new tokenizer's higher per-request token counts. Prompt cache reads bill at 0.1x the standard input rate, and the Batch API is 50% cheaper but excluded from Zero Data Retention, with batch data held up to 29 days.

What Claude Sonnet 5 can do

Claude Sonnet 5, Anthropic's mid-tier flagship model released in 2026, sits between Haiku 4.5 and Opus 4.8 in Anthropic's current lineup. It leads on GPQA Diamond at 96.2% and posts 84.7% on ARC-AGI-2, running adaptive hybrid reasoning by default for agentic coding and computer-use automation.

What goes in and what comes out

Reads

  • text
  • image
  • pdf
  • tool-calls

Writes

  • text
  • tool-calls

Capabilities

  • Code executionSupported
  • Function callingSupported
  • Structured outputSupported
  • Tool useSupported
  • VisionSupported
  • Web browsingSupported
  • Audio inputNot supported
  • Audio outputNot supported
  • Video inputNot supported
Reasoning modes
adaptive-thinking
Long context recall
high

Key features

  • 82.1% SWE-bench Verified

    First model to clear the 80% mark on SWE-bench Verified, the benchmark most agentic coding teams weigh first.

  • 1M-Token Context Window

    128,000 max output tokens on the synchronous Messages API, extending to 300,000 on the Batch API.

  • Computer Use

    Scores 81.2% on OSWorld-Verified and 80.4% on Terminal-Bench 2.1, both sharp jumps from Sonnet 4.6's 78.5% and 67.0%.

  • Adaptive Thinking

    Runs by default on every request unless explicitly disabled, replacing Sonnet 4.6's opt-in extended-thinking mode.

  • Prompt Caching

    Cache reads are billed well below the standard input rate, cutting costs on repeat-context agentic workloads.

Known limitations

  • No native audio or video input/output; text and image only, requiring a separate ASR/TTS stack for voice apps.
  • New tokenizer produces roughly 30% more tokens for the same text than Sonnet 4.6, inflating raw token counts and requiring max_tokens budgets to be re-tuned.
  • Setting temperature, top_p, or top_k to non-default values now returns a 400 error, breaking configs migrated directly from Sonnet 4.6.

Who it is for

  • Agentic coding teams running high-volume autonomous loops
  • Enterprise teams needing SOC 2, HIPAA-ready, and Zero Data Retention options at Sonnet-tier pricing
  • Teams automating computer use and terminal workflows
  • Developers migrating off Sonnet 4.6 who want near-Opus capability at the same price point

Supported languages

  • English
  • Spanish
  • French
  • German
  • Japanese
  • Chinese
  • Korean
  • Portuguese
  • Arabic
  • Hindi

Claude Sonnet 5 benchmarks

Claude Sonnet 5 against its nearest rivals

SWE-bench Verified % solved, higher is better

GPQA Diamond % correct, higher is better

Standout result

82.1%

SWE-bench Verified, first model to break the 80% ceiling

Source: Claude Sonnet 5 launch coverage, June 30, 2026

Where it sits

Pricier than 80% of the 104 GA models with a published price, in the top third on SWE-bench Verified (rank 9 of 39), and one of 41 that document a zero-data-retention option.

MeasureThis modelRankMedian
Blended price (3:1)$ per 1M tokens$6.00/M#81 / 104peer median $1.73/M
SWE-bench Verified% solved82.1%#9 / 39peer median 76.5%
GPQA Diamond% correct96.2%#1 / 63peer median 87.8%

Ranks are against GA models on Hokai that publish the same figure; ties share a rank.

Benchmark scores

  • GPQA Diamond vendor-reported · 30 Jun 202696.2%PhD-level science questions that are hard to search for, % correct.
  • ARC-AGI 2 vendor-reported · 30 Jun 202684.7%Abstract visual puzzles built to resist memorisation, % solved.
  • SWE-bench Verified vendor-reported · 30 Jun 202682.1%Real GitHub issues fixed end to end, % solved.
  • AA Intelligence Index cited: Artificial Analysis · 30 Jun 202653Composite of the evaluations Artificial Analysis runs for its index, 0 to 100.

A benchmark is an exam, not the job. Scores transfer unevenly between tasks, so weigh the one closest to your workload and read every figure with its source.

Safety benchmarks

Jailbreak resistance
high

Strengths and limits

Strengths

  • Anthropic's own launch results put it ahead of Gemini 3.1 Pro and GPT-5.4 on real-world coding-agent evaluations.
  • 40% cheaper than Opus 4.8 on the standard rate card, even before the current introductory discount kicks in.
  • Computer-use automation jumped sharply on Anthropic's own tests, with OSWorld-Verified and Terminal-Bench scores both rising over Sonnet 4.6.
  • First model to break 80% on SWE-bench Verified at 82.1%, ahead of Gemini 3.1 Pro (80.6%) and GPT-5.4 (~80%).
Show 2 more
  • Computer use jumped to 81.2% on OSWorld-Verified and 80.4% on Terminal-Bench 2.1, up from 78.5% and 67.0% on Sonnet 4.6.
  • Priced at $3/$15 per 1M tokens, 40% cheaper than Opus 4.8's $5/$25 on both input and output, with $2/$10 introductory pricing through August 31, 2026.

Limits

  • No native audio or video input/output, so voice and video apps still need a separate model in the stack.
  • New tokenizer inflates token counts roughly 30% versus Sonnet 4.6, requiring max_tokens and cost budgets to be re-tuned on migration.
  • Sampling params (temperature, top_p, top_k) now error at non-default values, breaking configs carried over directly from Sonnet 4.6.

Claude Sonnet 5 alternatives

ModelLabContextIn / out per 1MReads and writes
Claude Sonnet 5 This pageAnthropic1M$3 / $15text, image, pdf → text
Claude Opus 4.8Pick Opus 4.8 if you need the strongest coding ceiling on SWE-bench Pro; pick Sonnet 5 for near-Opus quality at a lower token price.Anthropic1M$5 / $25text, image, pdf → text
Claude Sonnet 4.6Pick Sonnet 5 over Sonnet 4.6 for the computer-use and coding-benchmark jump at the same price; stay on 4.6 only if pinned to non-default sampling parameters.Anthropic1M$3 / $15text, image, pdf → text
Gemini 3.1 ProPick Gemini 3.1 Pro for Google Cloud-native deployment; pick Sonnet 5 for the higher SWE-bench Verified score and native computer-use benchmarks.Google1M$2 / $12text, image, audio, video, pdf → text

Also compared

  • GPT-5.4Pick GPT-5.4 if you're standardized on OpenAI's native Computer Use API; pick Sonnet 5 for the SWE-bench lead and Anthropic's compliance certifications.

Claude Sonnet 5 specs

Context window
1.0M tokens
Max output
128K tokens
Architecture
Transformer (dense, hybrid reasoning)
Mixture of experts
No
Parameters
Not disclosed

Training data

Trained on a curated mix of public web text, licensed datasets, and synthetic reasoning traces with a reliable knowledge cutoff of January 2026. Uses the same tokenizer introduced with Claude Opus 4.7, producing roughly 30% more tokens per input than Sonnet 4.6's tokenizer.

API endpoints

NameEndpointAuth
Anthropic Claude APIhttps://platform.claude.com/docs/en/api/rate-limitsAPI Key
AWS Bedrockhttps://aws.amazon.com/blogs/machine-learning/introducing-claude-sonnet-5-on-aws-anthropics-most-capable-sonnet-model/AWS IAM
Microsoft Foundry (Azure)https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundryAzure AD
Google Vertex AIhttps://platform.claude.com/docs/en/build-with-claude/claude-on-vertex-aiGCP IAM

SDKs

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby

Regions

  • us-east-1
  • us-west-2
  • eu-central-1
  • ap-northeast-1

Prompting patterns

Show 2 prompting patterns
  • Explicitly set thinking mode

    Pass thinking: { type: 'disabled' } to turn off adaptive thinking, or leave it default for adaptive reasoning.

    Adaptive thinking runs by default on every request, unlike Sonnet 4.6, and consumes part of the max_tokens budget.

  • State an explicit reporting bar for code review

    "Report every bug you find, including low-severity ones, even if below your usual bar."

    Sonnet 5 follows instructions more literally and may silently drop low-severity findings it judges not worth reporting unless told otherwise.

Known quirks

Show 4 known quirks
  • Adaptive thinking on by default

    Requests without an explicit thinking field ran without thinking on Sonnet 4.6 but run with adaptive thinking on Sonnet 5, consuming part of the max_tokens budget for the same request.

    Workaround: Pass thinking: { type: 'disabled' } explicitly for requests that need the old no-thinking behavior, and re-check max_tokens limits for workloads migrated from Sonnet 4.6.

  • Sampling params now error at non-default values

    Setting temperature, top_p, or top_k to anything other than the default returns a 400 error, unlike on Sonnet 4.6 where these were accepted.

    Workaround: Remove these parameters from request payloads during migration, or explicitly pass the default value.

  • New tokenizer inflates token counts ~30%

    The same input text produces roughly 30% more tokens than under Sonnet 4.6's tokenizer, so usage fields and pre-flight token counts are not directly comparable across generations.

    Workaround: Recount tokens against Sonnet 5 directly rather than reusing cached counts from Sonnet 4.6, and rebudget max_tokens accordingly.

  • Fewer reported low-severity code review findings

    The model investigates code as thoroughly as before and finds the same bugs, but converts fewer investigations into reported findings when it judges them below the stated severity bar, which can look like reduced recall even though detection ability improved.

    Workaround: Explicitly instruct the model to report every finding regardless of severity when running code review or audit tasks.

Claude Sonnet 5 facts

Deployment
API · AWS Bedrock · Google Vertex AI · Azure
Trains on your data
No
Licence
Proprietary (Anthropic Commercial Terms)
Safety posture
Balanced
Released
30 Jun 2026
Current version
claude-sonnet-5
Knowledge cutoff
01 Jan 2026
Family
Claude Sonnet 5
Variant
Multimodal
Data retention
Standard API inputs and outputs retained per Anthropic's standard policy; Zero Data Retention available for eligible customers (excludes the Message Batches API, which retains data up to 29 days).

Content restrictions

  • Cyber safeguards enabled by default; cannot develop working exploits per Anthropic's system card.
  • Refuses malicious cyber, biological, and chemical uplift requests; evaluated by METR, Apollo Research, and UK AISI ahead of release.

Safety controls

Rlhf
Yes
System prompt
Yes
Constitutional AI
Yes
Content filter API
Yes
Moderation endpoint
Yes
Red teaming
documented in June 30, 2026 system card with METR, Apollo Research, and UK AI Security Institute

Data governance

Iso 27001
Yes
Soc2 type2
Yes
GDPR compliant
Yes
HIPAA eligible
Yes
Trains on inputs
No
Data residency options
us, eu
Eu AI act classification
general-purpose AI with systemic risk obligations

Version history

  • claude-sonnet-5 · 30 Jun 2026

    Initial release. First model to break 80% SWE-bench Verified (82.1%). Adaptive thinking on by default, new tokenizer, $3/$15 pricing with $2/$10 introductory rate through Aug 31, 2026.

  • claude-sonnet-4-6 · 24 Mar 2026

    Predecessor. 79.6% SWE-bench Verified, 58.1% SWE-bench Pro, 78.5% OSWorld-Verified.

What changed

  • Release Claude Sonnet 5 goes GA on AWS Bedrock and GitHub Copilot source
  • Release Claude Sonnet 5 launches with 82.1% SWE-bench Verified source

Questions about Claude Sonnet 5

How much does Claude Sonnet 5 cost in 2026?

Standard pricing charges $3 for a million input tokens and $15 for a million output tokens, matching Sonnet 4.6's rate card. Through August 31, 2026, Anthropic discounts that to $2/$10 per 1M tokens to cushion the higher counts from the new tokenizer, and cached reads bill at a tenth of the normal input price. Batch requests run 50% cheaper than the synchronous API but give up Zero Data Retention eligibility.

Is Claude Sonnet 5 free to use?

Claude Sonnet 5 has no standalone free tier: it's the default model on claude.ai's Free and Pro consumer plans, subject to standard message-rate limits, but full-rate API access requires a paid API account with no free monthly quota. Teams wanting the model at zero marginal cost only get it through the consumer chat interface, not the developer API.

What are the best alternatives to Claude Sonnet 5?

Inside Anthropic's own lineup, Claude Opus 4.8 suits teams that need the highest coding ceiling and can absorb higher per-token pricing, while Claude Sonnet 4.6 fits teams not yet ready to re-tune token budgets around the new tokenizer. Outside Anthropic, Gemini 3.1 Pro and GPT-5.4 both compete directly on agentic coding and long-context tasks.

Claude Sonnet 5 or GPT-5.4: which should you pick?

Claude Sonnet 5 posts a higher SWE-bench Verified score than GPT-5.4, the first model in either lineup to clear the 80% mark on that benchmark. GPT-5.4 counters with a native Computer Use API built into OpenAI's own stack, while Sonnet 5's computer-use gains come from Anthropic's OSWorld-Verified and Terminal-Bench improvements instead. Teams already standardized on OpenAI's tooling have less reason to switch; teams choosing fresh get a real coding-benchmark edge from Sonnet 5.

How do you get started with Claude Sonnet 5?

Getting started just needs an Anthropic API key and a request to the Messages API with the model field set to claude-sonnet-5. Existing Sonnet 4.6 integrations need any explicit temperature, top_p, or top_k overrides removed, since non-default values now return a 400 error. Claude Code and GitHub Copilot users can switch model versions directly in their settings without touching API code.

About Claude Sonnet 5

Claude Sonnet 5 is Anthropic's fifth-generation Sonnet-tier model, released June 30, 2026. Anthropic positions it as a drop-in upgrade for Sonnet 4.6 that closes most of the coding gap to Opus 4.8 while keeping Sonnet's speed and price. It is a dense, hybrid-reasoning Transformer with adaptive thinking on by default; Anthropic has not disclosed a parameter count.

Read the full background

Sonnet 5 uses the tokenizer introduced with Opus 4.7, so identical text now produces roughly 30% more tokens than under Sonnet 4.6's tokenizer. Anthropic's reliable knowledge cutoff for the model is January 2026.

Deployment spans the direct Claude API, AWS Bedrock, Microsoft Foundry, and Google Vertex AI (listed as coming soon at launch), plus day-one access through Claude Code and GitHub Copilot. Anthropic holds SOC 2 Type I and Type II, ISO 27001:2022, and ISO/IEC 42001:2023 certifications, signs HIPAA Business Associate Agreements, and offers Zero Data Retention outside the Batch API.

Safety partners for the June 30, 2026 system card include METR, Apollo Research, and the UK AI Security Institute. Anthropic reports lower misalignment, hallucination, and sycophancy rates than Sonnet 4.6, plus better prompt-injection resistance; the model does not cross the automated AI R&D capability threshold and shows only limited bio/chem uplift.

Sources and guides

More AI Models on Hokai

  • Gemini 4 HydrogenGoogle DeepMind's November 2026 Gemini 4 model for coding agents, with four thinking levels from low to xhigh and a free tier in AI Studio.
  • Qwen4-Max-PreviewAlibaba's November 2026 Qwen 4 flagship preview, open only to Token Plan subscribers, with three reasoning levels from low to xhigh.
  • Claude Fable 5Superseded by Fable 5.1 and Fable 5.2 but still sold on the Claude API: Anthropic's first generally available Mythos-class model, released June 2026, with a 1M-token context.
  • Claude Fable 5.1Superseded by Claude Fable 5.2 in November 2026 but still sold on the Claude API: Anthropic's second Mythos-class model, released Sept 1, 2026, for long-horizon coding and research.
  • Gemini Decision 1Google DeepMind's decision model scores many questions over one multimodal input of up to 262,144 tokens and bills zero output tokens.
  • Shieldstral 1.0Mistral's open-weight multimodal safety classifier, released 4 August 2026, that screens text and images against policies you write.