Z.ai · Model guide
GLM-5.1
Z.AI's open flagship, 754B parameters, tuned for engineering tasks that run unattended for hours — plan, execute, debug, finish. 200K context, and a high-speed variant for latency-sensitive use.
What this model is good at
What the vendor positions it for, and which of our models to reach for instead.
VendorA flagship foundation model for long-horizon Agentic Engineering.source
- z-ai/glm-5.2successor —5.2 supersedes 5.1 on the same agentic coding workloads.
- z-ai/glm-5-turbofaster —Turbo trades ceiling for latency on interactive edits.
Pricing and billing
Tiered pricing: the rate changes once the input passes the threshold.
| Price / 1M tokens by input size | Input < 32.0K | Input ≥ 32.0K |
|---|---|---|
| Input | $ 1.00 | $ 1.20 |
| Output | $ 3.80 | $ 4.40 |
| Cache read | $ 0.20 | $ 0.30 |
| Cache write | $ 1.00 | $ 1.20 |
At this input size you are on the Input < 32.0K tier.
+ 2.0K × $ 3.80
Capabilities and limits
What CrossModel guarantees across every route this model can take right now.
- Context window
- 200.0K tokens
- Max output
- 128.0K tokens
- Input / output modalities
- Text → Text
- Streaming
- Supported
- Tool calling
- Supported
- Structured output (JSON)
- Supported
- Image input
- Not supported
- Thinking mode
- Supported· can be turned off
- Available endpoints
- /v1/chat/completions · /v1/responses · /v1/messages
Published benchmarks
Scores the vendor reported, with the evaluation setup each one came from.
Vendor-reported numbers, not CrossModel measurements. Scores are only comparable when the benchmark version, metric and evaluation setup match, so nothing here is averaged or ranked.
Use it in your tools
Point the base URL at CrossModel and paste this model ID — every tool below has a setup guide.
Frequently asked questions
What is GLM-5.1?
How much does GLM-5.1 cost?
Does GLM-5.1 support tool calling and structured output?
Which endpoint do I call?
Can I try it without writing code?
Chat first, integrate later
Chat first, then wire it in once you like the answers.