Claude Sonnet 4.6 API
Anthropic's Sonnet 4.6 with a 1M context window and image input
About this model
Claude Sonnet 4.6 is a mid-tier model from Anthropic that follows Sonnet 4.5 and comes before Sonnet 5. Anthropic’s documentation lists it with a 1M-token context window and 128K output tokens, and notes that the older manual extended-thinking mode is deprecated on it in favour of adaptive thinking.
It accepts text and image input. Choose it over Sonnet 4.5 when you need the larger context window; Anthropic recommends the newer Sonnet 5.5 for new work, so 4.6 mainly fits cases where you want to keep to a tested version.
The catalog lists a 1,000,000-token context window and vision.
Use cases
- Everyday coding
- Long documents
- Agent workflows
Input and output
- Input
- Text and images
- Output
- Text, tool calls
Developer
Anthropic
Official site of Anthropic- Developer
- Anthropic
- Type
- Conversation
- Context
- 1,000,000 tokens
- Capabilities
- Image input
Claude Sonnet 4.6 request example
Use https://gatelum.com/v1 as the base URL and pass anthropic/claude-sonnet-4.6 in the model field. You create the key in your account after signing up.
curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/chat/completions' \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "anthropic/claude-sonnet-4.6",
"messages": [
{
"role": "user",
"content": "Hi! Tell me about yourself in two sentences."
}
]
}
JSONClaude Code and Anthropic-protocol clients
For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=anthropic/claude-sonnet-4.6
claudeWhere to use Claude Sonnet 4.6
Guides with step-by-step instructions for the tools that support this model: