Z AI
Released June 16, 2026

GLM-5.2

GLM-5.2 by Z AI: flagship MoE model for long-horizon tasks with solid 1M context, IndexShare attention, flexible thinking effort, and MIT open-source license.

Inputs
Text
Outputs
Text

Model Overview

Capabilities, design details, and architectural traits

GLM-5.2 - Built for Long-Horizon Tasks

GLM-5.2 is a flagship MoE model from Z AI designed to sustain quality across extended, multi-step engineering workflows. Its defining idea is that long context must be engineering-usable - not merely accepting more tokens, but maintaining coherent execution across long, messy coding-agent trajectories. The model can carry forward engineering judgments formed earlier in a session into subsequent stages, reducing context fragmentation in prolonged tasks.

TraitDetail
IndexShareEvery 4 transformer layers share a lightweight indexer
Solid 1M contextTrained extensively for coding-agent scenarios at 1M tokens, maintaining quality across large-scale implementation, debugging, and optimization
DSA architectureDense-Sparse-Alternating network with IndexShare sparse attention
Flexible thinking effortMultiple effort levels including Max let users explicitly balance capability against latency and computational cost
MTP with IndexShare and KVShareImproved speculative decoding draft layer increases acceptance length by up to 20%
MIT open-sourceNo regional limits or technical access borders

Engineering Judgment Persistence

A core differentiator is that GLM-5.2 does not just read more context - it retains module boundaries, architectural constraints, API contracts, directory structures, and historical decisions throughout long-running tasks. This makes it suited for project-level codebase takeover, long-horizon refactoring, and production-grade standards adherence where consistency across hundreds of rounds of execution matters.

Mobile and Cross-Platform Workflows

The model covers practical mobile engineering end to end, including client-side architecture, streaming messages, long-connection states, and real-device validation using ADB, logcat, and screenshots - extending from code implementation to on-device debugging in a single task.

Benchmark Performance

Independent evaluations · Artificial Analysis

33.7%
Intelligence
68.8%
Coding Index
38.4%
Agentic Index

Accuracy & Capability Details

GPQA - Graduate Science89.5%
Humanity's Last Exam41.1%
SciCode - Scientific Coding51.2%
Instruction Following73.3%
Long Context Reasoning78.3%
τ²-Bench - Agentic Tasks99.1%
TerminalBench - System Control50.8%

Compare Models Side-by-Side

Evaluate specifications, pricing, and independent benchmark indices

Model Details
General Info
ProviderZ AIAnthropicOpenAI
Release DateJune 16, 2026November 9, 2026November 17, 2026
Knowledge Cutoff---
Context & Limits
Context Window1M1M
1.1M
Best Context Window
Pricing (per 1M tokens)
Input Pricing
$1.40
Best Input Pricing
$8$8
Output Pricing
$4.40
Best Output Pricing
$40$40
Modalities
Inputs
text
textimagefile
textimagefile
Outputs
text
text
text
Benchmarks (0-100)
Intelligence Index33.7
64.8
Best Intelligence Index
62.2
Coding Index68.8--
Agentic Index38.4--

Benchmark comparison not available

Select at least two models that have available benchmark evaluation data to render the performance comparison charts.

Independent evaluation data provided by Artificial Analysis. To view the latest benchmarks and full details, visit their official site.

Explore more from Z AI

Other models by Z AI

Top AI Models

Leading alternatives by intelligence score

View all