Home › Providers › z-ai › Z.ai: GLM 5

Z.ai: GLM 5 API Pricing

Z.ai: GLM 5 is an API model from z-ai. It costs $1 per 1M input tokens and $3.2 per 1M output tokens, with cached input at $0.2. Its context window is 204,800 tokens with up to 131,072 output tokens. A workload of 10M input + 2M output tokens costs about $16.4 per month.
Input
$1
per 1M tokens
Output
$3.2
per 1M tokens
Cached input
$0.2
per 1M tokens
Context window
204K
204,800 tokens
Blended (80/20)
$1.44
per 1M tokens

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...

How much does Z.ai: GLM 5 cost for a real workload?

At 10M input + 2M output tokens per month, Z.ai: GLM 5 costs about $16.4 ($10 input + $6.4 output). Try your own volumes in the cost calculator.

What are cheaper alternatives to Z.ai: GLM 5?

Compare Z.ai: GLM 5 with other models

Z.ai: GLM 5 vs Z.ai: GLM 5.3 FlashZ.ai: GLM 5 vs Z.ai: GLM 5.3 Flash (batch)Z.ai: GLM 5 vs Z.ai: GLM 4.7 FlashZ.ai: GLM 5 vs Z.ai: GLM 4.5 AirZ.ai: GLM 5 vs Z.ai: GLM 4.6VZ.ai: GLM 5 vs Z.ai: GLM 5.3

Frequently asked questions

How much does Z.ai: GLM 5 cost?

Z.ai: GLM 5 costs $1 per 1M input tokens and $3.2 per 1M output tokens (list price, snapshot October 21, 2026). At 10M input + 2M output tokens per month that is about $16.4.

What is the context window of Z.ai: GLM 5?

Z.ai: GLM 5 has a context window of 204,800 tokens and can return up to 131,072 output tokens per response.

What are cheaper alternatives to Z.ai: GLM 5?

Cheaper models include MoonshotAI: Kimi K2.6 ($0.65 in / $3.41 out), MoonshotAI: Kimi K2.7 Code ($0.6712 in / $3.35 out), Relace: Relace Search ($1 in / $3 out). See the full list on this page.

Is Z.ai: GLM 5 free to use?

No. Z.ai: GLM 5 is a paid model at $1 input / $3.2 output per 1M tokens. 20 free models are listed on the free models page.

Provider: z-ai · Model ID: z-ai/glm-5 · Modality: text->text · Price snapshot October 21, 2026, refreshed daily. How we collect prices