Back to Models
Claude Sonnet 5
anthropicanthropic/claude-sonnet-5
API guide
Chat completion
Use TheRouter's OpenAI-compatible endpoint for normal text, coding, and document prompts. Omit sampling parameters unless you know they resolve to Anthropic defaults.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-sonnet-5","messages":[{"role":"user","content":"Audit this migration plan for hidden production risks."}],"max_tokens":2000}'Tool-use agent
Sonnet 5 is strongest when it can plan, call tools, and verify results. Keep tool schemas tight and set effort explicitly for predictable latency/cost.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-sonnet-5","messages":[{"role":"user","content":"What is the order status for invoice INV-1042?"}],"tools":[{"type":"function","function":{"name":"lookup_invoice","description":"Look up invoice status by id","parameters":{"type":"object","properties":{"invoice_id":{"type":"string"}},"required":["invoice_id"]}}}],"tool_choice":"auto","reasoning_effort":"medium","max_tokens":1500}'Vision input
Claude Sonnet 5 supports text and image input with text output. Route visual QA, UI triage, and document screenshots here when 1M context and agent follow-through matter.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-sonnet-5","messages":[{"role":"user","content":[{"type":"text","text":"Find the blocking UX issue in this screenshot."},{"type":"image_url","image_url":{"url":"https://example.com/screenshot.png"}}]}],"max_tokens":1200}'Recent coverage
- NewsClaude Sonnet 5 Skips Priority Tier: What the Service-Tier Gap Means for Latency-Sensitive Routing Teams
- NewsClaude Sonnet 5 Launches as Anthropic's Most Agentic Sonnet: What the Introductory Pricing Window Means for Routing Teams
- NewsClaude Sonnet 5's Three Breaking API Changes: What Every Operator Must Audit Before Migrating
Fact ledger β every claim on this page traces here
| source | URL | retrieved | |
|---|---|---|---|
| Release date | platform.claude.com β | 2026-07-28 | verified |
| Claude API model id | platform.claude.com β | 2026-07-28 | verified |
| Context window | platform.claude.com β | 2026-07-28 | verified |
| Max output tokens | platform.claude.com β | 2026-07-28 | verified |
| Pricing | platform.claude.com β | 2026-07-28 | verified |
| Prompt caching | platform.claude.com β | 2026-07-28 | verified |
| Training data cutoff | platform.claude.com β | 2026-07-28 | verified |
| Reliable knowledge cutoff | platform.claude.com β | 2026-07-28 | verified |
| Reasoning controls | platform.claude.com β | 2026-07-28 | verified |
| Unsupported controls | platform.claude.com β | 2026-07-28 | verified |
| Priority Tier | platform.claude.com β | 2026-07-28 | verified |
| Tokenizer migration | www.anthropic.com β | 2026-07-28 | verified |
| Deployment | platform.claude.com β | 2026-07-28 | verified |
| License | β | β | verified |
| BrowseComp | www.anthropic.com β | 2026-07-28 | to verify |
| OSWorld-Verified | www.anthropic.com β | 2026-07-28 | to verify |
| Mozilla Firefox exploit evaluation | www.anthropic.com β | 2026-07-28 | verified |
| Claude Sonnet 5 Skips Priority Tier: What the Service-Tier Gap Means for Latency-Sensitive Routing Teams | TheRouter news β | 2026-07-28 | verified |
| Claude Sonnet 5 Launches as Anthropic's Most Agentic Sonnet: What the Introductory Pricing Window Means for Routing Teams | TheRouter news β | 2026-07-28 | verified |
| Claude Sonnet 5's Three Breaking API Changes: What Every Operator Must Audit Before Migrating | TheRouter news β | 2026-07-28 | verified |
| Is Claude Sonnet 5 a drop-in replacement for Claude Sonnet 4.6? | platform.claude.com β | 2026-07-28 | to verify |
| What does Claude Sonnet 5 cost through TheRouter? | platform.claude.com β | 2026-07-28 | to verify |
| Does Claude Sonnet 5 support Priority Tier? | platform.claude.com β | 2026-07-28 | to verify |
| Should I set temperature on Claude Sonnet 5? | platform.claude.com β | 2026-07-28 | to verify |
| How should routing teams test the new tokenizer? | www.anthropic.com β | 2026-07-28 | to verify |