Z.ai
GLM 5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.
At a glance
- Input / 1M
- $0.97
- Output / 1M
- $3.04
- Context
- 205K
- Max output
- 128K
- Intelligence
- 26.1
- Released
- Apr 2026
Pricing
GLM 5.1 API pricing
Per-token rates, plus what common tasks actually cost.
| Input tokensPer 1M tokens | $0.97 |
|---|---|
| Output tokensPer 1M tokens | $3.04 |
| Cached input (read)Per 1M tokens | $0.18 |
| Cache writePer 1M tokens | Not available |
Chat message
2K in, 500 out
$3.45
per 1,000 requests
Coding task
30K in, 4K out
$41.12
per 1,000 requests
Long document summary
150K in, 2K out
$150.97
per 1,000 requests
Benchmarks
GLM 5.1 benchmark scores
Independent scores from Artificial Analysis. Higher is better.
Intelligence index
26.1
Coding index
55.8
Agentic index
23.9
Specs
Context window and capabilities
What it can read, what it can write, and which API features it supports.
- Context window
- 205K tokens
- Max output
- 128K tokens
- Input types
- Text
- Output types
- Text
- Reasoning effort
- Not available
- Release date
- April 7, 2026
- Tool calling
- Structured outputs
- JSON mode
- Reasoning
- Temperature
- Stop sequences
- Deterministic seed
- Verbosity control
Compare
GLM 5.1 vs other models
See how GLM 5.1 stacks up head to head on price, benchmarks, and features.
GLM 5.1 vs GLM 5
Z.ai vs Z.ai
See comparisonGLM 5.1 vs Grok Build 0.1
Z.ai vs xAI
See comparisonGLM 5.1 vs Kimi K2.6
Z.ai vs Moonshot AI
See comparisonGLM 5.1 vs Qwen3.6 Plus
Z.ai vs Qwen
See comparisonGLM 5.1 vs GLM 5 Turbo
Z.ai vs Z.ai
See comparisonGLM 5.1 vs Gemini 3 Flash Preview
Z.ai vs Google
See comparisonAlternatives
GLM 5.1 alternatives
Similar models worth considering, and where each one has the edge.
Z.ai
GLM 5
Moonshot AI
Kimi K2.6
Z.ai
GLM 5 Turbo
Want to learn about other models? Browse all models
FAQ
Frequently asked questions
How much does GLM 5.1 cost?
GLM 5.1 costs $0.97 per 1M input tokens and $3.04 per 1M output tokens through the API. A typical chat message costs about $3.45 per 1,000 messages.
What is the context window of GLM 5.1?
GLM 5.1 accepts up to 205K tokens of input and can write up to 128K tokens in a single response.
What is the best alternative to GLM 5.1?
GLM 5 from Z.ai is a strong alternative. It offers: 1.6x cheaper output, higher intelligence score.
Can I use GLM 5.1 alongside other models?
Yes. Shortcut Chat sends one prompt to GLM 5.1 and any other models you pick at the same time, so you can compare answers side by side.
Try GLM 5.1 next to every other model.
Use GLM 5.1 alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.