Anthropic
Claude Sonnet 5.5
Anthropic's Sonnet 5.5 for everyday coding, document creation, and rapid iteration, with adaptive thinking enabled by default
Context Length1M tokens; standard rates across the full window
Max Output128K tokens
MultimodalText and image input; text output
Pricing & Specs
๐ฐ Pricing
Input$2 / M tokens
Output$10 / M tokens
Cache Write$4 / M tokens
Cache Hit$0.20 / M tokens
โ๏ธ Specs
Context Length1M tokens; standard rates across the full window
Max Output128K tokens
MultimodalText and image input; text output
Adaptive ThinkingOn by default; omit thinking and use output_config.effort to control depth (Claude API default: high)
Tool CallingUse tool_choice=auto; forced any/tool choices are unsupported
Cache Write BillingThis service uses the 1h cache-write rate ($4 / MTok) for both 5m and 1h cache writes
Turn Off Up-front ThinkingSet thinking.type=between_tools with low, medium, or high effort; disabled is unsupported
API CompatibilityClaude Messages API; Claude Code
Release DateSeptember 28, 2026
Knowledge CutoffJune 2026
API Examples
Python
import anthropic
client = anthropic.Anthropic(api_key="YOUR_API_KEY", base_url="https://api.xairouter.com")
message = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=4096,
messages=[{"role": "user", "content": "Hello, Claude!"}],
)
for block in message.content:
if block.type == "text":
print(block.text)
cURL
curl https://api.xairouter.com/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"claude-sonnet-5-5","max_tokens":4096,"messages":[{"role":"user","content":"Hello, Claude!"}]}'
Developer Assist
export ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY
export ANTHROPIC_BASE_URL=https://api.xairouter.com
claude --model claude-sonnet-5-5
Official references (verified September 30, 2026): Claude Sonnet 5.5 ยท Anthropic Pricing.
For existing integrations, review the Sonnet 5.5 thinking and tool-calling changes.