GLM-5.2

by Z.ai

Released 70 days after GLM 5.1 · All Z.ai releases

GLM-5.2 is Z.ai's flagship GLM-5 series model, a 744-billion-parameter mixture-of-experts system with 40 billion active parameters, built for agentic engineering and long-horizon coding, with open weights published on Hugging Face. Its standout capability is a 1M-token context window, a roughly fivefold jump over the GLM-5.1 generation's 200K, letting it reason across entire repositories, long plan-then-execute traces, and book-length inputs in a single pass. The model introduces IndexShare, a sparse-attention design that reuses one indexer across every four attention layers, which Z.ai reports cuts per-token compute by 2.9 times at full 1M context while preserving long-range recall. Selectable thinking-effort levels, High and Max, let developers trade reasoning depth against latency, and Z.ai's own benchmarks put it at 62.1 on SWE-bench Pro, up from 58.4 for GLM-5.1. Released under an MIT license, GLM-5.2 suits developers building coding agents, repository-scale tools, and reasoning-intensive applications who want frontier capability with downloadable, self-hostable weights.

Key info

Input
Output
Features
Context window
1M
Max output
Input price
$1.19 /1M
Output price
$4.17 /1M
Released
  • EU residency available
  • US residency available
  • Zero data retention on pay-as-you-go
  • No training by default
  • GDPR DPA available

Available routes

GLM-5.2 runs on 16 different routes through the Opper gateway. Compare residency, ZDR, and training posture at a glance — full data-handling detail per route below.

ProviderRegionZero data retentionTrainingInputOutput
MultiNot by defaultNo$1.19$4.17
EUZero data retentionNo$1.63$5.11
MultiNot by defaultNo$1.40$4.40
USZero data retentionNo$0.75$2.40
USNot by defaultNo$0.70$2.20
EUZero data retentionNo$1.45$5.81
MultiZero data retentionNo$1.40$4.40
EUZero data retentionNo$0.75$2.90
EUZero data retentionNo$1.16$4.65
USNot by defaultNo$1.10$4.10
EUNot by defaultNo$1.40$4.40
USZero data retentionNo$1.40$4.40
EUZero data retentionNo$2.32$6.04
EUZero data retentionNo$1.20$4.20
EUZero data retentionNo$1.50$4.50
USZero data retentionNo$1.26$3.96

Uptime and availability

GLM-5.2 runs on 6 independently monitored routes through the Opper gateway. A direct integration leaves you on one of them, the gateway serves whichever is healthy.

100%effective uptime, last 30 days
Averaged across these routes on their own, a single provider reached 99.32% over the same window.
Daily status through the gateway, which serves each request from whichever route is healthy.
6 monitored providers serve GLM-5.2.

Measured over the last 30 days from each provider's official status feed via StatusGator. Refreshed hourly. 10 further routes for this model are not on the board yet and are not counted above. See uptime for every provider Opper monitors.

Data handling per route

Each route hosting GLM-5.2 has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

Alibaba Cloud Multi-region

Zero data retention is not on by default — abuse monitoring. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
Not by default — abuse monitoring. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
Abuse monitoring
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
SCCs

Berget Sweden🇸🇪

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

BytePlus Multi-region

Zero data retention is not on by default — abuse monitoring, 180-day retention. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
Not by default — abuse monitoring, 180-day retention. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
Abuse monitoring (180-day retention)
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
SCCs

DeepInfra United States🇺🇸

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. US; unknown; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
unknown

DigitalOcean United States🇺🇸

Zero data retention is not on by default — a moderation hold applies. No training on customer data. US; dpf sccs; DPA available.

Zero data retention
Not by default — a moderation hold applies. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Holds content for review
Caching
Content cached for replay
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
dpf sccs

evroc Sweden🇸🇪

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
No hold on content
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Fireworks Multi-region

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Subprocessors may read content
GDPR DPA
DPA available
Transfer mechanism
SCCs

Inceptron Sweden🇸🇪

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Melious Germany🇩🇪

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Morph United States🇺🇸

Zero data retention is not on by default — abuse monitoring, 30-day retention. No training on customer data. US; SCCs; DPA available.

Zero data retention
Not by default — abuse monitoring, 30-day retention. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
Abuse monitoring (30-day retention)
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
SCCs

Nebius Finland🇫🇮

Zero data retention is not on by default — abuse monitoring. No training on customer data. EU; DPA available.

Zero data retention
Not by default — abuse monitoring. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
Abuse monitoring
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Novita United States🇺🇸

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. US; SCCs; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
SCCs

Regolo Italy🇮🇹

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
No hold on content
Caching
Not established
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Sference United Kingdom🇬🇧

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EEA; SCCs; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
SCCs

TensorX European Union🇪🇺

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. EU; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Wafer United States🇺🇸

Zero data retention is on by default on Pay-as-you-go — no action required. No training on customer data. US; SCCs; DPA available.

Zero data retention
On by default on Pay-as-you-go. Derived from the logging and moderation facts.
Training
No training on customer data.
Logging
None
Moderation
Not established
Caching
Not established
Subprocessor access
Not established
GDPR DPA
DPA available
Transfer mechanism
SCCs

Benchmarks

Independent benchmark scores — composite indices for reasoning, coding, and math, plus individual eval scores where available.

Global rank#49 of 630 LLMs
TierStrong
Output speed70 tok/s
First token1.43s
Intelligence Index42.5
Coding Index68.8
Reasoning & knowledge
GPQA Diamond
90%
Humanity's Last Exam
41%
Long-context reasoning
78%
Coding
SciCode
51%
Agentic & tool use
Terminal-Bench Hard
51%
τ²-Bench Telecom
99%
Math & instruction following
IFBench
73%

Get started

Call GLM-5.2 through the Opper gateway with one API key. Let your coding agent set it up, or call it directly — Opper is drop-in compatible with the OpenAI, Anthropic, and Google AI SDKs.

Set it up with your agent

Copy this and paste it into a coding agent like Claude Code, Cursor or Codex and it'll wire up Opper for you.

Or call it directly

import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPPER_API_KEY,
baseURL: "https://api.opper.ai/v3/compat",
});
const completion = await client.chat.completions.create({
model: "alibaba:global/glm-5.2",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Compare GLM-5.2 with…

Side-by-side on privacy, EU hosting, pricing, and benchmarks.

Other models from Z.ai

Start building with 700+ models

One API key. Every major provider. Up and running in minutes.

Get startedView Documentation