Claude Sonnet 4.6 (legacy)

Sonnet 4.6 kept for backward compat. Sonnet 5 has the same price with 1M context and adaptive thinking.

ChatAnthropic200k tokens$3.2702 / $16.3509 · 1M

anthropic/claude-sonnet-4-6

Context
200k tokens
Completion cap
Tools
Yes
JSON
Yes
ZDR
Verified

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is Claude Sonnet 4.6 (legacy)?
Sonnet 4.6 kept for backward compat. Sonnet 5 has the same price with 1M context and adaptive thinking. Claude Sonnet 4.6 (legacy) runs on the Geek Hub API (OpenAI-compatible). Model id: anthropic/claude-sonnet-4-6.
Is Claude Sonnet 4.6 (legacy) free?
No. Input is $3.2702 per 1M tokens and output is $16.3509 per 1M tokens on Geek Hub (markup included).
What is the context length of Claude Sonnet 4.6 (legacy)?
Claude Sonnet 4.6 (legacy) has a 200k tokens context window.
Does Claude Sonnet 4.6 (legacy) support tool calling and structured outputs?
Claude Sonnet 4.6 (legacy) accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.

More models from Anthropic