LiteLLMLiteLLM/ MODELS

Claude Sonnet 4.6 vs Claude Sonnet 5

As of November 10, 2026, Claude Sonnet 4.6 costs 50% more per input token than Claude Sonnet 5 ($3.00 vs $2.00 per 1M), and both have a 1M-token context window.

Prices from LiteLLM's price fileChecked

Claude Sonnet 4.6 vs Claude Sonnet 5 side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 10, 2026.
Claude Sonnet 4.6Claude Sonnet 5
Input, per 1M tokens$3.00$2.00
Output, per 1M tokens$15.00$10.00
Cache read, per 1M tokens$0.30$0.20
Cache write, per 1M tokens$3.75$2.50
Context window1,000,000 tokens1,000,000 tokens
Max output128,000 tokens128,000 tokens
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM1011
Price shown is fromAnthropicAnthropic
Added to LiteLLMFebruary 2026June 30, 2026

Cheapest provider for each

Benchmark scores

From the Epoch AI Benchmarking Hub (CC BY 4.0), data as of August 27, 2026. Some results were run by Epoch and others collected by Epoch from each benchmark's own leaderboard, linked in the first column. Each model's best reported reasoning setting is shown in brackets. Higher is better. Only benchmarks with a score for both models are shown.
BenchmarkClaude Sonnet 4.6Claude Sonnet 5
Overall
Epoch Capabilities Index152.8156.7
Coding and agents
FrontierCode24.3%42.7%
APEX-Agents43.0% (high)54.5%
Reasoning and knowledge
GPQA Diamond87.4% (32K)90.5% (xhigh)
SimpleQA Verified35.5% (high)33.7% (max)
Math
OTIS Mock AIME 2024-202585.8% (32K)94.7% (xhigh)

When to pick which

Pick Claude Sonnet 5 for

  • Costs 33% less per input token: $2.00 vs $3.00 per 1M.

From differences in the data above only; where the data is equal, no reason is given.

Call Claude Sonnet 4.6 or Claude Sonnet 5 with LiteLLM

Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.

Python SDK
from litellm import completion

messages = [{"role": "user", "content": "Hello!"}]

# Claude Sonnet 4.6
response = completion(model="claude-sonnet-4-6", messages=messages)

# Claude Sonnet 5
response = completion(model="claude-sonnet-5", messages=messages)

# Claude Sonnet 4.6, falling back to Claude Sonnet 5 if the call fails
response = completion(model="claude-sonnet-4-6", messages=messages, fallbacks=["claude-sonnet-5"])

FAQ

Which is cheaper, Claude Sonnet 4.6 or Claude Sonnet 5?

Claude Sonnet 5 is cheaper at 3 input tokens per output token: $4.00 per 1M tokens blended ($2.00 input, $10.00 output), versus $6.00 ($3.00 and $15.00) for Claude Sonnet 4.6, as of November 10, 2026.

Which has the larger context window, Claude Sonnet 4.6 or Claude Sonnet 5?

Both have a 1,000,000-token context window.

Can I switch from Claude Sonnet 4.6 to Claude Sonnet 5 without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "claude-sonnet-4-6" to "claude-sonnet-5", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.