Models / Z.ai / GLM 5.1
Z.ai

GLM 5.1

BYOKOpen weightsReleased 7 Apr 2026

An open-weight model from Z.ai, released April 2026, with a mid-table benchmark profile. It stands out for a strong LMArena human-preference rating and a 200k context window.

Read the full description ↓

Spec sheet

Family
Z.ai
Released
7 Apr 20268 months ago
Weights
Open
Context window
200k tokens
Largest response
131k tokens
Accepts
text
Supports
tools, reasoning, structured output
Knowledge cutoff
–
Intelligence index
57.7#62
Input price
$1.4 / 1M
Output price
$4.4 / 1M
Blended price (3:1)
$2.15 / 1M
Index points per $
26.8#70
Speed
40 tokens/sec#150
Popularity
#116 of 194by usage
Providers
5
Weights on
zai-org/GLM-5.1

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Z.aiBYOKzai:GLM-5.1 $1.4$0.26$4.4$2.15
Doublewordgateway/doubleword:zai-org/GLM-5.1-FP8 $1.4–$4.4$2.15
Zhipu AIBYOK–$0.83$0.18$3.31$1.45
NovitaBYOK–$1.38$0.26$4.4$2.13
OpenRouterBYOKopenrouter:z-ai/glm-5.1 $1.4$0.26$4.4$2.15

The cheapest provider is highlighted. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/doubleword:zai-org/GLM-5.1-FP8', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask GLM 5.1 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

GLM 5.1vsQwen3.7 Plus
Intelligence index
205590$0.1$1$10Qwen3.7 Plus: 58.3 at $0.56 blendedGLM 5.1: 57.7 at $2.15 blended
GPQA Diamond
5075100$0.1$1$10Qwen3.7 Plus: 87.9% at $0.56 blendedGLM 5.1: 89.9% at $2.15 blended
OTIS Mock AIME
4070100$0.1$1$10Qwen3.7 Plus: 93.3% at $0.56 blendedGLM 5.1: 93.3% at $2.15 blended
FrontierMath
1055100$0.1$1$10Qwen3.7 Plus: 34.4% at $0.56 blendedGLM 5.1: 36.8% at $2.15 blended
SimpleQA Verified
1055100$0.1$1$10GLM 5.1: 34% at $2.15 blended
SWE-bench Verified
507090$0.1$1$10GLM 5.1: 74.2% at $2.15 blended
SciCode
204570$0.1$1$10Qwen3.7 Plus: 46.1% at $0.56 blendedGLM 5.1: 44.8% at $2.15 blended
WebDev Arena
122015251830$0.1$1$10GLM 5.1: 1508.3 at $2.15 blended
APEX-Agents
04590$0.1$1$10GLM 5.1: 40.9% at $2.15 blended
LMArena text
128014101540$0.1$1$10Qwen3.7 Plus: 1454.4 at $0.56 blendedGLM 5.1: 1462.3 at $2.15 blended
Epoch Capabilities Index
120150180$0.1$1$10Qwen3.7 Plus: 147.9 at $0.56 blendedGLM 5.1: 150.7 at $2.15 blended

Score against blended price per 1M tokens (log scale). GLM 5.1   Qwen3.7 Plus   other models

Intelligence indexOur composite of the benchmarks below, 0-100
GLM 5.157.7
Qwen3.7 Plus58.3
GPQA DiamondGraduate-level science questions, multiple choice
GLM 5.189.9%
Qwen3.7 Plus87.9%
OTIS Mock AIMECompetition mathematics problems with exact answers
GLM 5.193.3%
Qwen3.7 Plus93.3%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
GLM 5.136.8%
Qwen3.7 Plus34.4%
SimpleQA VerifiedShort factual questions answered from memory, without search
GLM 5.134%
Qwen3.7 Plus–
SWE-bench VerifiedReal GitHub issues resolved, run by Epoch with one fixed scaffold
GLM 5.174.2%
Qwen3.7 Plus–
SciCodeScientific programming problems written by researchers
GLM 5.144.8%
Qwen3.7 Plus46.1%
WebDev ArenaRating from human votes on web apps the models built
GLM 5.11508.3
Qwen3.7 Plus–
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
GLM 5.140.9%
Qwen3.7 Plus–
LMArena textRating from blind human votes between pairs of chat responses
GLM 5.11462.3
Qwen3.7 Plus1454.4
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
GLM 5.1150.7
Qwen3.7 Plus147.9
Input pricePer 1M tokens, lower is better
GLM 5.1$1.4
Qwen3.7 Plus$0.32
Output pricePer 1M tokens, lower is better
GLM 5.1$4.4
Qwen3.7 Plus$1.28
EfficiencyIndex points per blended $
GLM 5.127
Qwen3.7 Plus104
SpeedOutput tokens per second
GLM 5.140 t/s
Qwen3.7 Plus37.5 t/s
Context windowTokens
GLM 5.1200k
Qwen3.7 Plus1M
Model stringFor Pydantic AI
GLM 5.1gateway/doubleword:zai-org/GLM-5.1-FP8
Qwen3.7 Plusopenrouter:qwen/qwen3.7-plus

About GLM 5.1

Description written by an LLM from the data on this page

An open-weight model from Z.ai, released April 2026, with a mid-table benchmark profile. It stands out for a strong LMArena human-preference rating and a 200k context window.

GLM 5.1 is an open-weight model from Z.ai, released in April 2026. It accepts text only and offers a 200k context window, up to 131k output tokens, reasoning mode, tool calling and structured output. Its composite Intelligence Index score of 57.7 ranks 65th of 114 and sits just under the median.

Results are mixed. It places well on LMArena human votes, 32nd of 114, and is near the median on GPQA Diamond and SWE-bench Verified. It trails the field on FrontierMath, where it ranks 65th of 80, on APEX-Agents long professional tasks, and on SimpleQA factual recall.

Cost is the main trade-off. At $1.4 per million input tokens and $4.4 per million output tokens, its blended price is about double the registry median, and its efficiency ranks 70th of 194. Five providers serve it, including Z.ai and OpenRouter, and it is available through the Gateway.

Strengths

  • LMArena text rating of 1462, 32nd of 114, above the median
  • Open weights, with a 200k context window and 131k maximum output
  • Supports tool calling, reasoning mode and structured output
  • Served by five providers and available through the Gateway

Weaknesses

  • Intelligence index 57.7, 65th of 114, just below the median
  • APEX-Agents long professional tasks at 40.9%, 48th of 60
  • Blended price of $2.15 per million tokens, about double the median

Best for

Chat-style and coding agents where a 200k context and open weights matter more than top-tier accuracy.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs