GLM 5.1

Z.ai · On OpenRouter since April 7, 2026 · Pinned version id: z-ai/glm-5.1-20260406

Price

$2.15

mixed / 1M tokens

Mixed price per 1M tokens: 3 input tokens to 1 output token.

in $1.40 · out $4.40 · Cached input $0.26

Models that think before they answer can use many more output tokens, so your real cost can be higher than the figure shown.

US dollars per million tokens, converted to your currency at the NBP rate.

Tasks, with the evidence

Each line names the measurement it rests on. A task that is not listed has no measurement or declared feature we can show.

Writing code

Measured by a third party

Coding Index: 55.8 · Rank 32 of 86, among scored models · Artificial Analysis, read November 18, 2026

Code: 1,253 · Rank 38 of 122, among scored models · Design Arena, read November 21, 2026

Cost of this job: $1.01

Models that score at least as high for less in this scenario: 15

Agents that use tools

Measured by a third party

Agentic Index: 23.9 · Rank 21 of 64, among scored models · Artificial Analysis, read November 18, 2026

Cost of this job: $7.14

Models that score at least as high for less in this scenario: 8

Websites and apps Top 25%

Measured by a third party

Websites: 1,290 · Rank 20 of 127, among scored models · Top 25% · Design Arena, read November 21, 2026

UI components: 1,292 · Rank 20 of 118, among scored models · Top 25% · Design Arena, read November 21, 2026

Web apps (agent): 1,148 · Rank 30 of 47, among scored models · Design Arena, read November 21, 2026

Full-stack apps (agent): 1,140 · Rank 26 of 45, among scored models · Design Arena, read November 21, 2026

Mobile apps (agent): 1,152 · Rank 32 of 50, among scored models · Design Arena, read November 21, 2026

Android apps (agent): 1,173 · Rank 20 of 41, among scored models · Design Arena, read November 21, 2026

Cost of this job: $0.46

Models that score at least as high for less in this scenario: 6

Games and 3D

Measured by a third party

Game development: 1,244 · Rank 34 of 121, among scored models · Design Arena, read November 21, 2026

3D scenes: 1,336 · Rank 15 of 114, among scored models · Top 25% · Design Arena, read November 21, 2026

Godot games (agent): 1,027 · Rank 32 of 34, among scored models · Design Arena, read November 21, 2026

Games (agent): 1,109 · Rank 19 of 25, among scored models · Design Arena, read November 21, 2026

Cost of this job: $0.46

Models that score at least as high for less in this scenario: 13

Slides and spreadsheets

Measured by a third party

PowerPoint files (agent): 1,258 · Rank 5 of 29, among scored models · Design Arena, read November 21, 2026

HTML slides (agent): 1,072 · Rank 16 of 25, among scored models · Design Arena, read November 21, 2026

Spreadsheets (agent): 1,315 · Rank 4 of 32, among scored models · Top 10% · Design Arena, read November 21, 2026

Cost of this job: $0.46

Charts and graphics Top 10% No cheaper model scores as high

Measured by a third party

Data visualization: 1,366 · Rank 2 of 112, among scored models · Top 10% · Design Arena, read November 21, 2026

SVG graphics: 1,202 · Rank 28 of 84, among scored models · Design Arena, read November 21, 2026

ASCII art: 1,130 · Rank 50 of 68, among scored models · Design Arena, read November 21, 2026

Cost of this job: $0.46

The size of each job is our assumption; the prices are real.

  • Writing code: Requests: 40. Input tokens per request: 30,000. Output tokens per request: 1,500. Share of input served from cache: 70%.
  • Agents that use tools: Requests: 200. Input tokens per request: 45,000. Output tokens per request: 2,500. Share of input served from cache: 75%.
  • Websites and apps; Games and 3D; Slides and spreadsheets; Charts and graphics: Requests: 8. Input tokens per request: 12,000. Output tokens per request: 10,000. Share of input served from cache: 30%.

Thinking is billed as output tokens; a model that thinks longer costs more than this estimate. Ranks are among all models we list, including older ones. The share is rounded up to whole models, so a rank slightly past the exact share still counts. Models with equal scores share the better rank.

Price by provider

The price used in the catalog is the vendor's own; when the vendor has no API of its own, it is the cheapest regular host.

