Anthropic 平台文档(英文全量)
Latest. Released June 30, 2026.
The best combination of speed and intelligence
Model ID: claude-sonnet-5
Context window: 1M tokens · Max output: 128K tokens · Input pricing: $2 / MTok · Output pricing: $10 / MTok
Announcement · What’s new · Migration guide
Overview
Claude Sonnet 5 is the next generation of Anthropic's Sonnet model family. It is a drop-in upgrade for Claude Sonnet 4.6 with three behavior changes: adaptive thinking is on by default, manual extended thinking now returns a 400 error (it was deprecated on Claude Sonnet 4.6), and setting sampling parameters (temperature, top_p, top_k) to non-default values returns a 400 error. This page summarizes everything new at launch, including a new tokenizer.
How it compares
| Model | Context | Max output | Price / MTok | Latency | Thinking | Default effort | Knowledge cutoff |
|---|---|---|---|---|---|---|---|
| Claude Fable 5.1 | 1M | 128K | $10 / $50 | Slower | Adaptive (always on) | high | Jun 2026 |
| Claude Opus 5 | 1M | 128K | $5 / $25 | Moderate | Adaptive | high | May 2026 |
| Claude Sonnet 5 (this model) | 1M | 128K | $2 / $10 | Fast | Adaptive | high | Jan 2026 |
| Claude Haiku 4.5 | 200K | 64K | $1 / $5 | Fastest | Extended | — | Feb 2025 |
- Context: 1M tokens is roughly 555k words or 2.5M Unicode characters on the current tokenizer (introduced with Claude Opus 4.7); models before it fit about 750k words in 1M tokens. 200k tokens is roughly 150k words.
- Max output: Synchronous Messages API limit. On the Message Batches API, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, and Claude Sonnet 4.6 support up to 300k output tokens with the output-300k-2026-03-24 beta header.
- Price / MTok: Input / output, base price per million tokens. Batch API requests are 50% off; prompt caching reads cost 10% of the base input price (2.5% on Claude Fable 5.1 and Claude Mythos 5.1). See Pricing for the full list.
- Latency: Comparative latency, relative to the current lineup, as published in the models overview. Actual latency depends on prompt length, output length, and thinking effort.
- Thinking: Adaptive thinking lets the model decide how much to think, steered by effort. Extended thinking is the manual budget_tokens mode on earlier models.
- Default effort: The effort parameter’s default on the Claude API. Models without a value don’t support the parameter.
- Knowledge cutoff: Reliable knowledge cutoff: the date through which the model’s knowledge is most extensive and reliable.
Specifications
Model IDs
| Platform | Model ID |
|---|---|
| Claude API | claude-sonnet-5 |
| Amazon Bedrock | anthropic.claude-sonnet-5 |
| Google Cloud | claude-sonnet-5 |
| Microsoft Foundry | claude-sonnet-5 |
| Claude Platform on AWS | claude-sonnet-5 |
Pricing
| Feature | Value |
|---|---|
| Input | $2 / MTok |
| Output | $10 / MTok |
| 5m cache write | $2.50 / MTok |
| 1h cache write | $4 / MTok |
| Cache read | $0.20 / MTok |
| Batch API | 50% discount on input and output |
| Full price list | Pricing |
Capabilities
| Feature | Value |
|---|---|
| Context window | 1M tokens |
| Max output | 128K tokens |
| Max output (Batch API, beta) | 300K tokens |
| Thinking | Adaptive |
| Default effort | high |
| Comparative latency | Fast |
| Input → output | Text and images → text |
| Reliable knowledge cutoff | Jan 2026 |
| Training data cutoff | Jan 2026 |
Availability
| Feature | Value |
|---|---|
| Status | Active (latest) |
| Released | June 30, 2026 |
| Retirement | Not sooner than June 30, 2027 |
| Platforms | Claude API, Amazon Bedrock, Google Cloud, Microsoft Foundry, Claude Platform on AWS |
Good to know
- On the Message Batches API, Claude Sonnet 5 supports up to 300k output tokens with the
output-300k-2026-03-24beta header. - Setting
temperature,top_p, ortop_kto non-default values returns a 400 error. See What's new in Claude Sonnet 5. - Query limits and capabilities programmatically with the Models API.
Resources
Model-specific prompting guidance.
On by default on Claude Sonnet 5. Steer depth with `effort`.
Effort defaults to `high` on the Claude API and Claude Code. Choose a level per workload.
1M tokens by default. How the window is counted and managed.
Reference
Safety evaluations and deployment decisions for Claude Sonnet 5.
Full price list, including batch discounts and prompt caching rates.
How model IDs, aliases, and pinned snapshots work.
Lifecycle status and retirement commitments for every Claude model.