GLM-5.2 (Reasoning)

by Zhipu AI

GLM-5.2 (Reasoning) is a reasoning model from Zhipu AI, released on June 16, 2026. It has a 1M-token context window and can generate up to 1M output tokens. API pricing is $0.75 per 1M input tokens and $2.4 per 1M output tokens.

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.

Key specs

ProviderZhipu AI
Release date2026-06-16
Licenseopen source
Context window1M tokens
Max output1M tokens
Input price$0.75 / 1M tokens
Output price$2.4 / 1M tokens
Intelligence Score44.9
Coding index33.8

Quick answers

What is the context window of GLM-5.2 (Reasoning)?

GLM-5.2 (Reasoning) has a context window of 1M tokens, with a maximum output of 1M tokens per response.

How much does GLM-5.2 (Reasoning) cost?

GLM-5.2 (Reasoning) costs $0.75 per 1M input tokens and $2.4 per 1M output tokens through the API.

Is GLM-5.2 (Reasoning) open source?

Yes. GLM-5.2 (Reasoning) is an open model released under the open source license.

When was GLM-5.2 (Reasoning) released?

Zhipu AI released GLM-5.2 (Reasoning) on June 16, 2026.

Compare on the AI leaderboard · All AI models

More models from Zhipu AI