Models / Z.ai / GLM 5
Z.ai

GLM 5

BYOKOpen weightsReleased 12 Feb 2026

An open-weights model from Z.ai, released February 2026, with tool calling and structured output. Its clearest result is on Terminal-Bench, while math and abstract reasoning trail the registry.

Read the full description ↓

Spec sheet

Family
Z.ai
Released
12 Feb 20269 months ago
Weights
Open
Context window
200k tokens
Largest response
131k tokens
Accepts
text
Supports
tools, reasoning, structured output
Knowledge cutoff
–
Intelligence index
54.5#67
Input price
$1 / 1M
Output price
$3.2 / 1M
Blended price (3:1)
$1.55 / 1M
Index points per $
35.2#59
Speed
45.5 tokens/sec#134
Popularity
#94 of 194by usage
Providers
4
Weights on
zai-org/GLM-5

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$0.2$3.2$1.55
Zhipu AIBYOK–$0.55$0.14$2.48$1.03
NovitaBYOK–$1$0.2$3.2$1.55
OpenRouterBYOKopenrouter:z-ai/glm-5 $1$0.2$3.2$1.55

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['ZAI_API_KEY'] = '...'

agent = Agent('zai:GLM-5', instructions='Be concise, reply with one sentence.')

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

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

Compare

GLM 5vsDeepSeek V4 Flash 0423
Intelligence index
205590$0.1$1$10DeepSeek V4 Flash 0423: 54.5 at $0.17 blendedGLM 5: 54.5 at $1.55 blended
GPQA Diamond
5075100$0.1$1$10GLM 5: 87.8% at $1.55 blended
OTIS Mock AIME
4070100$0.1$1$10GLM 5: 80% at $1.55 blended
ARC-AGI-2
050100$0.1$1$10GLM 5: 4.9% at $1.55 blended
SWE-bench Verified
507090$0.1$1$10GLM 5: 72.1% at $1.55 blended
Terminal-Bench
04590$0.1$1$10GLM 5: 52.4% at $1.55 blended
SciCode
204570$0.1$1$10DeepSeek V4 Flash 0423: 44.9% at $0.17 blended
WebDev Arena
122015251830$0.1$1$10DeepSeek V4 Flash 0423: 1430.9 at $0.17 blendedGLM 5: 1435.9 at $1.55 blended
LMArena text
128014101540$0.1$1$10DeepSeek V4 Flash 0423: 1431.8 at $0.17 blendedGLM 5: 1445.9 at $1.55 blended
Epoch Capabilities Index
120150180$0.1$1$10DeepSeek V4 Flash 0423: 146.9 at $0.17 blendedGLM 5: 146.5 at $1.55 blended

Score against blended price per 1M tokens (log scale). GLM 5   DeepSeek V4 Flash 0423   other models

Intelligence indexOur composite of the benchmarks below, 0-100
GLM 554.5
DeepSeek V4 Flash 042354.5
GPQA DiamondGraduate-level science questions, multiple choice
GLM 587.8%
DeepSeek V4 Flash 0423–
OTIS Mock AIMECompetition mathematics problems with exact answers
GLM 580%
DeepSeek V4 Flash 0423–
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
GLM 54.9%
DeepSeek V4 Flash 0423–
SWE-bench VerifiedReal GitHub issues resolved, run by Epoch with one fixed scaffold
GLM 572.1%
DeepSeek V4 Flash 0423–
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
GLM 552.4%
DeepSeek V4 Flash 0423–
SciCodeScientific programming problems written by researchers
GLM 5–
DeepSeek V4 Flash 042344.9%
WebDev ArenaRating from human votes on web apps the models built
GLM 51435.9
DeepSeek V4 Flash 04231430.9
LMArena textRating from blind human votes between pairs of chat responses
GLM 51445.9
DeepSeek V4 Flash 04231431.8
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
GLM 5146.5
DeepSeek V4 Flash 0423146.9
Input pricePer 1M tokens, lower is better
GLM 5$1
DeepSeek V4 Flash 0423$0.14
Output pricePer 1M tokens, lower is better
GLM 5$3.2
DeepSeek V4 Flash 0423$0.28
EfficiencyIndex points per blended $
GLM 535
DeepSeek V4 Flash 0423311
SpeedOutput tokens per second
GLM 545.5 t/s
DeepSeek V4 Flash 042367 t/s
Context windowTokens
GLM 5200k
DeepSeek V4 Flash 04231M
Model stringFor Pydantic AI
GLM 5zai:GLM-5
DeepSeek V4 Flash 0423gateway/doubleword:deepseek-ai/DeepSeek-V4-Flash

About GLM 5

Description written by an LLM from the data on this page

An open-weights model from Z.ai, released February 2026, with tool calling and structured output. Its clearest result is on Terminal-Bench, while math and abstract reasoning trail the registry.

GLM 5 is an open-weights text model from Z.ai, released February 2026. It has a 200k context window, up to 131k output tokens, and supports tool calling, reasoning mode and structured output. Input costs $1 per million tokens and output $3.20, giving a blended price of $1.55, above the registry median of $1.01.

Its intelligence index of 54.5 ranks 70th of 114, below the median of 59.5. Terminal-Bench is its clearest strength at 52.4%, 13th of 35, and its LMArena text rating sits just above the median. Math and abstract reasoning lag behind: OTIS Mock AIME is at 80% and ARC-AGI-2 at 4.9%, both near the bottom of the registry.

The model is served by Z.ai, Zhipu AI, Novita and OpenRouter. It is a reasonable fit for agent workloads centred on tool use and terminal work, rather than on hard mathematical or abstract reasoning.

Strengths

  • 52.4% on Terminal-Bench, 13th of 35, above the 43.2% median
  • 1445.9 on LMArena text, 45th of 114, just above the median
  • Open weights, with a 200k context window and 131k maximum output
  • Supports tool calling, reasoning mode and structured output

Weaknesses

  • 4.9% on ARC-AGI-2, 59th of 68, far below the 61.3% median
  • 80.0% on OTIS Mock AIME, 81st of 95, below the 94.2% median
  • Blended price of $1.55 per million tokens, above the $1.01 median

Best for

Agents running terminal tasks with tool calling and structured output, where math and abstract reasoning matter less.

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