Claude Sonnet 4.6
Anthropic's most capable Sonnet-class model of early 2026, now superseded by Sonnet 5.
Context window
1M
Input / 1M tokens
$3.00
Output / 1M tokens
$15.00
Provider
Anthropic
Standard pricing $3/$15 per 1M input/output tokens (same as Sonnet 4.5). Batch API is 50% off at $1.50/$7.50 per 1M. Now listed as a legacy model - consider migrating to Sonnet 5 at the same price for higher capability. · Data verified 2026-07-02
Claude Sonnet 4.6 (February 2026) delivered frontier-class performance across coding, agents, and professional work with a 1M-token context window in beta. It scored 79.6% on SWE-bench Verified and introduced strong agentic and computer-use capabilities. It has since been reclassified as a legacy model, with Sonnet 5 as the same-price successor.
Capability index
Relative estimates (0-100) to place this model against its peers, grounded in published benchmarks.
How to access it
Available via the Claude API, Amazon Bedrock, Google Cloud, and Microsoft Foundry. Now categorized as a legacy model since the Sonnet 5 release; still fully usable but Sonnet 5 is the recommended drop-in upgrade.
Strengths
- ✓Strong agentic coding for its tier: 79.6% SWE-bench Verified
- ✓1M-token context window for large inputs
- ✓Solid computer-use and OS-level task performance (OSWorld ~72.5-78.5%)
- ✓Fast latency with good cost-efficiency at $3/$15
- ✓Well-documented, stable, and broadly available across clouds
Best for developers who...
When to choose it (and when not to)
Reach for Claude Sonnet 4.6 when...
- →You have an existing integration pinned to Sonnet 4.6 and want stability
- →You need a proven mid-tier model with 1M context at $3/$15
- →You want predictable behavior without the new-tokenizer/thinking changes in Sonnet 5
- →You are cost-sensitive and don't need Sonnet 5's incremental gains
Look elsewhere if...
- ✕You want the best capability per dollar today - Sonnet 5 upgrades it at the same price
- ✕You need the strongest agentic/coding performance (Opus 4.8 or Fable 5)
- ✕You want the latest features and long-term support (it is now legacy)
How to use it
- ›Manual extended thinking is deprecated on Sonnet 4.6; prefer adaptive thinking patterns
- ›Use the 1M context deliberately - place key instructions near the top and structure long inputs
- ›Use batch processing for 50% cost savings on non-interactive workloads
- ›For agentic tasks, give explicit tool-use guidance and success criteria
Quickstart
Pythonimport anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=4096,
messages=[
{"role": "user", "content": "Summarize this pull request and flag risks."}
],
)
print(response.content[0].text)Sonnet 4.6 is now a legacy model; for new projects migrate to claude-sonnet-5 (drop-in, same price).
API model id: claude-sonnet-4-6
Benchmarks
| Benchmark | Score | Notes |
|---|---|---|
| SWE-bench Verified | 79.6% | |
| Terminal-Bench 2.0 | 59.1% | |
| OSWorld-Verified | 72.5% | Anthropic later reported 78.5% on an updated run |
| GPQA | 79.7% |
Tools powered by Claude Sonnet 4.6
Compare Claude Sonnet 4.6 with
Claude Sonnet 4.6 vs Claude Opus 4.8
Anthropic - 1M ctx
Claude Sonnet 4.6 vs Claude Opus 4.7
Anthropic - 1M ctx
Claude Sonnet 4.6 vs Claude Haiku 4.5
Anthropic - 200K ctx
Claude Sonnet 4.6 vs GPT-5
OpenAI - 400,000 tokens (128,000 max output) ctx
Claude Sonnet 4.6 vs Gemini 2.5 Pro
Google DeepMind - 1,048,576 tokens (1M) input; up to 65K output ctx