Skip to content
Dashboard

Claude Sonnet 5

Claude Sonnet 5 is the most agentic Sonnet model yet from Anthropic, with gains over Claude Sonnet 4.6 across reasoning, tool use, coding, and knowledge work. Claude Sonnet 5 makes plans, uses tools like browsers and terminals, runs autonomously, and is available on AI Gateway via anthropic, vertexAnthropic, bedrock.

ReasoningTool UseExplicit CachingFile InputVision (Image)Web Search
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'anthropic/claude-sonnet-5',
prompt: 'Why is the sky blue?'
})

Playground

Try out Claude Sonnet 5 by Anthropic. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

anthropic logo
anthropic logo

Ask Claude Sonnet 5 anything to try it out.

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Promotional pricing ends on August 31, 2026.
Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Anthropic
1M
2.1s
106tps
$3.00/M$2.00/M
$15.00/M$10.00/M
Read:$0.3/M$0.2/M
Write:
$3.75/M$2.5/M
$10/K
+ input costs
—
+4
06/29/2026
Google Vertex AI
1M
1.0s
109tps
$2.00/M$10.00/M
Read:$0.2/M
Write:
$2.5/M
$10/K
+ input costs
—
+4
06/29/2026
Amazon Bedrock
1M
5.9s
52tps
$2.00/M$10.00/M
Read:$0.2/M
Write:
$2.5/M
$10/K
+ input costs
—
+4
06/29/2026
Throughput

P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the docs for more info.

Latency

P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.

Uptime

Direct request success rate on AI Gateway and per-provider. Visit the docs for more info.

More models by Anthropic

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
1M
2.1s
98tps
$10.00/M$50.00/M
Read:$1/M
Write:
$12.5/M
$10/K
+ input costs
—
+3
anthropic logo
vertexAnthropic logo
07/01/2026
1M
0.7s
104tps
$5.00/MFast $10.00/M
$25.00/MFast $50.00/M
Read:$0.5/M
Write:
$6.25/M
$10/K
+ input costs
—
+4
anthropic logo
bedrock logo
vertexAnthropic logo
05/28/2026
1M
0.7s
100tps
$5.00/MFast $30.00/M
$25.00/MFast $150.00/M
Read:$0.5/M
Write:
$6.25/M
$10/K
+ input costs
—
+4
anthropic logo
bedrock logo
vertexAnthropic logo
04/16/2026
1M
0.8s
73tps
$3.00/M$15.00/M
Read:$0.3/M
Write:
$3.75/M
$10/K
+ input costs
—
+4
anthropic logo
bedrock logo
vertexAnthropic logo
02/17/2026
1M
1.2s
58tps
$5.00/MFast $30.00/M
$25.00/MFast $150.00/M
Read:$0.5/M
Write:
$6.25/M
$10/K
+ input costs
—
+4
anthropic logo
bedrock logo
vertexAnthropic logo
02/05/2026
200K
0.5s
125tps
$1.00/M$5.00/M
Read:$0.1/M
Write:
$1.25/M
$10.00/K
+ input costs
—
+4
anthropic logo
bedrock logo
vertexAnthropic logo
10/15/2025

About Claude Sonnet 5

Claude Sonnet 5 became available on AI Gateway on June 29, 2026. Anthropic calls Claude Sonnet 5 the most agentic Sonnet model yet: Claude Sonnet 5 makes plans, uses tools like browsers and terminals, and runs autonomously at a level that recently required larger, more expensive models.

The gains over Claude Sonnet 4.6 land across reasoning, tool use, coding, and knowledge work. Anthropic reports strict improvements over Claude Sonnet 4.6 on agentic search and computer use evaluations, along with lower hallucination and sycophancy rates. Anthropic also reports overall performance that approaches its Opus line at a lower price, and Claude Sonnet 5 launched with real-time cyber safeguards enabled by default.

Effort levels define the cost-performance curve. Claude Sonnet 5 supports configurable effort, including an extra-high xhigh level, and higher effort can match Opus-tier output on some tasks while medium effort keeps mixed workloads efficient. Claude Sonnet 5 also uses an updated tokenizer, so the same input can map to more tokens than earlier Sonnet models; verify budgets against real usage rather than prior baselines.

Through AI Gateway, Claude Sonnet 5 is available with the standard unified API, observability, retries, and failover across anthropic, vertexAnthropic, bedrock. Set the model to anthropic/claude-sonnet-5 in the AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python. AI Gateway mirrors provider pricing with no markup and adds no platform fee on inference, including for Bring Your Own Key requests.

What To Consider When Choosing a Provider

  • Configuration: Configurable effort spans a wide cost-performance range, including an extra-high xhigh level for the hardest requests. Tune effort per workload so simple traffic stays cheap and hard tasks get deeper reasoning.
  • Configuration: Claude Sonnet 5 uses an updated tokenizer, so the same input can produce more tokens than earlier Sonnet models. Re-measure token usage with AI Gateway observability instead of reusing Claude Sonnet 4.6 baselines. Cyber safeguards are enabled by default and can block requests that resemble dangerous cybersecurity work.
  • Zero Data Retention: AI Gateway supports Zero Data Retention for this model via direct gateway requests (BYOK is not included). To configure this, check the documentation.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

When to Use Claude Sonnet 5

Best For

  • Agentic Coding Workflows: Multi-step engineering work where Claude Sonnet 5 plans, edits, runs terminals, and verifies output
  • Autonomous Tool Use: Browser, terminal, and API workflows that run with minimal supervision
  • Everyday Professional Work: Drafting, analysis, and knowledge work at Sonnet pricing and scale
  • Large-Context Agents: A context window of 1M tokens covers whole codebases and long agent histories
  • Mixed-Complexity Production Traffic: Configurable effort keeps simple requests cheap while hard requests get deeper reasoning

Consider Alternatives When

  • Maximum Capability Ceiling: Claude Fable 5 is Anthropic's most capable widely released model for the hardest reasoning and longest-horizon work
  • Latency-Critical Simple Tasks: A Haiku-tier model is faster and cheaper for well-bounded, high-throughput requests
  • Stable Token Baselines: Claude Sonnet 4.6 keeps the earlier tokenizer if you need consistent token counts mid-migration

Conclusion

Claude Sonnet 5 is a strong default for production agents: plan-and-execute coding, autonomous tool use, and everyday professional work at Sonnet pricing. Start at medium effort, raise effort where quality gaps appear, and route the hardest long-horizon work to Claude Fable 5.