GLM-5.2 API Pricing

Short answer

GLM-5.2 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens . Context window: 1,048,576. Last verified 2026-06-17 from openrouter.ai. Confidence: Verified.

GLM-5.2 is Zhipu's open-weight (MIT) flagship for long-horizon autonomous coding — a 744B-param MoE with a 1M-token context window.

Input
$1.40 /1M
Output
$4.40 /1M
Cached input
/1M
Input pricing$1.40
Output pricing$4.40

Limits & capabilities

Context window1,048,576
Max output131,072
Modalitytext input/output
ChannelOpenRouter
ProviderZhipu

Best for

Open weightCodingReasoningAgentic
Open-weight (MIT); USD-native pricing on Z.ai. Z.ai also sells a separate non-token GLM Coding Plan ($10/$30/$80 per month). GLM-5.1 prices identically; GLM-4.7 is the cheaper prior generation.
Last checked Verified

More from Zhipu

Related comparisons