Skip to content
NINJA

GLM 5.1

Released by Z.ai on 7 Apr 2026.

API id z-ai/glm-5.1

Input price
$1.40 / 1M tokens
Output price
$4.40 / 1M tokens
Context window
205K tokens
Longest reply
182K tokens

About this model

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...

Description from the model’s public catalogue listing.

Capabilities

Reads
Text
Writes
Text
Reasoning mode
Yes
Tool calling
Yes
Open weights
Yes
Cached input
$0.26 / 1M tokens

What it would cost

At list price, without caching or batch discounts.

1,000 chat replies2K tokens in, 500 out each
$5.00
Summarise 100 long reports50K tokens in, 1K out each
$7.44
A coding agent’s working day20M tokens in, 1M out
$32.40
Price your own workload on every model

Price history

Per 1M tokens, input then output. Tracked since 30 Sept 2026.

12 Nov 2026
$1.33 → $1.40+5%$4.18 → $4.40+5%
11 Nov 2026
$1.40 → $1.33-5%$4.40 → $4.18-5%
28 Oct 2026
$0.97 → $1.40+45%$3.04 → $4.40+45%
27 Oct 2026
$1.40 → $0.97-31%$4.40 → $3.04-31%
21 Oct 2026
$0.97 → $1.40+45%$3.04 → $4.40+45%
15 Oct 2026
$1.33 → $0.97-27%$4.18 → $3.04-27%
14 Oct 2026
$0.97 → $1.33+38%$3.04 → $4.18+38%
7 Oct 2026
$1.40 → $0.97-31%$4.40 → $3.04-31%
3 Oct 2026
$0.96 → $1.40+45%$3.03 → $4.40+45%

Alternatives at a similar price

From other labs, priced within about 40% of GLM 5.1, with a comparable context window.

More from Z.ai

See all