Model registry / Z.ai (Zhipu, GLM) / GLM / GLM-5.1
GLM-5.1
Strong GLM coding model for agentic engineering, terminals, and repository generation
Line
GLM
Weights
Open
Released
2026-04-07
Context
200K
Input
$0.45 / 1M
Output
$2.15 / 1M
Max output
131K
Coverage
not covered yet
Overview
GLM-5.1 is a coding model from Z.ai (Zhipu, GLM) for agentic engineering, terminals, and repository generation. It is part of the glm line. It has a 200,000 token context window and a maximum output of 131,072 tokens. Weights are open. It supports reasoning mode and tool calling. It accepts text and returns text. Pricing starts at $0.45 per million input tokens and $2.15 per million output tokens, with cached input at $0.08 per million tokens.
Specs
Pricing
Against GLM-5V-Turbo: input $0.7042 to $0.45, output $3.10 to $2.15, cached input $0.169 to $0.08.
Range across the hosts that serve it: up to $1.76 per 1M input tokens.
Strengths
- 200k token context window
- 131k max output tokens
- Open weights for self-hosting
- Supports reasoning mode
- Supports tool calling
Best for
- Reach for it for agentic coding workflows
- Reach for it for terminal-based development
- Reach for it for repository generation
- Reach for it for long-context code analysis
How to access
48 hosts serve this model at the price above · the maker's documentation
GLM: every version
The registry keeps the six most recent versions of a line. Older ones stay in the file and can be surfaced without a rebuild.
FAQ
- What is the context window?
- The context window is 200,000 tokens.
- Does it support tool calling?
- Yes, it supports tool calling and reasoning mode.
- What is the pricing?
- From $0.45 per million input tokens and $2.15 per million output tokens, with cached input at $0.08 per million tokens.