Models›Z.ai›GLM 5.1

GLM 5.1

by Z.ai · released Apr 7, 2026 · 15 providers
Model IDz-ai/glm-5.1
ReasoningTool callingStructured outputsOpen weights · MIT

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.

Cheap mode · 35.8% off ↓
SAME MODEL · COMPARE API ROUTES

Cheap mode · 35.8% off

Fast mode prioritizes response speed. Cheap mode uses lower-cost capacity and may be a little slower. Both run GLM 5.1.

Per 1M tokens, including your 5% fee. Your selection carries into the playground and API example.

Per 1 million tokensFast modeCheap modeYou save
Input$1.47$0.943735.8%
Output$4.62$2.96635.8%
ILLUSTRATIVE USAGE · TOKEN CHARGESAggregate usage across calls, not a single request.
$6.09 → $3.9098Save $2.1802 · 35.8%

All displayed prices include the 5% Free-plan fee. Standard rates are OpenRouter’s published routing ceilings; the actual standard bill may be lower. Cheapest quote: Baidu. Savings compare uncached token rates; other provider charges and your usage mix can change the total. Availability is not guaranteed.

Quote checked 11/8/2026, 8:18:04 PM UTC.

Context
205k
tokens
Max output
128k
tokens per reply
Input
$1.40
provider baseline / 1M; fee applies
Output
$4.40
provider baseline / 1M; fee applies

Choose how to use GLM 5.1

Playground

Try prompts in your browser, create an agent, and see the cost of each reply. Your selected model carries into setup.

Model capabilities below describe the underlying model. Available playground features depend on its provider.

API

Connect your app with a Gizmo API key. Choose fastest or cheapest, stream text responses, and inspect timing, tokens, and charges in request logs.

A current API route is listed for this exact model. Gateway configuration is required for live calls.

Provider price + a transparent platform fee

RateProvider baselineFree plan · 5% feePaid plan · 4% fee
Input / 1M tokens$1.4$1.47$1.456
Output / 1M tokens$4.4$4.62$4.576
API input / 1M tokens$1.4$1.47$1.456
API output / 1M tokens$4.4$4.62$4.576

Legacy chat image rates use the catalog baseline. The dedicated image playground shows separate estimates and settles the provider’s metered usage. API rates are current routing ceilings; final API charges use provider-reported cost plus your fee. Cheapest routing compares eligible OpenRouter and Cheaper Inference rates for the same model; savings are not guaranteed. Cached input or other provider charges may differ. Compare all model rates and verified discounts →

How your plan pays for usage

API and playground share one included allowance. Usage including the fee draws from that allowance first, then your prepaid credits. Plans bill monthly; included usage resets weekly: Free $1, Starter $5, Growth $25, Scale $50.

A $1 provider charge becomes $1.05 on Free or $1.04 on a paid plan before included usage is applied. Plan eligibility still applies in the playground.

Free models and limits

Zero-cost models stay $0, including the fee, and do not consume your dollar allowance. Free accounts can make 1,000 free-model API requests per calendar month, resetting in UTC. Admitted requests count even if the provider fails.

Free includes 20 API requests/minute and 6 playground messages/minute. Paid plans raise these limits. See plan limits.

Before a text API request, Gizmo temporarily reserves included usage and, if necessary, prepaid credit for the model’s full context plus your maximum output. Image jobs reserve twice their displayed estimate. Unused funds return after metering. This hold can exceed the final charge; unconfirmed usage remains marked pending.

Overview

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 a single task for more than 8 hours, autonomously planning, executing, and improving itself throughout the process, ultimately delivering complete, engineering-grade results.

Benchmarks

Artificial Analysis indices independent, 0–100

Intelligence
26.4
Coding
55.8
Agentic
25.2

Design Arena head-to-head, human-voted

CategoryEloWin rateRank
Data viz136667%#2
agenticslides (agent)124554.4%#2
agenticslides(python-pptx) (agent)124053.3%#3
pptxslides (agent)124153.5%#3
agentichtmlslides (agent)120552%#5
agenticslides(html) (agent)120451.8%#5
python-pptxslides (agent)125854.2%#5
3D scenes133662.6%#8

Benchmark from the model card

