LiteLLMModels

Claude Sonnet 5 vs Claude Sonnet 5.5

As of October 21, 2026, Claude Sonnet 5 and Claude Sonnet 5.5 cost the same: $2.00 per 1M input tokens and $10.00 per 1M output tokens, and both have a 1M-token context window.

Prices from LiteLLM's price fileChecked

Claude Sonnet 5 vs Claude Sonnet 5.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 October 21, 2026.
Claude Sonnet 5Claude Sonnet 5.5
Input, per 1M tokens$2.00$2.00
Output, per 1M tokens$10.00$10.00
Cache read, per 1M tokens$0.20$0.10
Cache write, per 1M tokens$2.50$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 LiteLLM97
Price shown is fromAnthropicAnthropic
Added to LiteLLMJune 30, 2026September 28, 2026

Cheapest provider for each

Benchmark scores

From the Epoch AI Benchmarking Hub (CC BY 4.0), data as of September 29, 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 5Claude Sonnet 5.5
Overall
Epoch Capabilities Index156.9166.2
Coding and agents
FrontierCode42.7%52.1% (xhigh)
APEX-Agents54.5%75.5% (max)
Reasoning and knowledge
GPQA Diamond90.5% (xhigh)95.6% (max)
SimpleQA Verified33.7% (max)46.5% (max)
Math
FrontierMath (tiers 1-3)65.6% (max)88.8% (max)
FrontierMath (tier 4)29.3% (max)80.5% (max)
OTIS Mock AIME 2024-202594.7% (xhigh)100.0% (max)

Call Claude Sonnet 5 or Claude Sonnet 5.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 5
response = completion(model="claude-sonnet-5", messages=messages)

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

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

FAQ

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

They cost the same: $2.00 per 1M input tokens and $10.00 per 1M output tokens, as of October 21, 2026.

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

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

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

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