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

Model details

GLM-5.2

GLM-5.2 is Z.ai's latest flagship model, built from the ground up around long-horizon work, and ships under a permissive MIT license with no regional limits. The defining feature is a solid one-the cataloged API limit that the team trained explicitly for coding-agent scenarios, covering large-scale implementation, automated research, performance optimization, and complex debugging rather than merely accepting more tokens. To make that scale affordable, the architecture adds an indexer reused across every four sparse attention layers, which the creators report cuts per-token compute by roughly 2.9x at full context, alongside an improved multi-token prediction layer for speculative decoding that lifts acceptance length by up to twenty percent.

The release targets agentic coding and tool use as its practical sweet spot. Z.ai reports that GLM-5.2 is the strongest open-source model on standard coding suites such as Terminal-Bench 2.1 and SWE-bench Pro, and on FrontierSWE it trails the leading closed model by only a small margin while ranking as the highest-scoring open entry. Multiple thinking effort levels let callers trade latency for capability, and an anti-hack module plus a critic-based training formulation address reward-gaming and trajectory-compaction challenges that show up when agents run for hours. CAISI's independent assessment found GLM-5.2 to be the most capable open-weight model at release, with overall capability comparable to GPT-5.2, making it a credible backbone for self-hosted coding agents and research assistants that need sustained, multi-hour execution.

Tempr Gatewayzai/glm-5.2glm

Quick Info

Powered by
Provider
Tempr Gateway
Model key
zai/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,000,000 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

Crusoe

Official sourceAnnouncement

Z.ai introduced GLM-5.2 on June 16, 2026, framing it as a flagship model purpose-built for long-horizon tasks. The release emphasizes a solid 1M-token context that remains reliable across long, messy coding-agent trajectories, along with advanced coding capabilities that expose multiple thinking-effort levels to balanc Architecturally, Z.ai describes a new IndexShare sparse-attention mechanism that reuses the same indexer across every four sparse attention layers, cutting per-token FLOPs by 2.9× at a 1M context length, paired with an improved multi-token prediction (MTP) layer that boosts speculative-decoding acceptance length by up

Crusoe

Coverage

On July 17, 2026, NIST's Center for AI Standards and Innovation (CAISI) published its assessment of GLM-5.2, which Z.ai (formerly Zhipu AI) released as an open-weight model on June 16, 2026; CAISI completed its review on July 8, 2026. CAISI concluded that GLM-5.2 was probably the most capable open-weight AI model at re On safeguards and security, CAISI's findings were mixed: GLM-5.2's safeguards allow assistance with agentic cyber exploit development, and it blocks fewer sensitive biological questions than reference U.S. models, yet it appears potentially more robust against agent hijacking and prompt-based jailbreaking attacks than

Z.AI

Coverage

The NIST Center for AI Standards and Innovation (CAISI) published an independent public assessment of Z.ai's GLM-5.2 on July 17, 2026 (dated July 8, 2026), evaluating the model that Z.ai (formerly Zhipu AI, a PRC-based company founded in 2019) had open-released on June 16, 2026. CAISI concludes GLM-5.2 was probably the On safeguards and security, CAISI finds GLM-5.2's performance mixed: its safeguards allow assistance with agentic cyber exploit development and block fewer sensitive biological questions than reference U.S. models, but it appears potentially more robust against agent hijacking and jailbreaking attacks than other evalua

Z.AI

CoverageBenchmark

Semgrep published a June 22, 2026 cyber-benchmark study in which GLM 5.2 outperformed Claude Opus 4.8 on their IDOR benchmark, using the same dataset and prompt previously applied to frontier coding agents. Among models given nothing but a prompt, the best open-weight option beat Claude Opus 4.8, a result the authors say surprised them. The post is authored by the Semgrep security research team. The evaluation focuses on IDOR detection under prompt-only conditions, a narrow but technically meaningful cybersecurity coding task relevant to application security teams. It positions GLM 5.2 as a credible open-weight contender against a leading closed frontier model on security reasoning. The benchmark is vendor-published and single-axis, so it should be read as one signal rather than a general capability ranking for the model.

Z.AI

Official sourceDocumentation

Z.AI's official developer documentation introduces GLM-5.2 as a flagship foundation model purpose-built for long-horizon tasks, featuring a 1M-token context window and 128K maximum output tokens with text-in, text-out modalities. The page lists supported capabilities including multiple thinking modes, real-time streaming, function/tool calling, context caching, structured JSON output, and MCP integration for external tools and sources. This positioning signals a model designed to sustain project-scale engineering work end-to-end. Beyond specs, the documentation highlights a "Project-Level Codebase Takeover" usage scenario in which GLM-5.2 retains module boundaries, architectural constraints, API contracts, directory structures, and prior engineering decisions across extended sessions. The recommended workflow is to feed the model a real business codebase spanning backend, frontend, config, tests, and conventions, then request a technical audit returning an architecture map, module responsibilities, key contracts, data flows, and identified technical debt. This narrative reinforces the model's claim of more stable long-task execution.

Videos about GLM-5.2

More models around GLM-5.2