z ai
Z.ai: GLM 5.2 API Pricing
Z.ai: GLM 5.2 costs $0.966 per 1M input tokens and $3.04 per 1M output tokens (cache reads: $0.193). Context window: 1.0M. Prices verified 2026-08-23 · source
Input / 1M tokens
$0.966
Output / 1M tokens
$3.04
Context window
1.0M
Max output
131K
What would Z.ai: GLM 5.2 cost you per month?
| Workload | Requests/mo | Avg tokens (in/out) | Est. monthly cost |
|---|---|---|---|
| Light chatbot | 10,000 | 800 / 400 | $19.87 |
| Coding agent | 5,000 | 8,000 / 2,000 | $69.00 |
| RAG pipeline | 30,000 | 4,000 / 500 | $161.46 |
| Doc summarizer | 2,000 | 20,000 / 1,000 | $44.71 |
Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.
About Z.ai: GLM 5.2
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...