GLM 5 vs Step 5 Preview
As of November 23, 2026, GLM 5 and Step 5 Preview cost the same per input token ($1.00 per 1M), but GLM 5 costs 19% more per output token ($3.20 vs $2.70) and has a 200K-token context window versus 1M.
GLM 5 vs Step 5 Preview side by side
| GLM 5 | Step 5 Preview | |
|---|---|---|
| Input, per 1M tokens | $1.00 | $1.00 |
| Output, per 1M tokens | $3.20 | $2.70 |
| Cache read, per 1M tokens | $0.20 | $0.10 |
| Cache write, per 1M tokens | $0 | – |
| Context window | 200,000 tokens | 1,024,000 tokens |
| Max output | 128,000 tokens | 131,072 tokens |
| Image input | – | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 10 | 5 |
| Price shown is from | Z.ai | EmpirioLabs AI |
| Added to LiteLLM | February 2026 | October 24, 2026 |
Cheapest provider for each
- GLM 5: DeepInfra at $0.60 input and $2.08 output per 1M tokens (
deepinfra/zai-org/GLM-5) - Step 5 Preview: EmpirioLabs AI at $1.00 input and $2.70 output per 1M tokens (
empiriolabs/step-5-preview)
When to pick which
Pick GLM 5 for
- Available from 10 providers through LiteLLM, vs 5.
Pick Step 5 Preview for
- Costs 16% less per output token: $2.70 vs $3.20 per 1M.
- Larger context window: 1,024,000 vs 200,000 tokens.
From differences in the data above only; where the data is equal, no reason is given.
Call GLM 5 or Step 5 Preview 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.
from litellm import completion
messages = [{"role": "user", "content": "Hello!"}]
# GLM 5
response = completion(model="zai/glm-5", messages=messages)
# Step 5 Preview
response = completion(model="empiriolabs/step-5-preview", messages=messages)
# GLM 5, falling back to Step 5 Preview if the call fails
response = completion(model="zai/glm-5", messages=messages, fallbacks=["empiriolabs/step-5-preview"])FAQ
Which is cheaper, GLM 5 or Step 5 Preview?
Step 5 Preview is cheaper at 3 input tokens per output token: $1.425 per 1M tokens blended ($1.00 input, $2.70 output), versus $1.55 ($1.00 and $3.20) for GLM 5, as of November 23, 2026.
Which has the larger context window, GLM 5 or Step 5 Preview?
Step 5 Preview has the larger context window: 1,024,000 tokens, versus 200,000 for GLM 5.
Can I switch from GLM 5 to Step 5 Preview without changing my code?
Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "zai/glm-5" to "empiriolabs/step-5-preview", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.