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

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateplatform.claude.com β†—2026-07-28verified
Claude API model idplatform.claude.com β†—2026-07-28verified
Context windowplatform.claude.com β†—2026-07-28verified
Max output tokensplatform.claude.com β†—2026-07-28verified
Pricingplatform.claude.com β†—2026-07-28verified
Prompt cachingplatform.claude.com β†—2026-07-28verified
Training data cutoffplatform.claude.com β†—2026-07-28verified
Reliable knowledge cutoffplatform.claude.com β†—2026-07-28verified
Reasoning controlsplatform.claude.com β†—2026-07-28verified
Unsupported controlsplatform.claude.com β†—2026-07-28verified
Priority Tierplatform.claude.com β†—2026-07-28verified
Tokenizer migrationwww.anthropic.com β†—2026-07-28verified
Deploymentplatform.claude.com β†—2026-07-28verified
Licenseβ€”β€”verified
BrowseCompwww.anthropic.com β†—2026-07-28to verify
OSWorld-Verifiedwww.anthropic.com β†—2026-07-28to verify
Mozilla Firefox exploit evaluationwww.anthropic.com β†—2026-07-28verified
Claude Sonnet 5 Skips Priority Tier: What the Service-Tier Gap Means for Latency-Sensitive Routing TeamsTheRouter news β†—2026-07-28verified
Claude Sonnet 5 Launches as Anthropic's Most Agentic Sonnet: What the Introductory Pricing Window Means for Routing TeamsTheRouter news β†—2026-07-28verified
Claude Sonnet 5's Three Breaking API Changes: What Every Operator Must Audit Before MigratingTheRouter news β†—2026-07-28verified
Is Claude Sonnet 5 a drop-in replacement for Claude Sonnet 4.6?platform.claude.com β†—2026-07-28to verify
What does Claude Sonnet 5 cost through TheRouter?platform.claude.com β†—2026-07-28to verify
Does Claude Sonnet 5 support Priority Tier?platform.claude.com β†—2026-07-28to verify
Should I set temperature on Claude Sonnet 5?platform.claude.com β†—2026-07-28to verify
How should routing teams test the new tokenizer?www.anthropic.com β†—2026-07-28to verify
Help & contact