claude-sonnet-4-6ChatExamples verified 2026-09-25Claude Sonnet 4.6
The previous Sonnet, same price and 1M context as Sonnet 5. For projects that need to pin the older version.
- Official price
- $3 / $15/ 1M tokensInput / output
- Context window
- 1M tokens1,000,000
Notes
- Anthropic protocol only: the Base URL has no /v1, and /v1/chat/completions returns 404.
Pricing
Official price in USD. Actual charge = official price × group multiplier.
- Input
- $3 / 1M tokens
- Cached input
- $0.30 / 1M tokens
- Output
- $15 / 1M tokens
Endpoints
- POST
/v1/messages - POST
/v1/messages/count_tokens