Claude Sonnet 4.6: Pricing, Context, and Benchmarks

Claude Sonnet 4.6 is Anthropic's Claude 4 model released on 2026-03-12. It runs on a 200K-token context window, priced at $3.00/M input and $15.00/M output. The workhorse Claude — what most production teams default to. 200K context, strong coding, fast streaming.

Input
$3.00/M
Output
$15.00/M
Cached input
$0.3000/M
Context
200K
Max output
64K

Specifications

ProviderAnthropic
FamilyClaude 4
Released2026-03-12
Statusactive
Context window200K tokens
Max output64K tokens
Modalitiestext image
Capabilities function calling json mode vision streaming tool use
Tokenizerclaude-3
API endpointhttps://api.anthropic.com/v1/messages
DocumentationOfficial docs ↗
Last updated2026-05-29

Benchmark scores

BenchmarkCategoryScoreMeasuredSource
HumanEval coding 92.0 2026-03-12
Aider Polyglot coding 74.0 2026-03-12
SWE-bench Verified coding 72.5 2026-03-12

Scores reflect single measurements on the date shown. Reproducibility varies; consult the linked source for methodology. Use the comparison tool for side-by-side analysis.

What this model is good for

Based on benchmark scores and capability fit, Claude Sonnet 4.6 ranks well for:

  • Code Generation — rank #2. The default. Strong coding plus best price/performance in the Claude line.
  • Agentic Workflows — rank #2. Default agent loop model for most teams. Cheaper Opus alternative.
  • Document Q&A / RAG — rank #2. Best general-purpose model for RAG when citations are added via prompting.
  • Long Context Summarization — rank #4. 200K context limits very long documents but quality at that size is best in class.

Cost calculator

For 1,000 tokens of input and 1,000 tokens of output per call, this model costs $0.0180 per call. For typical usage:

WorkloadTokens / call (in/out)$/call$/1K calls$/1M calls
Short Q&A 200 / 100 $0.002100 $2.10 $2,100
Standard chat 1K / 500 $0.010500 $10.50 $10,500
RAG with retrieval 4K / 500 $0.019500 $19.50 $19,500
Long doc summary 20K / 1K $0.075000 $75.00 $75,000
Long context (100K input) 100K / 2K $0.322500 $322.50 $322,500

For more precise estimates including caching discounts, use the LLM API Cost Calculator.

Other Anthropic models

Common comparisons

API setup

curl https://api.anthropic.com/v1/messages \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-4-6", "messages": [{"role": "user", "content": "Hello"}]}'

See the official documentation for the full request/response schema. For pre-flight token counting before paying, use the appropriate token counter.