LiteLLMModels

Claude Sonnet 5.5 vs GLM 5.3

As of October 21, 2026, Claude Sonnet 5.5 costs 43% more per input token than GLM 5.3 ($2.00 vs $1.40 per 1M), and both have a 1M-token context window.

Prices from LiteLLM's price fileChecked

Claude Sonnet 5.5 vs GLM 5.3 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 5.5GLM 5.3
Input, per 1M tokens$2.00$1.40
Output, per 1M tokens$10.00$4.40
Cache read, per 1M tokens$0.10$0.26
Cache write, per 1M tokens$2.50$0
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 LiteLLM717
Price shown is fromAnthropicZ.ai
Added to LiteLLMSeptember 28, 2026August 27, 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 5.5GLM 5.3
Coding and agents
FrontierCode52.1% (xhigh)40.1% (max)
FrontierSWE61.9% (max)30.2% (max)
APEX-Agents75.5% (max)56.6%
Reasoning and knowledge
GPQA Diamond95.6% (max)90.9% (max)
SimpleQA Verified46.5% (max)41.0% (max)
Math
FrontierMath (tiers 1-3)88.8% (max)68.8% (max)
FrontierMath (tier 4)80.5% (max)29.3% (max)
OTIS Mock AIME 2024-2025100.0% (max)91.1% (max)

When to pick which

Pick GLM 5.3 for

  • Costs 30% less per input token: $1.40 vs $2.00 per 1M.
  • Available from 17 providers through LiteLLM, vs 7.

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

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

# GLM 5.3
response = completion(model="zai/glm-5.3", messages=messages)

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

FAQ

Which is cheaper, Claude Sonnet 5.5 or GLM 5.3?

GLM 5.3 is cheaper at 3 input tokens per output token: $2.15 per 1M tokens blended ($1.40 input, $4.40 output), versus $4.00 ($2.00 and $10.00) for Claude Sonnet 5.5, as of October 21, 2026.

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

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

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

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