GLM 5.2: benchmarks, pricing and context window
GLM 5.2 is an AI model by Z.AI, released on Jun 16, 2026. It processes up to 1M tokens of context. Prices start at $0.007 per million input tokens and $5.80 per million output tokens. In the nrzVS ranking it scores 28.8 – rank 58 of 1174.
Show more
GLM-5.2 is Z.AI's flagship foundation model built for long-horizon tasks, delivering a solid 1M-token context that stably sustains long, messy coding-agent trajectories. It improves substantially over GLM-5.1, becoming the strongest open-source model on standard coding benchmarks (81.0 on Terminal-Bench 2.1 and 62.1 on SWE-bench Pro) and the highest-ranked open-source model across long-horizon coding benchmarks (FrontierSWE, PostTrainBench, SWE-Marathon). It introduces flexible thinking effort levels (High and Max) to balance capability against latency and compute. Architecturally, GLM-5.2 proposes IndexShare, which reuses one lightweight indexer across every four sparse-attention (DSA) layers to cut per-token FLOPs by 2.9x at 1M context, and an improved MTP layer for speculative decoding that raises acceptance length by up to 20%. Released under a pure MIT open-source license with weights available on HuggingFace and ModelScope, it supports transformers, vLLM, SGLang, xLLM, and ktransformers, with 1M input context, 128K max output, thinking mode, function calling, structured output, context caching, and MCP integration.
nrzVS Score
28.8
Rank 58 of 1174
Modalities
Cost
$1.46
per 1M tokens · 3:1 input:output
$0.007 Input · $5.80 Output
Context
1Mtokens
≈ 1.6k pages of text
Output: 1M tokens
Capability tiers
Standing in each nrzVS category: the share of all ranked models that GLM 5.2 beats.
Top 12%
Rank 60 of 525 · nrzVS Score 23.3
Top 17%
Rank 101 of 602 · nrzVS Score 20.2
Top 15%
Rank 54 of 376 · nrzVS Score 20.3
Top 17%
Rank 56 of 339 · nrzVS Score 20.9
Top 22%
Rank 110 of 501 · nrzVS Score 13.8
Top 16%
Rank 53 of 348 · nrzVS Score 22.8
Top 6%
Rank 35 of 623 · nrzVS Score 28.9
112
GLM 5.2 benchmarks
Every result nrzVS has for GLM 5.2. The bar shows the percentile among all models tested on the benchmark.
τ²-bench results
BenchLM
99.1
P100
AIME26
BenchLM
99.2
P98
AIME 2026
LLM Stats
0.992
P98
PostTrainBench v1
BenchLM
34.3
P96
MMAnswerBench
BenchLM
91.0
P95
IMO-AnswerBench
LLM Stats
0.91
P93
Arena Text
Arena (LMArena)
1475
P90
AA-Omniscience Hallucination Rate ↓
BenchLM
26.3
P90
ResearchClawBench
BenchLM
20.7
P89
GPQA
LLM Stats
0.912
P89
CritPt
BenchLM
20.9
P87
Humanity's Last Exam
LLM Stats
0.547
P86
WeirdML
Epoch AI (ECI)
0.701
P84
Design Arena · dataviz
OpenRouter
1275
P83
GPQA
BenchLM
91.2
P82
Longform Writing
EQ-Bench
77.9
P81
Design Arena · website
OpenRouter
1323
P80
AA-HLE
BenchLM
41.1
P80
Design Arena · codecategories
OpenRouter
1328
P79
Design Arena · uicomponent
OpenRouter
1271
P79
HMMT Nov 2025
BenchLM
94.4
P79
Design Arena · 3d
OpenRouter
1246
P79
AA-IFBench
BenchLM
73.3
P79
GPQA diamond
Epoch AI (ECI)
0.929
P78
GLM 5.2 pricing
GLM 5.2 costs $0.007 per million input tokens and $5.80 per million output tokens.
| Provider | Input | Cached input | Output | Context |
|---|---|---|---|---|
| DDeepInfra | $0.75 | $0.14 | $2.40 | 1M |
| FFireworks | $1.40 | – | $4.40 | 1M |
| FFriendliAI | $1.40 | $0.26 | $4.40 | 1M |
| NNovita | $1.40 | $0.26 | $4.40 | 1M |
| TTogether | $1.40 | – | $4.40 | 1M |
| ZZAI | $1.40 | – | $4.40 | 1M |
per 1M tokens · USD
GLM 5.2 context window
How much text GLM 5.2 can take in and write at once.
Input
1Mtokens
≈ 1.6k pages of text
Output
1Mtokens
≈ 1.6k pages of text
GLM 5.2 licence
GLM 5.2 is an open-weights model under the MIT licence: the weights can be downloaded and run on your own hardware.
✓ Commercial use allowed
GLM 5.2 vs other models
Compare GLM 5.2 side by side with similar models: score, benchmarks, price and context window.
Models like GLM 5.2
Models ranked just above and below GLM 5.2 in the nrzVS ranking.
Frequently asked questions
How good is GLM 5.2?+
GLM 5.2 reaches a nrzVS score of 28.8 – rank 58 of 1174 AI models, based on 131 benchmarks from 8 platforms.
When was GLM 5.2 released?+
GLM 5.2 was released by Z.AI on Jun 16, 2026.
Who created GLM 5.2?+
GLM 5.2 was developed by Z.AI.
How much does GLM 5.2 cost?+
GLM 5.2 costs $0.007 per million input tokens and $5.80 per million output tokens.
What licence does GLM 5.2 have?+
GLM 5.2 is an open-weights model under the MIT licence: the weights can be downloaded and run on your own hardware.
Is GLM 5.2 multimodal?+
No – GLM 5.2 works with text only.
How large is the context window of GLM 5.2?+
GLM 5.2 processes up to 1M tokens of input.