Skip to content

Claude Sonnet 4

Tools
anthropic/claude-sonnet-4

Vision · 1M context · May 2025 · 2 upstreams

Claude Sonnet 4 is Anthropic's versatile model combining strong reasoning, coding and broad instruction following. It has a 1M-token context window, 64,000 max output tokens, tool use, and text, image and file input.

Needs your own keyTo use Claude Sonnet 4, add a key from OpenCode Zen or Cline. AnyRouter adds no fee.
context
1M
input / 1M (list)
$3.00
output / 1M (list)
$15.00
routes
2
speed, 24h
No data yet

Upstreams

2
  1. 1OpenCode ZenYour keynot addedBilled to your key
  2. 2ClineYour keynot addedBilled to your key

Quick start

curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-4",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'

Details

Owner
Anthropic
Kind
Vision
Released
May 2025
Context
1M
Data policy
Provider retention
Endpoint
/api/v1/chat/completions