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.

Loading model prices

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

Batch availableFlex available

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

Frequently asked questions

How does GLM-5.2 compare to Gemini 3.6 Flash on price?
Gemini 3.6 Flash is cheaper on both input ($0.75 vs $1.40 per million) and output ($3.75 vs $4.40 per million). Gemini 3.6 Flash has the stronger cache discount (90% vs 81%), so the gap widens for cache-heavy workloads.
How much does GLM-5.2 cost per million output tokens?
GLM-5.2 charges $4.40 per million output tokens, about 17% above Gemini 3.6 Flash's $3.75/M on output cost. Its 81% prompt caching discount brings cached input to $0.26 per million, less aggressive than Gemini Flash's 90% ($0.075/M). There is no batch discount on GLM-5.2.