Textby Z.AI

GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

  • By price it is in the pricier half of the 345 text models GenMagic runs (242nd cheapest).
  • It scores 26.4 on the Artificial Analysis Intelligence Index, 51st of the 120 text models with a score.
  • Among the models GenMagic runs, it places in the top 10 on 3 of its 43 benchmarks: 2nd of 118 on Design Arena: Data Viz, 4th of 29 on Design Arena: PPTX Slides (agentic), 10th of 36 on FrontierMath Tier 4 (v1, archived).
  • It was listed on Apr 7, 2026.

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

Try GLM 5.1

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

~$0.009
Try

Specifications

Context window

205K tokens

Max output

131K tokens

Input price

$2.10 / 1M tokens

Output price

$6.60 / 1M tokens

Cached input

$0.39 / 1M tokens

Benchmarks

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

23.9

source date 2026-11-11
Source: openrouter

55.8

source date 2026-11-11
Source: openrouter

26.4

source date 2026-09-18
Source: openrouter
AIMEMathematics

93.3%± 3.8

source date 2026-08-10
Source: epoch
APEX-AgentsAgentic & Tool Use

40.9%

Source: epoch
Chess PuzzlesReasoning & Knowledge

20%± 4.0

source date 2026-10-14
Source: epoch
Design Arena: 3DDesign & Generation

1336 Elo

Source: designarena
Design Arena: CodeDesign & Generation

1261 Elo

Source: designarena
Design Arena: SVGDesign & Generation

1209 Elo

Source: designarena
FrontierMathMathematics

33.4%± 2.8

source date 2026-05-11
Source: epoch

12.5%± 4.8

source date 2026-05-12
Source: epoch

36.8%± 2.9

source date 2026-08-29
Source: epoch
GPQA DiamondReasoning & Knowledge

80.8%± 1.7

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

1485 Elo

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

1453 Elo

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

1473 Elo

source date 2026-11-11
Source: lmarena

1467 Elo

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

1471 Elo

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

1472 Elo

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

1462 Elo

source date 2026-11-11
Source: lmarena
ProofBenchMathematics

22.2%± 4.2

Source: epoch
SimpleBenchReasoning & Knowledge

55.1%

Source: epoch
SimpleQA VerifiedReasoning & Knowledge

34%± 1.5

source date 2026-08-27
Source: epoch

74.2%± 2.0

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

71.9%± 3.6

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

1508 Elo

Source: epoch
WeirdMLCoding

57.1%± 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.1 through the API

The model id is z-ai/glm-5.1. 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.1",
    "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.1",
    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.1" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use GLM 5.1 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.1, or enter z-ai/glm-5.1 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.1 (this model)Z.AI$2.10 in / $6.60 out per 1M tokens205K
Qwen: Qwen3.7 MaxQwen$2.21 in / $6.64 out per 1M tokens1M
OpenAI: GPT-6.1 Terra ProOpenAI$1.50 in / $7.50 out per 1M tokens1.1M
Anthropic: Claude Haiku 4.5Anthropic$1.50 in / $7.50 out per 1M tokens200K
Meta: Muse Spark OpenMeta$1.88 in / $6.38 out per 1M tokens1M
Writer: Palmyra X5Writer$0.90 in / $9.00 out per 1M tokens1M

Compare GLM 5.1

More from Z.AI

All 19 Z.AI models

Price and listing history

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

DateChangeBeforeAfter
Nov 12, 2026Price up 5%$2.00 in / $6.27 out per 1M tokens$2.10 in / $6.60 out per 1M tokens
Nov 11, 2026Price down 5%$2.10 in / $6.60 out per 1M tokens$2.00 in / $6.27 out per 1M tokens
Nov 1, 2026Price up 36%$1.54 in / $4.84 out per 1M tokens$2.10 in / $6.60 out per 1M tokens

In our guides

The guides that discuss GLM 5.1 or show it in a live table.

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: 43 scores from Artificial Analysis and OpenRouter, Epoch AI, Design Arena, 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.1 today

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