GLM-5.2 API Pricing & Cost Calculator
By TechCompare · Updated · How we check
GLM-5.2 fits high-volume agentic and document workloads: output costs $4.40 per million and the context window is 1M tokens.
Calculator
Cost Comparison
Based on 100,000 input tokens (50% cached), 5,000 output tokens, and 100 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.
GLM-5.2 is Z.ai's (Zhipu) model with a 1-million-token context window, priced below GPT-5.6 Terra.
Z.ai: GLM 5.2
Cheapest host: SiliconFlow (fp8)
- Input
- $1.40
- Output
- $4.40
- Cached
- $0.26
per 1M tokens
Price checked 2026-11-12
How this is calculated
GLM-5.2 is priced at $1.40 per million input tokens and $4.40 per million output tokens on Z.ai's official list, with a prompt caching discount of about 81% ($0.26 per million cached reads). That puts it above Gemini 3.6 Flash ($0.75/$3.75) on both axes and below GPT-5.6 Terra's $2 list price on input.
Verdict
GLM-5.2's $1.40/M input and $4.40/M output sit above Gemini 3.6 Flash ($0.75/$3.75) on both rows, with the 81% cache discount dropping cached input to $0.26/M.
The 1M context window is what makes the value case: long-document analysis, agentic loops with large persistent context blocks, and RAG over substantial corpora fit in a single call without chunking. The trade against Gemini Flash starts with the shallower cache discount (81% vs 90%), and GLM-5.2 has no published batch discount. Flash is cheaper on every row, so GLM-5.2 has to win on quality or context behavior for your workload rather than on price.
More API Standalones scenarios
Related guides
Frequently asked questions
How does GLM-5.2 compare to Gemini 3.6 Flash on price?
How much does GLM-5.2 cost per million output tokens?
Related tools
LLM VRAM Calculator
Calculate the VRAM needed to run or fine-tune any LLM at any quantization.
Use toolPower Cost Estimator
Estimate annual electricity costs for your PC, Server, or TV.
Use toolData Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use tool