anthropic/claude-sonnet-4.6

Anthropic: Claude Sonnet 4.6

Context length
1000K
Input / 1M tokens
$3.00
Output / 1M tokens
$15.00
Released
2026-02-17
Modality
text+image+file->text

About Anthropic: Claude Sonnet 4.6

Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, end-to-end project management with...

Call Anthropic: Claude Sonnet 4.6

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

Anthropic keys

OpenRouter keys

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