ProviderInputOutputCached inputMixedNotes
Baidu $0.8988$2.82 $0.1669 $1.38 36% cheaper fp8 · promo −36%
Chutes $0.90$2.90 $0.09 $1.40 35% cheaper fp8
StreamLake $0.966$3.04 $0.1794 $1.48 31% cheaper fp8 · promo −31%
SiliconFlow $1.19$3.74 $0.60 $1.83 15% cheaper fp8
AtlasCloud $1.26$3.96 $0.234 $1.94 10% cheaper fp8
Alibaba $1.33$4.18 $0.247 $2.04 5% cheaper fp8
Novita $1.38$4.40 $0.26 $2.14 1% cheaper fp8
Z.ai Vendor Price used here $1.40$4.40 $0.26 $2.15 fp8
Show all providers: 11
  • Friendli: $1.40 / $4.40 · $2.15
  • GMICloud: $1.40 / $4.40 · $2.15
  • Venice: $1.40 / $4.40 · $2.15

Specifications

Context window
205k
Max output
131k
Accepts
text
Answers with
text
Tools
Yes
Structured output
Yes
Reasoning
Optional
Thinking is on by default
Weights on Hugging Face
Hugging Face A Hugging Face repository is linked. We did not check the licence; read it before you build on it.
Knowledge cutoff
No data
On OpenRouter since
April 7, 2026
Price check
one source

As listed by OpenRouter. "Not listed" means OpenRouter does not list it for this model.

Benchmark scores

Scores come from third parties and are relayed by OpenRouter. We do not run the tests. Higher is better.

SourceScoreRank among scored
Coding Index
Artificial Analysis, read November 18, 2026
55.8Rank 32 of 86, among scored models
Agentic Index
Artificial Analysis, read November 18, 2026
23.9Rank 21 of 64, among scored models
Websites
Design Arena, read November 21, 2026
1,290Rank 20 of 127, among scored models Top 25%
UI components
Design Arena, read November 21, 2026
1,292Rank 20 of 118, among scored models Top 25%
Game development
Design Arena, read November 21, 2026
1,244Rank 34 of 121, among scored models
3D scenes
Design Arena, read November 21, 2026
1,336Rank 15 of 114, among scored models Top 25%
Data visualization
Design Arena, read November 21, 2026
1,366Rank 2 of 112, among scored models Top 10%
SVG graphics
Design Arena, read November 21, 2026
1,202Rank 28 of 84, among scored models
ASCII art
Design Arena, read November 21, 2026
1,130Rank 50 of 68, among scored models
Code
Design Arena, read November 21, 2026
1,253Rank 38 of 122, among scored models
Web apps (agent)
Design Arena, read November 21, 2026
1,148Rank 30 of 47, among scored models
Full-stack apps (agent)
Design Arena, read November 21, 2026
1,140Rank 26 of 45, among scored models
Mobile apps (agent)
Design Arena, read November 21, 2026
1,152Rank 32 of 50, among scored models
Android apps (agent)
Design Arena, read November 21, 2026
1,173Rank 20 of 41, among scored models
Godot games (agent)
Design Arena, read November 21, 2026
1,027Rank 32 of 34, among scored models
Games (agent)
Design Arena, read November 21, 2026
1,109Rank 19 of 25, among scored models
PowerPoint files (agent)
Design Arena, read November 21, 2026
1,258Rank 5 of 29, among scored models
HTML slides (agent)
Design Arena, read November 21, 2026
1,072Rank 16 of 25, among scored models
Spreadsheets (agent)
Design Arena, read November 21, 2026
1,315Rank 4 of 32, among scored models Top 10%
agents/agentichtmlslides
Design Arena, read November 21, 2026
1,205Rating 1,205; rank 5 at the source. Too few scored models for a tier.
agents/agenticslides
Design Arena, read November 21, 2026
1,245Rating 1,245; rank 2 at the source. Too few scored models for a tier.
agents/agenticslides(html)
Design Arena, read November 21, 2026
1,204Rating 1,204; rank 5 at the source. Too few scored models for a tier.
agents/agenticslides(python-pptx)
Design Arena, read November 21, 2026
1,240Rating 1,240; rank 3 at the source. Too few scored models for a tier.
agents/pdf
Design Arena, read November 21, 2026
1,204Rating 1,204; rank 20 at the source. Too few scored models for a tier.
agents/pptxslides
Design Arena, read November 21, 2026
1,241Rating 1,241; rank 3 at the source. Too few scored models for a tier.

Intelligence, Coding and Agentic indices: Artificial Analysis (artificialanalysis.ai). Design categories: Design Arena (designarena.ai). Both are relayed by the OpenRouter public model list and were read on November 21, 2026. We compute ranks, tiers and costs from these numbers; the sources have not reviewed them. Scores belong to the model, not to the route it is served on.

Artificial Analysis · Design Arena · Relayed by OpenRouter. opens in a new tab

Sources and dates

Prices: OpenRouter routes and a second price table, checked November 21, 2026. Specifications: OpenRouter, November 21, 2026. Exchange rate: NBP, November 20, 2026. Benchmarks: Artificial Analysis and Design Arena via OpenRouter.