anthropic/claude-sonnet-5

Anthropic: Claude Sonnet 5

Context length
1000K
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Released
2026-06-30
Modality
text+image+file->text

About Anthropic: Claude Sonnet 5

Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max,...

Call Anthropic: Claude Sonnet 5

Via OpenRouter: one base URL for every provider.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-5",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Direct on Anthropic:

curl https://api.anthropic.com/chat/completions \
  -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Anthropic keys

OpenRouter keys

OpenRouter keys work for anthropic/claude-sonnet-5 regardless of the upstream provider.