Zhipu's prior frontier-open flagship on Kyma — superseded by GLM 5.2 but still available by model ID — built for agentic coding and long-horizon work that runs for hours, not turns.
Modalities
Text → Text
Below release
fp4 · fp8
Weights
Published
zai-org/GLM-5.1
Where it sits in the catalogue Kyma measures
Every number against every text model Kyma prices per token — a stated rule, not a chosen line-up.
$1.89
output $5.94 · cached $0.27675
median $1.013 · best $0.0494
$5.94
per 1M tokens generated
median $3.531 · best $0.218
93.18%
44 observations since 2026-05-02
median 96.5% · best 100.0%
28 tok/s
probe median, one fixed prompt
median 36.3 tok/s · best 377.8 tok/s
13.75 s
probe median, to a complete answer
median 2.73 s · best 0.84 s
203K
max output 65,536
published by Zhipu AI, not measured here
Tick above each rail is this model, below it the other 70. Dashed rule is the field median, solid is its best. Better is left; the axis stops at the 90th percentile, so a few models sit past its right edge.
Usage
How much this model is actually called here.
Rank
#28
of 100 active models
Tokens served
15.0M
all-time
Platform share
0.3%
of all tokens
Pricing
Pay per token. Cached input bills at this model’s own cached rate, listed below.
+ Estimate your workload− Estimate your workload
Estimated monthly cost
$173
$5.78 / day on GLM 5.1
Same workload on:
Estimates use list pricing with cached input at this model's own cached rate. Actual bills depend on real token counts, and every response includes its exact cost.
When to use GLM 5.1
Where this model earns its cost — and where it doesn't.
GLM 5.1 is the prior flagship of Zhipu's GLM line on Kyma and sits in the frontier-open quality tier. It is the #1 open-weight model on SWE-Bench Pro and built for long-horizon agentic runs that stretch to eight hours. If your workload is an agent that plans, edits, runs, and retries, this is the model that tier was made for. Its successor, GLM 5.2, is now the GLM flagship on Kyma.
On Kyma its top apps by token volume are coding agents — Cline and OpenClaw — which is the workload it was built for. Every call gets automatic failover if a serving path degrades, and prompt caching bills repeated prompt prefixes at this model's cached input rate — which matters for agents that resend the same long system prompt on every step.
The 203K-token context window holds a serious slice of a codebase plus the agent's working history, and the 64K max output leaves room for large diffs and long reasoning chains. Function calling, structured outputs, and extended reasoning are all supported, so it slots into existing agent frameworks without workarounds.
Autonomous coding agents
Its core design target — multi-step SWE tasks where the agent reads, edits, tests, and iterates across a repository for hours.
Long-horizon workflows
Eight-hour agentic runs are the headline capability; use it for jobs that need sustained planning rather than one-shot answers.
Complex reasoning
Extended reasoning mode works through debugging, architecture decisions, and multi-constraint planning before committing to an answer.
Tool-calling pipelines
Function calling plus structured outputs keep multi-step agent loops parseable and on schema, step after step.
Not ideal for: Image inputs (it's text-only) or latency-sensitive chat UX — it's a medium-speed, premium-priced model that earns its cost on deep agentic work, not quick interactive replies.
How it compares
Against the peers people actually weigh it against.
Quick start
Up and running in under two minutes.
- 1
Create an API key
Sign up and grab a key from the dashboard. GLM 5.1 needs a top-up — the signup credit covers the free tier.
Get API key → - 2
Make your first request
Drop in your key and send a chat completion — fully OpenAI-compatible.
curl https://kymaapi.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.1", "messages": [ {"role": "user", "content": "Explain prompt caching in one paragraph."} ] }' - 3
Stream responses
Add
"stream": trueto receive tokens as they arrive.curl https://kymaapi.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.1", "stream": true, "messages": [{"role": "user", "content": "Hello!"}] }'
FAQ
Common questions about this model.
What is the context window of GLM 5.1?
How much does the GLM 5.1 API cost?
Does GLM 5.1 support function calling?
Are the weights for GLM 5.1 publicly available?
Is GLM 5.1 ever served below the precision its creator released it at?
How do I use GLM 5.1?
Is GLM 5.1 good for agentic coding?
Should I use GLM 5.1 or GLM 5.2?
Why run GLM 5.1 through Kyma?
More models by Zhipu AI
| Model | Context | Input | Output |
|---|---|---|---|
GLM 5.3 Flash | 1M | $0.1791 | $0.5972 |
GLM 5.3 | 1M | $1.178 | $3.702 |
GLM 5.2 | 1M | $1.101 | $3.76 |
GLM 4.7 Flash | 203K | $0.081 | $0.54 |
GLM 4.5 Air | 131K | $0.1945 | $1.272 |
