Z.ai: GLM 5.1 API pricing
$1.40 per 1M input tokens and $4.40 per 1M output tokens on OpenRouter. Context window: 204,800 tokens.
OpenRouter lists an expiration date for this model: Nov 20, 2026.
What it costs in practice
| Workload | Cost |
|---|---|
| Chatbot: 10,000 messages (1,500 in / 400 out tokens each) | $38.60 |
| RAG: 1,000 queries (8,000 in / 600 out each) | $13.84 |
| Summarize 100 long documents (50,000 in / 1,000 out each) | $7.44 |
Cross-check against the provider's list price
LiteLLM's price map lists zai/glm-5.1 (zai) at $1.40 in / $4.40 out per 1M tokens. Matches OpenRouter
Price history
No price change recorded since we started tracking on Nov 17, 2026. We check every 6 hours and log every change.
Run it yourself instead
The open weights are on Hugging Face. See the VRAM GLM 5.1 needs and which GPUs fit it →
Cheaper alternatives with similar context
Text models with at least 125K context and a lower blended price (75% input, 25% output). Price only, not a quality ranking.
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| Qwen: Qwen4 Max | $1.425 | $4.275 | 977K |
| DeepSeek: DeepSeek Pro Latest | $0.0999 | $8.00 | 1M |
| Google: Gemini 4 Carbon (batch) | $1.00 | $5.00 | 1M |
| OpenAI: GPT-6.1 Terra Pro | $1.00 | $5.00 | 1.0013580322265625M |
| OpenAI: GPT-6.1 Terra | $1.00 | $5.00 | 1.0013580322265625M |
| Meta: Muse Spark Open | $1.25 | $4.25 | 1M |
| Google: Gemini 4 Argon (batch) | $1.00 | $5.00 | 1M |
| OpenAI: GPT-6.1 Sol Pro (batch) | $1.00 | $5.00 | 1.0013580322265625M |
Source: OpenRouter listing via the public models API · LiteLLM price map (MIT). Prices checked Nov 17, 2026. Model ID z-ai/glm-5.1, listed Apr 7, 2026. Report an error.