GLM-5.1
z-ai/glm-5.1
- Released
- Apr 7, 2026
- Context window
- 205K
- Max output
- 131K
- In / out per 1M
- $1.40 / $4.40
- Inputs
- Text
Model guide · April 2026
z-ai/glm-5.1
GLM-5.1 is not available in our chat. The closest models you can try here for free are GLM-5.3 Flash and GLM-5.3.
§ 01Datasheet
| OpenRouter ID | z-ai/glm-5.1 |
|---|---|
| Developer | Z.ai |
| Released | Apr 7, 2026 |
| Context window | 204,800 tokens |
| Max output | 131,072 tokens |
| Input price | $1.40 per 1M tokens |
| Output price | $4.40 per 1M tokens |
| Inputs | Text |
| Open weights | zai-org/GLM-5.1 |
| Parameters | Not published |
| Licence | MIT |
| Free chat here | Guide only |
Source: OpenRouter model list and the official Hugging Face model cards.
§ 02Overview
GLM-5.1 was listed on OpenRouter on 7 April 2026. Its description makes a specific point: earlier models were built around minute-level interactions, while GLM-5.1 is meant to work independently and continuously on a task. The Hugging Face card puts it this way — the model "sustains optimization over hundreds of rounds and thousands of tool calls".
In practice that means the kind of work an engineer hands to an agent: break a problem down, run an experiment, read the result, find what blocks progress and try again. Z.ai says GLM-5.1 handles ambiguous problems with better judgment and stays productive over longer sessions than GLM-5.
On OpenRouter, GLM-5.1 has a context window of about 205K tokens and can return up to about 131K tokens per request. It accepts text and returns text. Pricing is $1.40 per million input tokens and $4.40 per million output tokens, a little higher than the original GLM-5.
The weights are published on Hugging Face as zai-org/GLM-5.1 under the MIT licence. Z.ai does not list a separate parameter count for GLM-5.1 on the card, so we do not quote one here.
GLM-5.1 was the long-horizon specialist of spring 2026. Since then GLM-5.2 has extended the context to about one million tokens and GLM-5.3 has improved coding further on the same base as GLM-5.2. For most new work, those newer models are the better default.
GLM-5.1 still makes sense if you already run it in an agent stack and your prompts are tuned for it, or if you want an MIT-licensed long-horizon model with a smaller context footprint. As always, test it on your real workload before switching.
§ 03Strengths
Z.ai built GLM-5.1 to keep improving a solution across hundreds of rounds and thousands of tool calls.
The model card highlights how it breaks down ambiguous problems and identifies blockers precisely.
Download zai-org/GLM-5.1 and use it commercially under a permissive licence.
On OpenRouter it supports tools and structured outputs, the building blocks of an agent loop.
§ 04How to try
GLM-5.1 is not in our chat, but its successor GLM-5.3 is. Try your coding task there first.
Call z-ai/glm-5.1 on OpenRouter with any OpenAI-compatible SDK and connect it to your agent framework.
Download zai-org/GLM-5.1 from Hugging Face and serve it with a framework such as vLLM or SGLang.
§ 05Family
Every model page uses the same datasheet, so you can compare them at a glance.
| Model | Released | Context window | In / out per 1M | Free chat here |
|---|---|---|---|---|
| GLM-5 | Feb 11, 2026 | 205K | $1 / $3.20 | — |
| GLM-5-Turbo | Mar 15, 2026 | 203K | $1.20 / $4 | — |
| GLM-5V-Turbo | Apr 1, 2026 | 203K | $1.20 / $4 | — |
| GLM-5.1 | Apr 7, 2026 | 205K | $1.40 / $4.40 | — |
| GLM-5.2 | Jun 16, 2026 | 1.05M | $0.0341 / $7 | — |
| GLM-5.3 | Aug 18, 2026 | 1.05M | $0.079 / $1.40 | In our chat |
| GLM-5.3 Flash | Aug 26, 2026 | 1.05M | $0.0052 / $0.1985 | In our chat |
| GLM-5.3 FlashX | Sep 18, 2026 | 1.05M | $0.37 / $1.25 | — |
| GLM-5.3 Prime | Sep 23, 2026 | 1M | $2.80 / $8.80 | — |
§ 06FAQ
For long, multi-step coding tasks Z.ai says it is a major improvement. It keeps the same context size on OpenRouter (about 205K tokens) and costs a little more per token.
Yes. It is on Hugging Face as zai-org/GLM-5.1 under the MIT licence.
OpenRouter lists 204,800 tokens of context and up to 131,072 output tokens per request.
Not directly. Our free chat runs GLM-5.3 Flash and GLM-5.3, the newer models of the same family.
§ 07Related
Try it now
No account, no card, no install. Type a question and watch GLM-5.3 Flash answer in seconds — switch to GLM-5.3 for the hardest problems.