GLM 4.7

by Z.ai

GLM 4.7 is Zhipu's flagship reasoning model released December 2025, with 358 billion total parameters (32 billion active) and a three-mode thinking design. Interleaved thinking generates reasoning before each response and tool call, preserved thinking retains reasoning context across multi-turn conversations to improve cache reuse, and turn-level thinking lets developers toggle reasoning depth per interaction to trade latency against quality. With a 200K context window and up to 131K output, the model reaches frontier-level coding results, reported at 73.8% on SWE-bench Verified for end-to-end software engineering and 66.7% on multilingual coding. Its work on terminal-based task automation, multi-language programming, and mathematical reasoning makes it strong for agentic development and AI-assisted engineering, emphasizing reasoning quality over raw parameter count. Released under an MIT license, GLM 4.7 is built for developers creating coding agents, terminal automation, mathematical problem-solving, and reasoning-intensive multi-step workflows where transparent, controllable thinking is a differentiator.

Key info

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

Available routes

GLM 4.7 runs on 4 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
BergetEUZero data retentionNo$0.83$2.71
CerebrasUSEnterpriseNo$2.25$2.75
DeepInfraUSEnterpriseNo$0.40$1.75
NovitaUSEnterpriseNo$0.60$2.20

Training posture across routes: No training on prompts by default.

Data handling per route

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

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.
Training
No training on customer data.
Logging
None
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
Not applicable β€” data stays in EU

Cerebras β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
None
Third-party access
Provider may share with subprocessors / partners
GDPR DPA
DPA available
Transfer mechanism
SCCs

DeepInfra β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; unknown.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Limited debug logs
Third-party access
None disclosed
GDPR DPA
No DPA
Transfer mechanism
unknown

Novita β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Abuse monitoring
Third-party access
None disclosed
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#69 of 531 LLMs
TierStrong
Output speed114 tok/s
First token0.66s
Intelligence Index33.8
Coding Index36.3
Math Index95.0
Reasoning & knowledge
MMLU-Pro
86%
GPQA Diamond
86%
Humanity's Last Exam
25%
Long-context reasoning
64%
Coding
LiveCodeBench
89%
SciCode
45%
Agentic & tool use
Terminal-Bench Hard
32%
τ²-Bench Telecom
96%
Math & instruction following
AIME 2025
95%
IFBench
68%

Get started

Call GLM 4.7 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 your coding agent β€” Claude Code, Cursor, Codex, and more β€” 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: "berget/glm-4.7",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Compare GLM 4.7 with…

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

Other models from Z.ai

Start building with 300+ models

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

Get startedView Documentation
GLM 4.7 by Z.ai β€” pricing, benchmarks, ZDR, EU/US hosting | Opper AI