Sulat.com
AI models
$10 off the fastest DeepSeek V4.1 Flash, Kimi K3.1 Pro and GLM 5.3-Flash from Synthetic
Mistral logo

Model details

GLM-5.2

GLM-5.2 is positioned by its creators as their flagship model for long-horizon work, marking a substantial leap over the previous GLM-5.1 by delivering, for the first time in the family, a solid 1M-token context window that can stably sustain extended sessions. The model card highlights "Solid 1M Context" and "Advanced Coding with Flexible Effort" as its defining new capabilities, with multiple thinking-effort levels that let developers trade latency against quality on demanding jobs. Weights are published openly on Hugging Face under the zai-org organization, paired with the GLM-5 technical report (arXiv 2602.15763) and Z.ai's own API and chat surfaces, so the model is accessible both for self-hosting research and for hosted inference.

Under the hood, GLM-5.2 introduces architectural refinements aimed specifically at long-context efficiency. The model card describes an IndexShare design that reuses one indexer across every four sparse-attention layers, reducing per-token FLOPs by roughly 2.9× at a 1M context length, alongside an improved multi-token prediction layer that lifts speculative-decoding acceptance length by up to 20%. These pieces became the foundation for the follow-on GLM-5.3 release, which Z.ai describes as sharing the same base model and gaining all of its improvements from post-training on the IndexShare, SAO, and slime long-horizon stack. For practitioners, that makes GLM-5.2 the natural pick when a genuinely long, stable context window and tunable reasoning effort matter more than chasing the very latest post-training gains.

Mistralglm-5-2glmdeprecated

Quick Info

Powered by
Provider
Mistral
Model key
glm-5-2
Release date
Jun 13, 2026
Last updated
Jun 13, 2026
Input modalities
Output modalities
Capabilities

Cost

Input token cost
$1.40
Output token cost
$4.40

Limits

Output tokens
131,072 tokens
Context window
1,048,576 tokens

Transparent token rates

Compare GLM-5.2 pricing

Rates are shown per one million tokens. Combined means one million input plus one million output tokens.

Browse this family

Latest news about GLM-5.2

Mistral

Coverage

An independent architecture analysis confirms GLM-5.2 extends the GLM-5 sparse-MoE backbone, listing 78 transformer layers, hidden size 6,144, three dense feed-forward blocks, and 256 routed experts (8 active plus 1 shared) per token. Context length is grown from 200K to 1,048,576 tokens, with attention combining Multi-head Latent Attention and DeepSeek Sparse Attention (DSA), whose indexer scales quadratically with sequence length. The piece explains IndexShare's motivation: adjacent DSA indexers share 70%–100% of selected token positions, so GLM-5.2 runs the indexer once and reuses selected positions across three nearby layers. Shared layers still compute their own queries, attention, values, and outputs—only the position selection is reused, reducing indexer redundancy without altering downstream computation.

Mistral

Coverage

NIST's Center for AI Standards and Innovation released a July 8, 2026 independent assessment of Z.AI's GLM-5.2, released June 16, 2026 as an open-weight model. CAISI concludes GLM-5.2 was probably the most capable open-weight AI model at release, with overall capabilities similar to GPT-5.2 (December 2025) and cyber capabilities similar to Opus 4.6 (February 2026). The assessment draws on CAISI's own evaluations alongside developer-supplied materials. On safeguards and security, CAISI finds GLM-5.2's protections allow assistance with agentic cyber exploit development and block fewer sensitive biological questions than reference U.S. models, while appearing potentially more robust against agent hijacking and prompt-based jailbreaks than other evaluated PRC open-weight models. The report also notes these prompt-level safeguards can be circumvented when the open-weight model is self-hosted.

Mistral

Coverage

