Z.ai, released Apr 7, 2026
GLM 5.1
GLM 5.1 is an open-weights reasoning model from Z.ai that launched on April 7, 2026, putting it behind the newer GLM 5.2 and GLM 5.3 releases in their lineup. It's built around coding and long-running work where the model needs to keep plugging away on its own rather than just answering quick, one-off prompts. Even with newer options like GLM 5.3 and GLM 5.3 Flash sitting way lower on price, 5.1 is still on the pricier end of Z.ai's catalog (only GLM 5.3 Prime costs more).
Already paying for ChatGPT or Claude?
GLM 5.1 costs $4.40 per 1M output tokens. Use GPT-6 and Claude through your plan instead, $0 per token.
Updated
GLM 5.1 pricing and specs
- Input
- $1.40per 1M tokens
- Output
- $4.40per 1M tokens
- Cached input
- $0.26per 1M tokens
- Context window
- 203K202,752 tokens
- Max output
- 131K131,072 tokens
- Released
- Apr 7, 2026
- Accepts
- Text
- Features
- Tool callingReasoningStructured outputsOpen weights
What GLM 5.1 is good at
- Long, multi-step coding tasks where you want the model running on its own over a stretch instead of needing constant hand-holding.
- Big single-shot outputs. The max output length is huge, so it's a solid fit when a single reply needs to carry a lot of code or text at once.
- Tool-heavy agent loops that also need reliable structured JSON output.
- Trying a model over an API when you might want the option to self-host later, since the weights are open on Hugging Face as zai-org/GLM-5.1.
Good to know
- It only takes text. If your workflow sends images or screenshots, you'll need something else.
- Reasoning is on by default. You can turn it down when you don't need it, which is worth remembering if you're using it on simpler steps.
- Look at Z.ai's newer models before you commit to this one. GLM 5.2, GLM 5.3, GLM 5.3 Flash and GLM 5.3 FlashX all came out later and cost less, so 5.1 is a harder sell unless you specifically want its open weights or how it handles long coding runs.
GLM 5.1 vs similar models
| Model | Input | Output | Plan2API | Context |
|---|---|---|---|---|
| GLM 5.1 | $1.40 | $4.40 | Not available | 203K |
| GLM 5.4 | $1.40 | $4.40 | Not available | 1M |
| GLM 5.3 FlashX Legal | $0.37 | $1.25 | Not available | 1M |
| GLM 5.3 Prime | $1.68 | $5.28 | Not available | 1M |
| Gemini 3.8 Flash | $0.825 | $4.125 | $0 on Gemini | 1M |
| Qwen3.7 Max | $1.475 | $4.425 | Not available | 1M |
GLM 5.1 cost per month
| Workload | API price |
|---|---|
| Side project2M in, 500K out | $5.00 |
| Production app25M in, 5M out | $57.00 |
| Agents at scale250M in, 50M out | $570 |
FAQ
How much does the GLM 5.1 API cost?
GLM 5.1 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens, and cached input costs $0.26 per 1M.
What is the GLM 5.1 context window?
GLM 5.1 takes 202,752 tokens of context, with up to 131,072 output tokens per request.
When was GLM 5.1 released?
Z.ai released GLM 5.1 on Apr 7, 2026.
Can I use GLM 5.1 with my subscription?
Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6 and Claude models run through your ChatGPT or Claude plan at $0 per token instead.
Can I self-host GLM 5.1 instead of calling it through an API?
Yes, Z.ai published the weights openly on Hugging Face under zai-org/GLM-5.1. So you aren't stuck with a hosted API if you decide to run it yourself down the line.
Is reasoning always turned on?
Out of the box, yes, reasoning runs by default. But you can dial it down when a request doesn't need that much thinking.
More Z.ai models
Already paying for ChatGPT or Claude? Use GPT-6 and Claude through your plan, $0 per token.
- Free: 1 subscription, no daily cap, no card
- Pro: $12 a month