Textby Z.AI

GLM 5

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...

  • By price it is in the pricier half of the 345 text models GenMagic runs (225th cheapest).
  • Among the models GenMagic runs, it places in the top 10 on 1 of its 35 benchmarks: 8th of 14 on CL-bench.
  • It was listed on Feb 11, 2026.

Data last changed Nov 13, 2026 · tracked since Oct 29, 2026 · Every model change

Try GLM 5

Generate with GLM 5 right here. Verify your email to start with free credits.

~$0.006
Try

Specifications

Context window

205K tokens

Max output

131K tokens

Input price

$1.50 / 1M tokens

Output price

$4.80 / 1M tokens

Cached input

$0.30 / 1M tokens

Benchmarks

How GLM 5 scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

AIMEMathematics

80%± 6.0

source date 2026-02-12
Source: epoch
APEX-AgentsAgentic & Tool Use

17.2%

Source: epoch
ARC-AGI-1Reasoning & Knowledge

44.7%

Source: epoch
ARC-AGI-2Reasoning & Knowledge

4.9%

Source: epoch
Chess PuzzlesReasoning & Knowledge

10%± 3.0

source date 2026-02-12
Source: epoch
CL-benchLong Context

18.7%

Source: epoch
Design Arena: 3DDesign & Generation

1212 Elo

Source: designarena
Design Arena: CodeDesign & Generation

1237 Elo

Source: designarena
Design Arena: SVGDesign & Generation

1160 Elo

Source: designarena
FrontierMathMathematics

16.4%± 2.2

source date 2026-02-19
Source: epoch

2.1%± 2.1

source date 2026-02-19
Source: epoch
GPQA DiamondReasoning & Knowledge

77.4%± 5.4

source date 2026-10-31
Source: openrouter
LMArena (Coding)Instruction & Preference

1462 Elo

source date 2026-11-11
Source: lmarena
LMArena: Creative WritingInstruction & Preference

1437 Elo

source date 2026-11-11
Source: lmarena
LMArena: Hard PromptsInstruction & Preference

1452 Elo

source date 2026-11-11
Source: lmarena

1446 Elo

source date 2026-11-11
Source: lmarena
LMArena: MathMathematics

1450 Elo

source date 2026-11-11
Source: lmarena
LMArena: Multi-TurnInstruction & Preference

1456 Elo

source date 2026-11-11
Source: lmarena
LMArena (Overall)Instruction & Preference

1446 Elo

source date 2026-11-11
Source: lmarena
SimpleBenchReasoning & Knowledge

53.2%

Source: epoch

72.1%± 2.1

source date 2026-02-15
Source: epoch
tau-bench (Airline)Agentic & Tool Use

74.4%± 3.4

source date 2026-10-31
Source: openrouter
WebDev ArenaAgentic & Tool Use

1436 Elo

Source: epoch
WeirdMLCoding

48.2%± 0.0

Source: epoch

Compare against every model in the full benchmark matrix.

Capabilities

Reasoning

Works through multi-step problems before answering, for harder tasks.

Tool use

Can call functions and tools, enabling agentic and structured workflows.

Structured output

Returns validated JSON that conforms to a schema you define.

Use GLM 5 through the API

The model id is z-ai/glm-5. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="z-ai/glm-5",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "z-ai/glm-5" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use GLM 5 in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick Z.ai: GLM 5, or enter z-ai/glm-5 as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
Z.ai: GLM 5 (this model)Z.AI$1.50 in / $4.80 out per 1M tokens205K
Qwen: Qwen3.5 397B A17BQwen$0.90 in / $5.40 out per 1M tokens262K
MoonshotAI: Kimi K2.7 CodeMoonshot AI$0.90 in / $5.25 out per 1M tokens262K
Pareto 26.10Unbiased$1.20 in / $4.80 out per 1M tokens1M
Relace: Relace SearchRelace$1.50 in / $4.50 out per 1M tokens256K
Nous: Hermes 4 405BNous Research$1.50 in / $4.50 out per 1M tokens131K

More from Z.AI

All 19 Z.AI models

Price and listing history

Every change GenMagic has recorded for GLM 5 since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 1, 2026Price up 36%$1.10 in / $3.52 out per 1M tokens$1.50 in / $4.80 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as Z.AI publishes them (model card on Hugging Face), checked daily.
  • Benchmarks: 35 scores from Epoch AI, Design Arena, Artificial Analysis and OpenRouter, LMArena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 13, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with GLM 5 today

One GenMagic plan unlocks GLM 5 and every other model across text, image, audio, and video.