A third-party reference profile compiles Z.AI's published GLM-5.2 specs: 1,000,000-token context window, 128,000 max output tokens, MIT license, and weights hosted on Hugging Face and ModelScope. The profile restates author-published benchmark scores including 99.2 on AIME 2026, 91.2 on GPQA-Diamond, 81.0 on Terminal-Bench 2.1, 76.8 on MCP-Atlas, 74.4 on FrontierSWE Dominance, 63.7 on ProgramBench, 62.1 on SWE-bench Pro, and 48.9 on NL2Repo. On SWE-bench Pro, the page reports GLM-5.2 at 62.1, behind Claude Opus 4.8's 69.2 but ahead of GPT-5.5 (58.6), GLM-5.1 (58.4), and Gemini 3.1 Pro (54.2). Across FrontierSWE, PostTrainBench, and SWE-Marathon, Z.AI's published rankings place GLM-5.2 as the top open-source model in its comparison set, with reasoning scores strongest where the model was trained for agentic coding.

Mistral

CoverageDocumentation

Z.AI's official developer documentation describes GLM-5.2 as a flagship foundation model for long-horizon work, with text-in/text-out modality, 1M-token context length, and a 128K maximum output token ceiling. Listed capabilities include multiple thinking modes, streaming output, function calling, context caching, structured (JSON) output, and MCP integration for external tools and data sources. The guide frames the model around project-level codebase takeover, arguing GLM-5.2 can retain module boundaries, API contracts, and architectural constraints across long tasks rather than fragmenting near the end. Z.AI recommends loading a real business codebase with backend, frontend, configuration, tests, and documentation as the recommended way to evaluate the generational jump over predecessor behavior.

Mistral

Coverage

Z.AI released GLM-5.2 on June 17, 2026 as an MIT-licensed flagship aimed at long-horizon tasks, with a solid 1M-token context that the team explicitly engineered for sustained coding-agent workloads. Architecture highlights include IndexShare, which reuses one DSA indexer across every four sparse-attention layers to cut per-token FLOPs by 2.9× at 1M context, plus an improved MTP layer boosting speculative-decoding acceptance length by up to 20%. The release targets large-scale implementation, automated research, optimization, and debugging as concrete engineering scenarios. On long-horizon coding benchmarks, GLM-5.2 posts scores including 74.4 on FrontierSWE Dominance and is positioned by Z.AI as a leap over predecessor GLM-5.1. The blog explicitly trails Opus 4.8 on FrontierSWE while surpassing several comparable frontier and open-weight systems elsewhere in the table. Flexible thinking-effort levels are introduced to balance coding latency and capability for agentic runs.

Mistral

CoverageBenchmark

Semgrep reports that GLM 5.2 outperformed Claude Opus 4.8 on its IDOR benchmark, a test of frontier coding agents using a fixed prompt and dataset. Among open-weight models tested, GLM 5.2 was the strongest performer, a result the researchers describe with the phrase "We have Mythos at Home." The evaluation was published June 22, 2026, six days after GLM 5.2's release. The benchmark focused on real-world software-engineering tasks rather than synthetic tests, giving GLM 5.2 direct exposure to IDOR-style vulnerabilities. Semgrep's authors highlight the result as evidence that open-weight coding agents are closing the gap with proprietary frontier systems on security-relevant workloads.

Mistral

CoverageRelease Notes

Z.ai's developer release notes confirm GLM-5.2 launched on June 16, 2026 with a 1M lossless context window, significantly reducing context drift and goal forgetting during complex long-horizon tasks. The official entry attributes the model to Z.ai and describes it as achieving open-source SOTA performance on coding and long-horizon benchmarks. The same release note highlights improvements in real-world developer experience, including more reliable project-level context handling, adherence to engineering standards, and multi-platform development support. The page also lists later GLM-5.3 and GLM-5.3-Flash entries dated August 2026, establishing GLM-5.2's place within Z.ai's evolving model family.

Sulat also reports on AI and tech beyond the catalog.Read news.sulat.com

Videos about GLM-5.2

More models around GLM-5.2