We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic…

DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

zai-org logo

zai-org/

GLM-5.2

$1.40

in

$4.40

out

$0.25

cached

/ 1M tokens

GLM-5.2 is Z-AI's latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a **solid 1M-token context**.

Deploy Private Endpoint
Public
fp8
1,048,576
JSON
Function
zai-org/GLM-5.2 cover image
zai-org/GLM-5.2 cover image
GLM-5.2

Ask me anything

0.00s

Settings

Model Information

language:

  • en
  • zh library_name: transformers license: mit pipeline_tag: text-generation

GLM-5.2

[Paper] [GitHub]

Introduction

We're introducing GLM-5.2, our latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a solid 1M-token context. GLM-5.2's new capabilities include:

  • Solid 1M Context: A solid 1M-token context that stably sustains long-horizon work
  • Advanced Coding with Flexible Effort: Stronger coding capabilities with multiple thinking effort levels to balance performance and latency
  • Improved Architecture: We propose IndexShare, which reuses the same indexer across every four sparse attention layers, reducing per-token FLOPs by 2.9× at a 1M context length. We also improve GLM-5.2’s MTP layer for speculative decoding, increasing the acceptance length by up to 20%
  • Pure Open: An MIT open-source license — no regional limits, technical access without borders

bench_52

Benchmark

BenchmarkGLM-5.2GLM-5.1Qwen3.7-MaxMiniMax M3DeepSeek-V4-ProClaude Opus 4.8GPT-5.5Gemini 3.1 Pro
Reasoning
HLE40.53141.43737.749.8*41.4*45
HLE (w/ Tools)54.752.353.5-48.257.9*52.2*51.4*
CritPt16.74.613.43.712.920.927.117.7
AIME 202699.295.397-94.695.798.398.2
HMMT Nov. 202594.4949584.494.496.596.594.8
HMMT Feb. 202692.582.697.184.495.296.796.787.3
IMOAnswerBench91.083.890-89.883.5-81
GPQA-Diamond91.286.2909390.193.693.694.3
Coding
SWE-bench Pro62.158.460.65955.469.258.654.2
NL2Repo48.942.747.242.135.569.750.733.4
DeepSWE46.21818208587010
ProgramBench63.750.9--47.871.970.839.5
Terminal Bench 2.1 (Terminus-2)81.063.5756564858474
Terminal Bench 2.1 (Best Reported Harness)82.769---78.983.470.7
FrontierSWE (Dominance)74.430.5--29.075.172.639.6
PostTrainBench34.320.1---37.228.421.6
SWE-Marathon13.01.0---26.012.04.0
Agentic
MCP-Atlas (Public Set)76.871.876.474.273.677.875.369.2
Tool-Decathlon48.240.7--52.859.955.648.8