ZMIME
Z.ai (Zhipu) · Released Apr 7, 2026

GLM-5.1

Strong GLM coding model for agentic engineering, terminals, and repository generation.

  • Open weights
  • Reasoning
  • Tool calling
Capability
149.9ECI · #51 of 148
Input
$1.40per 1M tokens
Output
$4.40per 1M tokens
Context
200K131K max output
Pricing

What it costs

Input
$1.40per million tokens
Output
$4.40per million tokens
Cached input
$0.26per million tokens
Blended (3:1)
$2.15pricier than 72% of priced models

Typical monthly bills

Monthly usageEstimated cost
Side project2M input + 0.5M output tokens$5.00
Team assistant25M input + 5M output tokens$57.00
Production app250M input + 50M output tokens$570.00

Official Z.AI API price, as listed on models.dev.

Capability

Independent benchmarks

149.9Epoch Capabilities Index
#51 of 148 scored models
88Median 146167

The shaded band is Epoch AI’s confidence range (148.0–151.6); the tick marks the median scored model.

  • GPQA DiamondGraduate-level science questions89.9%
  • FrontierMath Tiers 1–3Research-level mathematics36.8%
  • OTIS Mock AIME 2024–2025Competition mathematics93.3%
  • SWE-bench VerifiedFixing real GitHub issues74.2%
  • SimpleQA VerifiedShort factual questions34.0%

Scores from Epoch AI, run independently of Z.ai (Zhipu).

Specifications

The details

Lab
Z.ai (Zhipu)
Released
Apr 7, 2026
Context window
200,000 tokens
Max output
131,072 tokens
Inputs
Text
Output
Text
Reasoning
Can be switched on or off
Tool calling
Yes
Structured output
Yes
API model ID
glm-5.1on Z.AI
Availability
40 API providerslisted on models.dev

Z.AI model documentation

Lab-reported

What Z.ai (Zhipu) claims

Published by the lab at launch. Settings vary, so compare these only with care.

BenchmarkScoreSettingSource
Artificial Analysis Coding Agent Index52.7—Source
SWE-Atlas Codebase QnA73.2—Source
SWE-Bench Pro19.8—Source
Terminal-Bench v2.165.1—Source
Same lab

More from Z.ai (Zhipu)

Questions

About GLM-5.1

How much does GLM-5.1 cost?

GLM-5.1 costs $1.40 input / $4.40 output per million tokens (official Z.AI API price). Cached input is $0.26 per million tokens. At a 3:1 input-to-output mix that is $2.15 per million tokens, more expensive than 72% of the 360 priced models we track.

What is the context window of GLM-5.1?

GLM-5.1 accepts up to 200,000 tokens per request and can write up to 131,072 tokens in one response.

How good is GLM-5.1?

Epoch AI gives GLM-5.1 a Capabilities Index score of 149.9 (likely range 148.0–151.6), ranking it #51 of 148 models Epoch has scored. Epoch AI benchmark results: GPQA Diamond 89.9%, FrontierMath Tiers 1–3 36.8%, OTIS Mock AIME 2024–2025 93.3%, SWE-bench Verified 74.2%, SimpleQA Verified 34.0%.

Is GLM-5.1 open source?

Yes. Z.ai (Zhipu) publishes the weights, so it can be downloaded and self-hosted.

What inputs does GLM-5.1 support?

GLM-5.1 accepts text and replies in text. It is a reasoning model, supports tool calling and can return structured JSON output.

When was GLM-5.1 released?

Z.ai (Zhipu) released GLM-5.1 on Apr 7, 2026.

What are the best alternatives to GLM-5.1?

The closest current models from other labs on capability, price and release date are Kimi K2.7 Code (Moonshot AI, ECI 150.0, $0.95 / $4.00), Qwen3.6 Max Preview (Alibaba (Qwen), ECI 149.2, $1.30 / $7.80), Grok 4.3 (xAI, ECI 149.2, $1.25 / $2.50) and GPT-5.4 mini (OpenAI, ECI 148.8, $0.75 / $4.50).