glm-5.2 · Z.ai (Zhipu)
Z.ai's long-context open-weight reasoning model for coding and agentic work.
Last checked Aug 26, 2026. Calculations use the listed base rates; provider-specific tiers, cache writes, batch pricing, and long-context rules may differ. Note: Official Z.ai API rate per 1M tokens: $1.40 input, $4.40 output, and $0.26 cached input. Cached-input storage is listed as temporarily free. Confirm the current rate at the official provider source.
Quick answer
At the published base rate, GLM-5.2 (Z.ai) costs $1.40 per 1M input tokens and $4.40 per 1M output tokens. It supports a 1M context window and is currently marked ga.
Method & trust
This rate card uses the provider's listed base input, output, and cached-input prices. Workload tables below apply those rates to explicit token counts, cache assumptions, and request volumes; verify provider-specific tiers before committing budget.
Input
$1.40
per 1M tokens
Output
$4.40
per 1M tokens
Cached input
$0.26
per 1M tokens
Context window
1M
max output 131.1K
GLM-5.2 (Z.ai) cost calculator
What GLM-5.2 (Z.ai) costs per task
| Use case | Input tokens | Output tokens | Cost / request | Monthly @ 1K req/day |
|---|---|---|---|---|
| Customer support chatbot | 3,500 | 350 | $0.003647 | $109.41 |
| RAG / search-augmented answers | 8,000 | 500 | $0.00884 | $265.20 |
| AI coding assistant | 12,000 | 2,000 | $0.0174 | $521.76 |
| Document summarization | 25,000 | 600 | $0.0348 | $1,043.70 |
| Agentic workflow | 40,000 | 1,500 | $0.033 | $988.80 |
| Content generation | 800 | 1,200 | $0.006126 | $183.792 |
| Data extraction & tagging | 2,000 | 250 | $0.003444 | $103.32 |
| Translation | 5,000 | 5,500 | $0.0303 | $910.35 |
Assumes each use case's typical cacheable share of input. See full cost scenarios.
Benchmark scores
Third-party composite indices (0-100) via OpenRouter's model catalog, verified Aug 28, 2026. Coding per $$4.40 of output: 15.6.
Compare with alternatives
| Model | Input /M | Output /M | Context | Chat request* |
|---|---|---|---|---|
| GLM-5.2 (Z.ai) | $1.40 | $4.40 | 1M | $0.00684 |
| GPT-5.6 Solcompare | $5.00 | $30.00 | 1.1M | $0.035 |
| GPT-5.6 Terracompare | $2.00 | $12.00 | 1.1M | $0.014 |
| GPT-5.6 Lunacompare | $0.20 | $1.20 | 1.1M | $0.0014 |
| GPT-5.6 Cybercompare | $12.50 | $75.00 | 1.1M | $0.0875 |
| GPT-5.5 Standardcompare | $5.00 | $30.00 | 512K | $0.035 |
| GPT-5.5 Procompare | $30.00 | $180.00 | 512K | $0.21 |
| GPT-5.4 Workhorsecompare | $2.50 | $15.00 | 256K | $0.0175 |
| GPT-5.4 minicompare | $0.75 | $4.50 | 256K | $0.00525 |
*4,000 in + 800 out tokens, 50% cached input where available.
Related calculations
FAQ
GLM-5.2 (Z.ai) costs $1.40 per 1M input tokens and $4.40 per 1M output tokens, with cached input at $0.26 per 1M tokens. Verified Aug 26, 2026 against https://docs.z.ai/guides/overview/pricing.
GLM-5.2 (Z.ai) supports a 1,048,576-token context window with up to 131,072 output tokens per request, tokenized with glm_bpe.
At $1.40/M input and $4.40/M output, GLM-5.2 (Z.ai) sits below GPT-5.6 Sol ($5.00/M in, $30.00/M out) — see the comparison table for full-workload differences.