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.

Call GLM-5.2 on Opper with the OpenAI SDK. Sign up without a credit card. Get started

Key info

Input
Output
Features
Context window
1M
Max output
131K
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
  • GDPR DPA available

Available routes

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

ProviderRegionZero data retentionTrainingInputOutputCache read
MultiNo$1.19$4.17Input price
Multi—Not established—$1.40$4.40$0.26
MultiNo$1.40$4.40$0.26
USNo$0.75$2.40$0.14
USNo$0.70$2.20$0.10
EUNo$1.43$5.70Input price
EU—$1.25$5.02$0.31
EUNo$1.01$3.18$0.19
EUNo$1.14$4.56$0.29
EUNo$1.40$4.40$0.14
USNo$1.10$4.10Input price
MultiNo$1.40$4.40Input price
USNo$1.40$4.40$0.26
USNo$1.40$4.40$0.14
EUNo$2.05$6.27Input price
EUNo$1.20$4.20$0.26
EUNo$1.50$4.50$0.38
MultiNo$1.40$4.40$0.26

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.65% 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. 12 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 with abuse monitoring: prompts and outputs are kept for abuse monitoring only, for a window the provider does not state, and are not used for training. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
With abuse monitoring, window not stated.
Training
No training on customer data.
Logging
Abuse monitoring
Abuse monitoring
On by default, holds flagged content
Caching
Content cached for replay
GDPR DPA
DPA available
Transfer mechanism
SCCs

Baidu Qianfan — China🇨🇳

Zero data retention posture is not established for this route. Training posture pending review. GLOBAL; unknown.

Zero data retention
Not established.
GDPR DPA
No DPA
Transfer mechanism
unknown

BytePlus — Multi-region

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 180 days for abuse monitoring only, and are not used for training. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
With abuse monitoring, 180-day window.
Training
No training on customer data.
Logging
Abuse monitoring (180-day retention)
Abuse monitoring
On by default, holds flagged content, 180 days, stored in Malaysia, a person can view samples
Caching
Content cached for replay
GDPR DPA
DPA available
Transfer mechanism
SCCs

DeepInfra — United States🇺🇸

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; unknown; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
GDPR DPA
DPA available
Transfer mechanism
unknown

DigitalOcean — United States🇺🇸

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. US; dpf sccs; DPA available.

Zero data retention
With abuse monitoring, flagged content held.
Training
No training on customer data.
Logging
None
Abuse monitoring
Always on, holds flagged content, stored in United States
Caching
Content cached for replay
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
dpf sccs

evroc — Sweden🇸🇪

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

GreenPT — EU🇪🇺

Zero data retention posture is not established for this route. Training posture pending review. EU; DPA available.

Zero data retention
Not established.
Logging
None
Caching
Content cached for replay
Subprocessor access
Subprocessors may read content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Inceptron — Sweden🇸🇪

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
On by default, keeps nothing
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Melious — Germany🇩🇪

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Subprocessor access
Subprocessors may read content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Mistral — France🇫🇷

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Caching
Content cached for replay
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Morph — United States🇺🇸

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 30 days for abuse monitoring only, and are not used for training. No training on customer data. US; SCCs; DPA available.

Zero data retention
With abuse monitoring, 30-day window.
Training
No training on customer data.
Logging
Abuse monitoring (30-day retention)
Abuse monitoring
On by default, holds flagged content, a person can view samples
GDPR DPA
DPA available
Transfer mechanism
SCCs

Nebius — Multi-region

Content is retained: provider logging. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
Retained: provider logging.
Training
No training on customer data.
Logging
Other
Abuse monitoring
No classifier
GDPR DPA
DPA available
Transfer mechanism
SCCs

Novita — United States🇺🇸

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
On by default, keeps nothing
GDPR DPA
DPA available
Transfer mechanism
SCCs

Perplexity — United States🇺🇸

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
On by default, keeps nothing
GDPR DPA
DPA available
Transfer mechanism
SCCs

Scaleway — France🇫🇷

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 14 days for abuse monitoring only, and are not used for training. No training on customer data. EU; DPA available.

Zero data retention
With abuse monitoring, 14-day window.
Training
No training on customer data.
Logging
Abuse monitoring (14-day retention)
Abuse monitoring
No classifier
Caching
Content cached for replay
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Sference — EU🇪🇺

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EEA; SCCs; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Caching
Content cached for replay
Subprocessor access
No subprocessor reads content
GDPR DPA
DPA available
Transfer mechanism
SCCs

TensorX — European Union🇪🇺

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU; DPA available.

Zero data retention
Yes. Nothing is logged, held for abuse monitoring or used for training.
Training
No training on customer data.
Logging
None
Abuse monitoring
No classifier
Caching
Content cached for replay
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Z.ai — Singapore🇸🇬

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. GLOBAL; unknown; DPA available.

Zero data retention
With abuse monitoring, flagged content held.
Training
No training on customer data.
Logging
None
Abuse monitoring
On by default, holds flagged content
Caching
Content cached for replay
Subprocessor access
Subprocessors may read content
GDPR DPA
DPA available
Transfer mechanism
unknown

Benchmarks

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

Intelligence Index33.7
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. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

GLM-5.2 is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

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: "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