GLM-5.1GLM-5Qwen3.6-PlusMinimax M2.7DeepSeek-V3.2Kimi K2.5Claude Opus 4.6
HLE31.030.528.828.025.131.536.7
HLE (w/ Tools)52.350.450.6-40.851.853.1*
AIME 202695.395.495.189.895.194.595.6
HMMT Nov. 202594.096.994.681.090.291.196.3
HMMT Feb. 202682.682.887.872.779.981.384.3
IMOAnswerBench83.882.583.866.378.381.875.3
GPQA-Diamond86.286.090.487.082.487.691.3
SWE-Bench Pro58.455.156.656.2-53.857.3
NL2Repo42.735.937.939.8-32.049.8
Terminal-Bench 2.0 (Terminus-2)63.556.261.6-39.350.865.4
Terminal-Bench 2.0 (Best self-reported)69.0 (Claude Code)56.2 (Claude Code)-57.0 (Claude Code)46.4 (Claude Code)--
CyberGym68.748.3--17.341.366.6
BrowseComp68.062.0--51.460.6-
BrowseComp (w/ Context Manage)79.375.9--67.674.984.0
τ³-Bench70.669.270.767.669.266.072.4
MCP-Atlas (Public Set)71.869.274.148.862.263.873.8
Tool-Decathlon40.738.039.846.335.227.847.2
Vending Bench 2$5,634.41$4,432.12$5,114.87-$1,034.00$1,198.46$8,017.59

Capabilities

Input
✍️ Text
Output
✍️ Text
✓ Tool calling✓ Structured outputs✓ JSON mode✓ Reasoning✓ Reasoning traces✓ Seeded sampling✓ Log probabilities✓ Stop sequences✓ Logit bias

Reasoning is on by default.

Sampling controls: temperature, top_p, top_k, min_p, max_tokens, frequency_penalty, presence_penalty, repetition_penalty. Defaults: top_k null, top_p 0.95, temperature 1, presence_penalty null, frequency_penalty null, repetition_penalty null.

Pricing on Gizmo

These are provider baseline rates before Gizmo’s 5% Free-plan or 4% paid-plan fee. Your included usage covers charges first; overage uses prepaid credits. See the fee-inclusive comparison above.

Provider baseline rates

Input
$1.40 / 1M
Cached input
$0.179 / 1M
Output
$4.40 / 1M

Examples before the platform fee

Typical chat turn
$0.005 2k in · 500 out
$1 of input
≈ 714k tokens
$1 of output
≈ 227k tokens
Full context, once
$0.29
Paid plans. This model is above the free tier’s price ceiling. Starter ($20/mo) covers $5 of usage weekly, Growth $25, Scale $50; every paid plan includes $25 in bonus credits.

Providers and pricing

10 ways to run GLM 5.1 on Gizmo, cheapest first. Requests follow your routing choice and fall back down this list if a provider fails.

ProviderRouteInput / 1MOutput / 1MContextUptime 24h
Baidu · fp8Lowest priceOpenRouter$0.90$2.82203k99.2%
Chutes · fp8OpenRouter$0.90$2.90203k98.5%
StreamLake · fp8OpenRouter$0.97$3.04200k100%
SiliconFlow · fp8OpenRouter$1.19$3.74205k99.8%
AtlasCloud · fp8OpenRouter$1.26$3.96203k100%
PhalaOpenRouter$1.21$4.20203k100%
Alibaba · fp8OpenRouter$1.33$4.18203k100%
Novita · fp8OpenRouter$1.38$4.40205k100%
Nebius · fp8OpenRouter$1.40$4.40203k99.2%
GMICloud · fp8OpenRouter$1.40$4.40203k100%

Rates are each provider’s, per million tokens, before Gizmo’s 5% (Free) or 4% (paid) fee. “Cheapest” routing starts at the top of this list; “Fastest” starts with the model’s maker.

Run GLM 5.1 in under a minute

1

Create your account

Sign up with just an email. Start on the free tier with no card, or pick a paid plan for a bigger weekly allowance and $25 in bonus credits.

2

Your agent is ready

GLM 5.1 is preselected as the brain of your first agent. Give it a name and a system prompt, or keep the defaults.

3

Chat, research, create

Live web research and image generation are built in. Every reply shows what it cost, and you can switch models anytime.

Sources. OpenRouter · Hugging Face · Artificial Analysis · Design Arena · Z.ai documentation. Verified Sep 9, 2026. Baseline prices are the provider’s list prices at sync time. Gizmo adds a 5% fee on Free or 4% on paid plans; included usage is applied before overage credits.