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

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

Rankings

Domain#RankScoreSource
Agentic Capability64
47.0
LS
Code Ranking64
83.0
AA
General Ranking21
93.0
AA
Math Reasoning31
90.0
LB
Science48
77.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
Terminalbench V4 0
1.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/sec0.0
Time to First Token0.00s
Time to Answer0.00s

Provider Price Ranking

Provider Price Ranking

11 providers

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

Compare pricing across different API providers for this model.

External Sources