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

Z.ai: GLM 5.1 API Pricing

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

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

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

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

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

Compare Z.ai: GLM 5.1 with other models

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

Frequently asked questions

How much does Z.ai: GLM 5.1 cost?

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

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

Z.ai: GLM 5.1 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.1?

Cheaper models include OpenAI: GPT-5.1 (batch) ($0.625 in / $5 out), OpenAI: GPT-5 (batch) ($0.625 in / $5 out), Mistral: Mistral Large 4 ($1.36 in / $4.18 out). See the full list on this page.

Is Z.ai: GLM 5.1 free to use?

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

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