GLM 5.1

by Z.ai

Released 6 days after GLM-5V-Turbo ยท All Z.ai releases

GLM-5.1 is Z.ai's flagship open-weight model, released in April 2026 with a sparse Mixture of Experts architecture totaling 754 billion parameters and roughly 40 billion active per token. It supports a 202,752-token context window and can generate up to 128,000 tokens per response, suiting it to long document analysis and extended code generation. Built for autonomous software engineering, GLM-5.1 reports a state-of-the-art 58.4 on SWE-Bench Pro, ahead of Claude Opus 4.6 (57.3) and GPT-5.4 (57.7), and is designed for multi-step agentic workflows where it can sustain a single task for up to eight hours across planning, execution, testing, and refinement. Rather than single-pass generation, it iteratively drafts, evaluates, and revises solutions toward production-ready code. Released under the MIT license on Hugging Face, GLM-5.1 supports function calling, thinking modes, structured output, context caching, and tool use, and can be self-hosted, fine-tuned, and deployed commercially without restrictive licensing terms. Stronger on coding and agentic tasks than on broad general reasoning, GLM-5.1 also handles multilingual content and supports streaming output during tool execution for real-time development feedback.

Key info

Input
Output
Features
Context window
203K
Max output
131K
Input price
$0.89 /1M
Output price
$3.58 /1M
Released
  • onchain settlement available
  • US residency available
  • Zero data retention on pay-as-you-go
  • No training by default
  • no-KYC deposit available

Available routes

GLM 5.1 runs on 6 different routes through the qynio gateway. Compare residency, zero retention, and training posture at a glance โ€” full data-handling detail per route below.

ProviderRegionZero data retentionTrainingInputOutput
MultiNot by defaultNo$0.89$3.58
USZero data retentionNo$1.05$3.50
USNot by defaultNo$1.30$4.30
EUNot by defaultNo$1.40$4.40
USZero data retentionNo$1.38$4.40
EUZero data retentionNo$1.40$4.40

Uptime and availability

GLM 5.1 runs on 4 independently monitored routes through the qynio 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.09% over the same window.
Daily status through the gateway, which serves each request from whichever route is healthy.
4 monitored providers serve GLM 5.1.

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

Data handling per route

Each route hosting GLM 5.1 has its own privacy posture, residency, and no-KYC terms. Postures are maintained by qynio 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; wallets; deposit 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
no-KYC deposit
deposit available
Transfer mechanism
wallets

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; deposit 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
no-KYC deposit
deposit 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; deposit 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
no-KYC deposit
deposit available
Transfer mechanism
dpf sccs

Nebius โ€” Finland๐Ÿ‡ซ๐Ÿ‡ฎ

Zero data retention is not on by default โ€” abuse monitoring. No training on customer data. EU; deposit 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
no-KYC deposit
deposit 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; wallets; deposit 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
no-KYC deposit
deposit available
Transfer mechanism
wallets

TensorX โ€” European Union๐Ÿ‡ช๐Ÿ‡บ

Zero data retention is on by default on Pay-as-you-go โ€” no action required. No training on customer data. EU; deposit 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
no-KYC deposit
deposit available
Transfer mechanism
Not applicable โ€” data stays in EU

Benchmarks

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

Intelligence Index41.0
Coding Index55.8
Reasoning & knowledge
GPQA Diamond
87%
Humanity's Last Exam
30%
Long-context reasoning
68%
Coding
SciCode
44%
Agentic & tool use
Terminal-Bench Hard
43%
ฯ„ยฒ-Bench Telecom
98%
Math & instruction following
IFBench
76%

Get started

Call GLM 5.1 through the qynio gateway with one API key. Let your coding agent set it up, or call it directly โ€” qynio 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 qynio for you.

Or call it directly

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

Compare GLM 5.1 withโ€ฆ

Side-by-side on privacy, crypto rails, 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