Claude Sonnet 4.6
Anthropic
anthropic/claude-sonnet-4-6
Top choice for Claude Code
Context Window
200K
200,000 tokens
Max Output
16K
16,000 tokens
About this model
Claude Sonnet 4.6 is Anthropic's most popular model and the default choice for Claude Code and Cursor. It achieves the optimal balance of capability and cost across programming, reasoning, and everyday conversation.
200K token context window with vision support. Prompt Caching with cache read at 1/10 of standard input pricing, enabling significant cost savings in repetitive conversations.
The go-to general-purpose model for the vast majority of developers.
Highlights
Claude Code/Cursor default
Best balance of power & cost
Prompt Caching
200K context
Best For
Claude Code programmingCursor AI assistanceDaily dev tasksConversation & analysis
2026-02-24TransformerProprietary
Capabilities
ChatVisionReasoningCodepdftoolscache
Aliases
claude-sonnet-4-6claudeclaude-latestclaude-sonnetsonnetsonnet-4sonnet-4-6Pricing (per 1M tokens)
| Pricing (per 1M tokens) | / 1M tokens |
|---|---|
| Input / 1M | $3.15 |
| Output / 1M | $15.75 |
| Cache Read | $0.32 |
| Cache Write | $3.94 |
Final prices shown
Quick Start
main.py
import anthropic client = anthropic.Anthropic( base_url="https://api.chuizi.ai/anthropic", api_key="ck-your-key-here", ) message = client.messages.create( model="claude-sonnet-4-6", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}] ) print(message.content[0].text)