---
last_updated: 2026-11-25
source_url: https://opper.ai/zhipu/glm-5-2
title: "GLM-5.2 by Z.ai"
description: "GLM-5.2 by Z.ai is a 744B open-weight (MIT) mixture-of-experts coding model with a 1M-token context, IndexShare sparse attention, and selectable thinking-effort levels."
---

# GLM-5.2

By [Z.ai](https://opper.ai/zhipu).

Released 16 Jun 2026, 70 days after [GLM 5.1](https://opper.ai/zhipu/glm-5-1) · [Announcement](https://docs.z.ai/release-notes/new-released) · [All Z.ai releases](https://opper.ai/model-releases/zhipu)

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.

## Available routes

GLM-5.2 runs on 17 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by GreenPT, Lyceum, Regolo (Italy) and 2 more. [See every GLM model hosted in the EU](https://opper.ai/models/eu/glm). One route also sells flex and priority processing: the same model at another price, picked per request with service_tier. [How service tiers work](https://docs.opper.ai/build/gateway/service-tiers). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=glm-5.2.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Alibaba Cloud](https://opper.ai/provider/alibaba) | `alibaba:global/glm-5.2` | Multi-region | Abuse monitoring | No | $1.20 | $4.19 | Input price |
| [Baidu Qianfan](https://opper.ai/provider/baidu) | `baidu:cn/glm-5.2` | Multi (China) | Retained | Unknown | $1.40 | $4.40 | $0.26 |
| [BytePlus](https://opper.ai/provider/byteplus) | `bytedance:ap/glm-5.2` | Multi-region | Abuse monitoring | No | $1.40 | $4.40 | $0.26 |
| [DeepInfra](https://opper.ai/provider/deepinfra) | `deepinfra/zai-org/GLM-5.2` | US (United States) | Yes | No | $0.75 | $2.40 | $0.14 |
| [DeepInfra](https://opper.ai/provider/deepinfra), Flex | `deepinfra:flex/zai-org/GLM-5.2` | US (United States) | Yes | No | $0.60 | $1.92 | $0.11 |
| [DeepInfra](https://opper.ai/provider/deepinfra), Priority | `deepinfra:priority/zai-org/GLM-5.2` | US (United States) | Yes | No | $1.13 | $3.60 | $0.21 |
| [DigitalOcean](https://opper.ai/provider/digitalocean) | `digitalocean/glm-5.2` | US (United States) | Abuse monitoring | No | $0.70 | $2.20 | $0.10 |
| [Geodd](https://opper.ai/provider/geodd) | `geodd:us/glm-5.2` | US (United States) | Yes | No | $0.90 | $2.80 | Input price |
| [GreenPT](https://opper.ai/provider/greenpt) | `greenpt/glm-5.2` | EU | Yes | No | $1.20 | $4.81 | $0.30 |
| [Lyceum](https://opper.ai/provider/lyceum) | `lyceum/z-ai/glm-5.2` | EU | Yes | No | $1.50 | $4.50 | $0.38 |
| [Morph](https://opper.ai/provider/morph) | `morph/morph-glm52-744b` | US (United States) | Abuse monitoring | No | $0.73 | $4.75 | $0.18 |
| [Multiverse Computing](https://opper.ai/provider/multiverse) | `multiverse:us/glm-5.2` | US (United States) | Yes | No | $0.17 | $0.54 | $0.02 |
| [Nebius](https://opper.ai/provider/nebius) | `nebius/zai-org/GLM-5.2` | Multi-region | Retained | No | $1.40 | $4.40 | $0.14 |
| [Novita](https://opper.ai/provider/novita) | `novita/zai-org/glm-5.2` | US (United States) | Yes | No | $1.40 | $4.40 | $0.26 |
| [Regolo](https://opper.ai/provider/regolo) | `regolo/glm5.2` | EU (Italy) | Yes | No | $2.19 | $5.69 | Input price |
| [Scaleway](https://opper.ai/provider/scaleway) | `scaleway/glm-5.2` | EU (France) | Abuse monitoring | No | $1.97 | $6.01 | Input price |
| [Tencent Cloud](https://opper.ai/provider/tencent-cloud) | `tencent:sg/glm-5.2` | Multi-region | Yes | No | $1.40 | $4.40 | $0.26 |
| [TensorX](https://opper.ai/provider/tensorx) | `tensorx/z-ai/glm-5.2` | EU | Yes | No | $1.50 | $4.50 | $0.38 |
| [Z.ai](https://opper.ai/provider/zai) | `zai/glm-5.2` | Multi (Singapore) | Abuse monitoring | No | $1.40 | $4.40 | $0.26 |

## Key info

- Model id: `glm-5.2` (routes across Alibaba Cloud, BytePlus, DeepInfra, Geodd, GreenPT, Morph, Novita, Tencent Cloud, TensorX, Z.ai)
- Input: Text
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 1M
- Max output: 131K
- Input price: $1.20 per 1M tokens
- Output price: $4.19 per 1M tokens
- Released: 16 Jun 2026
- EU residency available on GreenPT, Lyceum, Regolo, Scaleway and TensorX
- US residency available on DeepInfra, DigitalOcean, Geodd, Morph, Multiverse Computing and Novita
- Zero data retention on pay-as-you-go

## 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.

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

### Baidu Qianfan — China

Content is retained: provider logging. Training posture pending review. GLOBAL; unknown.

- Zero data retention: Retained: provider logging.
- Logging: Other
- Abuse monitoring: Always on, holds flagged content, a person can view samples
- Transfer mechanism: unknown

Verified by Opper on 2026-09-17.

### 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.

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-15.

### DeepInfra — United States

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

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-19.

### 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.

- 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
- Transfer mechanism: dpf sccs

Verified by Opper on 2026-09-03.

### Geodd — United States

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

- 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: Not cached
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

### GreenPT — EU

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

- 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
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-25.

### Lyceum — EU

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

- 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: Subprocessors may read content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-10-15.

### 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.

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

### Multiverse Computing — United States

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

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-30.

### Nebius — Multi-region

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

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

Verified by Opper on 2026-09-17.

### Novita — United States

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

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-15.

### Regolo — Italy

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

- 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
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-07-30.

### 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.

- 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
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-24.

### 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.

- 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
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-06.

### TensorX — EU

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

- 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
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-16.

### 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.

- 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
- Transfer mechanism: unknown

Verified by Opper on 2026-09-15.

## Best for

Where GLM-5.2 ranks among the models on Opper with a score for each use case (0 to 100).

- [Finance](https://opper.ai/models?use=finance): 32.1 (Finance and accounting)
- [Legal](https://opper.ai/models?use=legal): 28.5 (Legal tasks and reasoning)
- [Healthcare](https://opper.ai/models?use=healthcare): 28.7 (Healthcare and medical)
- [Agents](https://opper.ai/models?use=agents): 14.7 (Terminal-Bench 4.0 and AutomationBench)

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/glm-5-2)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #102 of 521 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Strong
- Output speed: 70 tok/s
- Intelligence Index (previous version): 33.7

### Coding

- Terminal-Bench 4.0: 1%
- SciCode: 51%

### Agentic & knowledge work

- AutomationBench: 28%
- GDPval: 44%
- GDP.pdf: 10%
- Briefcase (Elo): 1226
- Terminal-Bench Hard: 51%
- τ²-Bench Telecom: 99%

### Science & reasoning

- HLE Diamond: 18%
- Humanity's Last Exam: 41%
- GPQA Diamond: 90%
- Long-context reasoning: 78%

### Knowledge

- Omniscience: 0.6

### Math & instruction following

- IFBench: 73%

### By domain

- Finance & accounting: 32.1
- Legal: 28.5
- Healthcare & medical: 28.7
- Economics: 32.1
- Strategy & operations: 30.0

## 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

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call GLM-5.2
```

### Or call it directly

OpenAI:

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

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "glm-5.2",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "glm-5.2",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use GLM-5.2 in your apps

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

- [Claude Code](https://opper.ai/apps/claude-code/glm-5-2)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/glm-5-2)
- [Codex](https://opper.ai/apps/codex/glm-5-2)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/glm-5-2)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/glm-5-2)
- [Aider](https://opper.ai/apps/aider/glm-5-2)
- [Goose](https://opper.ai/apps/goose/glm-5-2)
- [Droid](https://opper.ai/apps/droid/glm-5-2)
- [OpenCode](https://opper.ai/apps/opencode/glm-5-2)
- [Pi](https://opper.ai/apps/pi/glm-5-2)
- [OpenClaw](https://opper.ai/apps/openclaw/glm-5-2)
- [Hermes](https://opper.ai/apps/hermes/glm-5-2)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/glm-5-2)
- [OmniRoute](https://opper.ai/apps/omniroute/glm-5-2)
- [Cursor](https://opper.ai/apps/cursor/glm-5-2)
- [Cline](https://opper.ai/apps/cline/glm-5-2)
- [Continue](https://opper.ai/apps/continue/glm-5-2)
- [Kilo Code](https://opper.ai/apps/kilo-code/glm-5-2)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/glm-5-2)
- [Zed](https://opper.ai/apps/zed/glm-5-2)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/glm-5-2)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/glm-5-2)
- [n8n](https://opper.ai/apps/n8n/glm-5-2)
- [LibreChat](https://opper.ai/apps/librechat/glm-5-2)
- [Open WebUI](https://opper.ai/apps/open-webui/glm-5-2)
- [See all apps](https://opper.ai/apps)

## Other models from Z.ai

- [GLM-5.3](https://opper.ai/zhipu/glm-5-3)
- [GLM-5.3-Flash](https://opper.ai/zhipu/glm-5-3-flash)
- [GLM 5](https://opper.ai/zhipu/glm-5)
- [GLM 5.1](https://opper.ai/zhipu/glm-5-1)
- [GLM 4.7](https://opper.ai/zhipu/glm-4-7)
- [GLM 4.6](https://opper.ai/zhipu/glm-4-6)
