Back to Models

Claude Sonnet 4

anthropicanthropic/claude-sonnet-4

How TheRouter serves this differently from the vendor

As the vendor operates it

Anthropic's lifecycle table lists the native Claude API id 'claude-sonnet-4-20250514' as retired on Anthropic-operated platforms after a 2026-04-14 deprecation notice and 2026-06-15 retirement date. Anthropic recommends migrating to 'claude-sonnet-4-6'.

On TheRouter

TheRouter still keeps the public model page and OpenAI-compatible id 'anthropic/claude-sonnet-4' for customers who need a stable reference, but new integrations should route to 'anthropic/claude-sonnet-4.6' because the upstream retirement can affect live availability and support guarantees.

API guide

Chat completion

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-4","messages":[{"role":"user","content":"Hello"}]}'

Extended thinking

Enable extended thinking via the reasoning parameter (low/medium/high) or by including a thinking budget in the request.

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-4","messages":[{"role":"user","content":"Solve this step by step"}],"reasoning":{"effort":"high"}}'

Recent coverage

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datewww.anthropic.com β†—2026-05-25verified
Anthropic model idaws.amazon.com β†—2026-05-25verified
Training cutoffβ€”β€”unknown
Context windowplatform.claude.com β†—2026-09-10verified
Max output tokenswww.anthropic.com β†—2026-05-25verified
Reasoning modeswww.anthropic.com β†—2026-05-25verified
Deploymentaws.amazon.com β†—2026-05-25verified
Licenseβ€”β€”verified
SWE-bench Verifiedwww.anthropic.com β†—2026-05-25verified
GPQA Diamondwww.anthropic.com β†—2026-05-25verified
MMMLUwww.anthropic.com β†—2026-05-25verified
MMMUwww.anthropic.com β†—2026-05-25verified
AIMEwww.anthropic.com β†—2026-05-25verified
OSWorldwww.anthropic.com β†—2026-05-25verified
Anthropic deprecates Claude Sonnet 4 on the Claude APIplatform.claude.com/model-deprecations β†—2026-09-10verified
Claude Sonnet 4.5 released at the same $3/$15 Sonnet price tieranthropic.com/news β†—2026-09-10verified
Should I start a new TheRouter integration on Claude Sonnet 4?platform.claude.com β†—2026-09-10to verify
What changed since the original Sonnet 4 launch page?www.anthropic.com β†—2026-09-10to verify
Does TheRouter's OpenAI-compatible API surface change the Anthropic retirement status?platform.claude.com β†—2026-09-10to verify
Help & contact