LiteLLMLiteLLM/ MODELS

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.

Prices from LiteLLM's price fileChecked

GLM 5 vs Step 5 Preview 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 23, 2026.
GLM 5Step 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 window200,000 tokens1,024,000 tokens
Max output128,000 tokens131,072 tokens
Image input–Yes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM105
Price shown is fromZ.aiEmpirioLabs AI
Added to LiteLLMFebruary 2026October 24, 2026

Cheapest provider for each

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.

Python SDK
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.