[Anthropic](/ai-gateway/models/labs/anthropic)

# 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, Google Vertex AI, Bedrock, Claude Platform on AWS. Your use is subject to Anthropic's [Terms](https://www.anthropic.com/legal/commercial-terms) & [Privacy](https://privacy.anthropic.com/en/) Policies.

ReasoningTool UseExplicit CachingFile InputVision (Image)Web Search

[Use with AI Gateway](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Futm_source%3Dgateway-model-page%26utm_campaign%3Dai-gateway-models&title=Get+Started+with+Vercel+AI+Gateway) [View docs](https://vercel.com/docs/ai-gateway)

AI SDKChat CompletionsMessagesResponses

```
1import { streamText } from 'ai'
2

3const result = streamText({
4  model: 'anthropic/claude-sonnet-5',
5  prompt: 'Why is the sky blue?'
6})
```

[Read docs](https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk)

[Overview](/ai-gateway/models/claude-sonnet-5) [API](/ai-gateway/models/claude-sonnet-5/api) [About](/ai-gateway/models/claude-sonnet-5/about) [Providers](/ai-gateway/models/claude-sonnet-5/providers) [Throughput](/ai-gateway/models/claude-sonnet-5/throughput) [Latency](/ai-gateway/models/claude-sonnet-5/latency) [Uptime](/ai-gateway/models/claude-sonnet-5/uptime) [Status](/ai-gateway/models/claude-sonnet-5/status) [Similar](/ai-gateway/models/claude-sonnet-5/similar) [FAQ](/ai-gateway/models/claude-sonnet-5/faq)

## [Copy link to heading](#playground)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](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75)Claude Sonnet 5

![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=96&q=75)

Claude Sonnet 5

## [Copy link to heading](#providers)Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the [docs](/docs/ai-gateway/provider-options) for more info. Using a provider means you agree to their terms, listed under Legal.

Promotional pricing ends on August 31, 2026.

| Provider |
| --- |

| Context | Max Output | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | ZDR | No Training | Regional Inference | Free Tier | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [Anthropic](/ai-gateway/models/providers/anthropic) Legal:[Terms](https://www.anthropic.com/legal/commercial-terms)•[Privacy](https://privacy.anthropic.com/en/) | 1M | 128K | 2.2s | 99tps | $2/M+1 more | $10/M+1 more | Read:$0.20/M+1 more Write:$2.50/M+2 more | $10/K \+ input costs | +3 |  |  | US |  | 06/29/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| ![vertexAnthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) [Google Vertex AI](/ai-gateway/models/providers/vertex) Legal:[Terms](https://cloud.google.com/terms)•[Privacy](https://cloud.google.com/terms/cloud-privacy-notice) | 1M | 128K | 1.2s | 107tps | $2/M+2 more | $10/M+2 more | Read:$0.20/M+2 more Write:$2.50/M+3 more | $10/K \+ input costs | +3 |  |  | US EU |  | 06/29/2026 |  |
| ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) [Bedrock](/ai-gateway/models/providers/bedrock) Legal:[Terms](https://aws.amazon.com/service-terms/)•[Privacy](https://aws.amazon.com/privacy/) | 1M | 128K | 4.5s | 109tps | $2/M+2 more | $10/M+2 more | Read:$0.20/M+2 more Write:$2.50/M+3 more | $10/K \+ input costs | +3 |  |  | US EU |  | 06/29/2026 |  |
| ![claudeaws logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [Claude Platform on AWS](/ai-gateway/models/providers/claudeaws) Legal:[Terms](https://aws.amazon.com/service-terms/)•[Privacy](https://aws.amazon.com/privacy/?nc1=f_pr) | 1M | 128K | 2.4s | 115tps | $2/M | $10/M | Read:$0.20/M Write: $2.50/M+1 more | $10/K \+ input costs | +3 |  |  |  |  | 06/29/2026 |  |

## [Copy link to heading](#throughput)Throughput24 hours

1W

1D

P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the [docs](https://vercel.com/docs/ai-gateway/models-and-providers/metrics) for more info.

## [Copy link to heading](#latency)Latency24 hours

1W

1D

P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the [docs](https://vercel.com/docs/ai-gateway/models-and-providers/metrics) for more info.

## [Copy link to heading](#uptime)Uptime24 hours

1W

1D

1H

Direct request success rate on AI Gateway and per-provider. Visit the [docs](https://vercel.com/docs/ai-gateway/models-and-providers/uptime) for more info.

1W

1D

1H

## [Copy link to heading](#more-models-by-anthropic)More models by Anthropic

All

Text

Code

| Model |
| --- |

| Context | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | Providers | ZDR | No Training | Free Tier | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [anthropic/claude-opus-5](/ai-gateway/models/claude-opus-5) | 1M | 2.7s | 103tps | $5/MFast $10/M | $25/MFast $50/M | Read:$0.50/M Write: $6.25/M+1 more | $10/K \+ input costs | +3 | ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) ![claudeaws logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) +1 |  |  |  | 07/24/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [anthropic/claude\-fable-5](/ai-gateway/models/claude-fable-5) | 1M | 2.0s | 93tps | $10/M | $50/M | Read:$1/M Write: $12.50/M+1 more | $10/K \+ input costs | +2 | ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) ![vertexAnthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) |  |  |  | 07/01/2026 |  |
| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [anthropic/claude-opus-4.8](/ai-gateway/models/claude-opus-4.8) | 1M | 1.2s | 104tps | $5/MFast $10/M | $25/MFast $50/M | Read:$0.50/M Write: $6.25/M+1 more | $10/K \+ input costs | +3 | ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) ![claudeaws logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) +1 |  |  |  | 05/28/2026 |  |
| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [anthropic/claude-sonnet-4.6](/ai-gateway/models/claude-sonnet-4.6) | 1M | 0.8s | 56tps | $3/M | $15/M | Read:$0.30/M Write: $3.75/M+1 more | $10/K \+ input costs | +3 | ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) ![claudeaws logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) +1 |  |  |  | 02/17/2026 |  |
| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [anthropic/claude-opus-4.6](/ai-gateway/models/claude-opus-4.6) | 1M | 0.9s | 56tps | $5/MFast $30/M | $25/MFast $150/M | Read:$0.50/M Write: $6.25/M+1 more | $10/K \+ input costs | +3 | ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) ![vertexAnthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) |  |  |  | 02/05/2026 |  |
| ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) [anthropic/claude-haiku-4.5](/ai-gateway/models/claude-haiku-4.5) | 200K | 0.4s | 110tps | $1/M | $5/M | Read:$0.10/M Write: $1.25/M+1 more | $10/K \+ input costs | +3 | ![anthropic logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) ![bedrock logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Famazon%2520bedrock.png&w=48&q=75) ![claudeaws logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fanthropic.png&w=48&q=75) +1 |  |  |  | 10/15/2025 |  |

## [Copy link to heading](#about-claude-sonnet-5)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, Google Vertex AI, Bedrock, Claude Platform on AWS. 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.

## [Copy link to heading](#what-to-consider-when-choosing-a-provider)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: Zero Data Retention is available for this model. It is offered on a per-provider and model basis. See the [documentation](https://vercel.com/docs/ai-gateway/security-and-compliance/zdr) for details.
- Authentication: AI Gateway authenticates requests using an [API key](https://vercel.com/docs/ai-gateway/authentication-and-byok#api-key-authentication) or [OIDC token](https://vercel.com/docs/ai-gateway/authentication-and-byok#oidc-token-authentication). You do not need to manage provider credentials directly.

## [Copy link to heading](#when-to-use-claude-sonnet-5)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

## [Copy link to heading](#conclusion)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.