Back to Models

Claude Opus 4

anthropicanthropic/claude-opus-4

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

Extended thinking

Enable extended thinking via the reasoning parameter. Opus 4 supports up to 64 k thinking tokens.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-opus-4","messages":[{"role":"user","content":"Solve step by step"}],"reasoning":{"effort":"high"}}'

Recent coverage

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datewww.anthropic.com β†—2026-06-10verified
Anthropic API model IDplatform.claude.com β†—2026-06-10verified
AWS Bedrock model IDplatform.claude.com β†—2026-06-10verified
Vertex AI model IDplatform.claude.com β†—2026-06-10verified
Context windowplatform.claude.com β†—2026-06-10verified
Max output tokensplatform.claude.com β†—2026-06-10verified
Reasoning modeswww.anthropic.com β†—2026-06-10verified
Training cutoffβ€”β€”unknown
Licenseβ€”β€”verified
Lifecycle statusplatform.claude.com β†—2026-06-10verified
SWE-bench Verifiedwww.anthropic.com β†—2026-06-10verified
Terminal-benchwww.anthropic.com β†—2026-06-10verified
GPQA Diamondwww.anthropic.com β†—2026-06-10verified
MMMLUwww.anthropic.com β†—2026-06-10verified
Is Claude Opus 4 still available on TheRouter?platform.claude.com β†—2026-06-10to verify
How does Claude Opus 4 compare to Sonnet 4 launched at the same time?www.anthropic.com β†—2026-06-10to verify
Help & contact