GLM 5 API pricing
Z.ai · z-ai/glm-5 · synced November 22, 2026
Over six months old. Z.ai's newest model is GLM 5.3 FlashX Legal.
GLM 5 costs $1 per million input tokens and $3.20 per million output tokens, with cached input at $0.20 (November 2026). For a developer using it as a daily coding agent, that works out to roughly $7–$182 a month, and building a SaaS MVP with it lands around $18–$456 in tokens.
- Input
- $1 / 1M
- Output
- $3.20 / 1M
- Cache read
- $0.20 / 1M
- Batch
- not listed
- Context
- 205k tokens
- Max output
- 131k tokens
- Released
- Feb 2026
- Tools / reasoning
- tools · reasoning
What it costs in practice
A month of AI coding
One developer running a coding agent daily, 20M–200M tokens.
- Low
- $7
- 20M tokens
- Expected
- $35
- 60M tokens
- High
- $182
- 200M tokens
Building a SaaS MVP
Stripe billing, OAuth, webhooks: the estimator's SaaS preset.
- Low
- $18
- 50M tokens
- Expected
- $87
- 150M tokens
- High
- $456
- 500M tokens
Assumptions are on the methodology page. Price your own project →
Similar cost, other providers
| Model | Provider | Input /1M | Output /1M | Cache read | Context | Coding month* | Released |
|---|---|---|---|---|---|---|---|
| GPT-6.1 Terra Pro | OpenAI | $1 | $5 | $0.05 | 1.1M | $6–$212 | Oct 2026 |
| GPT-6.1 Terra | OpenAI | $1 | $5 | $0.05 | 1.1M | $6–$212 | Oct 2026 |
| DeepSeek V4 Pro 0813 | DeepSeek | $1.32 | $3.96 | $0.044 | 1M | $6–$215 | Aug 2026 |
| Kimi K3.1 Pro | Moonshot AI | $0.2403 | $8.40 | $0.20 | 1M | $9–$240 | Oct 2026 |
| Nano Banana 2 (Gemini 3.1 Flash Image) | $0.50 | $3 | — | 131k | $12–$160 | Jun 2026 | |
| Qwen4 Max | Qwen | $1.43 | $4.28 | $0.0712 | 1M | $7–$234 | Nov 2026 |
Other Z.ai models
| Model | Input /1M | Output /1M | Cache read | Context | Coding month* | Released |
|---|---|---|---|---|---|---|
| GLM 5.3 FlashX Legal | $0.37 | $1.25 | $0.075 | 1M | $3–$69 | Nov 2026 |
| GLM 5.3 Prime | $1.68 | $5.28 | $0.336 | 1M | $12–$304 | Sep 2026 |
| GLM 5.3 FlashX | $0.37 | $1.25 | $0.075 | 1M | $3–$69 | Sep 2026 |
| GLM 5.3 Flash | $0.15 | $0.50 | $0.03 | 1M | $1–$28 | Aug 2026 |
| GLM 5.3 | $0.0699 | $1.40 | $0.0689 | 1M | $2–$46 | Aug 2026 |
| GLM 5.2 | $0.62 | $2.42 | $0.14 | 1M | $5–$125 | Jun 2026 |
Frequently asked questions
How much does GLM 5 cost?
GLM 5 costs $1 per million input tokens and $3.20 per million output tokens, with cached input at $0.20 (November 2026). For a developer using it as a daily coding agent, that works out to roughly $7–$182 a month, and building a SaaS MVP with it lands around $18–$456 in tokens.
Is GLM 5 cheaper than similar models?
The closest models by real coding cost are GPT-6.1 Terra Pro (OpenAI, $1/$5), GPT-6.1 Terra (OpenAI, $1/$5), DeepSeek V4 Pro 0813 (DeepSeek, $1.32/$3.96). Per-token price is only half the story: a model that needs fewer retries can cost less overall.
Why is the estimate a range?
Agentic coding spend varies more than 10× between runs of the same task. Cache hit rate, retries and how much log output goes back into context decide where you land, so we show low, expected and high rather than one number.
Prices are OpenRouter list prices from openrouter.ai/models, which normally match Z.ai's own. Estimates are for planning, not quotes.