Skip to main content

GLM-5.2 (max)

Z AIGLMOpen WeightMIT · Commercial OK

Description

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.

Release Date
2026-06-16
Parameters
753.0B
Context Length
1.0M
Modalities
text

Capability Radar

36
general
66
coding
90
reasoning
66
science
70
agents
0
multimodal

Rankings

Domain#RankScoreSource
Agentic Capability34
51.0
LS
Code Ranking71
83.0
AA
General Ranking31
78.0
AA
Science60
80.0
AA

Benchmark Scores (LLM Stats)

(LLM Stats (zeroeval))

Agents

Program Bench63.7%SR
Toolathlon48.2%SR
PostTrainBench34.3%SR

Code

FrontierSWE74.0%
NL2Repo48.9%SR
DeepSWE46.2%SR
DeepSWE 1.144.0%
SWE-Marathon13.0%SR

Math

AIME 202699.2%SR
HMMT 202594.4%SR
HMMT Feb 2692.5%SR
IMO-AnswerBench91.0%SR

Reasoning

GPQANYU + Cohere + Anthropic (2023)91.2%SR
Terminal-Bench 2.182.7%SR
MCP Atlas76.8%SR
SWE-Bench ProPrinceton NLP (2024)62.1%SR
Humanity's Last Exam54.7%SR
FrontierCode 1.124.5%
CritPT16.7%SR

AA Evaluation Indices

(Artificial Analysis)
Tau2(Sierra + U Toronto + Vector Institute (2025))
99.1
Gpqa(NYU + Cohere + Anthropic (2023))
89.5
Lcr(Artificial Analysis)
78.3
Terminalbench V2 1
77.9
Ifbench(Google Research (2023))
73.3
Coding Index(Artificial Analysis)
68.8
Scicode(UIUC + Argonne National Lab (2024))
51.2
Terminalbench Hard(Stanford × Laude Institute (2026))
50.8
Hle(Center for AI Safety + Scale AI (2025))
41.1
Tau Banking
34.6
Intelligence Index(Artificial Analysis)
34.0

LLM Stats Category Scores

(LLM Stats (zeroeval))
Physics
90
Biology
90
Chemistry
90
Math
70
Tool Calling
70
Reasoning
60
General
60
Agents
50
Code
50
Vision
50
Systems
30

Pricing

Input Price$1.4 / 1M tokens
Output Price$4.4 / 1M tokens
Blended Price (3:1)$2.15 / 1M tokens
Cache Read Price$0.26 / 1M tokens
Cache Write PriceFree

Speed

Tokens/sec78.1
Time to First Token6.82s
Time to Answer32.44s

Provider Price Ranking

Provider Price Ranking

9 providers

Cheapest: DeepInfraMost Expensive: EmpirioLabs AI
ProviderInputOutput
1DeepInfraCheapest
$0
$0
2FriendliAI
$0
$0
3Fireworks
$0
$0
4ZAI
$0
$0
5Together
$0
$0
6Novita
$0
$0
7Z AIPRIMARY
$1.4
$4.4
8Neon
$1.4
$4.4
9EmpirioLabs AI
$1.4
$4.4

Compare pricing across different API providers for this model.

External Sources