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.20 /1M
Output price
$4.18 /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. In the EU it is served by evroc (Sweden), GreenPT, Inceptron and 4 more. See every GLM model hosted in the EU. One route also sells flex and priority processing: the same model at another price, picked per request with service_tier. How service tiers work.

ProviderRegionZero data retentionTrainingInputOutputCache read
MultiNo$1.20$4.18Input priceNot offered on this routeNot offered on this route
USNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
Multi—Not established—$1.40$4.40$0.26Not offered on this routeNot offered on this route
MultiNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
USNo$0.75$2.40$0.14
USNo$0.70$2.20$0.10Not offered on this routeNot offered on this route
EUNo$1.40$5.60Input priceNot offered on this routeNot offered on this route
EUNo$1.23$4.93$0.31Not offered on this routeNot offered on this route
EUNo$1.25$4.39$0.20Not offered on this routeNot offered on this route
EUNo$1.54$4.84$0.15Not offered on this routeNot offered on this route
USNo$0.23$3.55$0.14Not offered on this routeNot offered on this route
MultiNo$1.40$4.40Input priceNot offered on this routeNot offered on this route
USNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
EUNo$2.24$5.83Input priceNot offered on this routeNot offered on this route
EUNo$2.02$6.16Input priceNot offered on this routeNot offered on this route
MultiNo$1.40$4.40$0.26Not offered on this routeNot offered on this route
EUNo$1.50$4.50$0.38Not offered on this routeNot offered on this route
MultiNo$1.40$4.40$0.26Not offered on this routeNot offered on this route

Live routes and prices as JSON: api.opper.ai/v3/models?q=glm-5.2

Uptime and availability

GLM-5.2 runs on 5 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 95.53% over the same window.
Daily status through the gateway, which serves each request from whichever route is healthy.
5 monitored providers serve GLM-5.2.

Measured over the last 30 days from each provider's official status feed via StatusGator. Refreshed hourly. 13 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

Arcee — United States🇺🇸

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. US; 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
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: 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
Keeps nothing
Caching
Content cached for replay
Subprocessor access
Subprocessors may read content
GDPR DPA
DPA available
Transfer mechanism
Not applicable — data stays in EU

Inceptron — EU🇪🇺

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

Mistral — EU🇪🇺

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

Regolo — Italy🇮🇹

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

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

Tencent Cloud — Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; 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
Caching
Content cached for replay
GDPR DPA
DPA available
Transfer mechanism
SCCs

TensorX — EU🇪🇺

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);

Use GLM-5.2 in your apps

Pick your tool to see how to run it on GLM-5.2 through Opper.

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 for every major provider, up and running in minutes.

Get startedView Documentation