Zhipu's newest frontier-open flagship on Kyma — the model the glm-flagship alias now resolves to — a 744B-parameter mixture-of-experts model with a 1M-token context window, built for long-horizon agentic coding.
Modalities
Text → Text
Input
$1.459 /1M
Output
$4.984 /1M
Cached input
$0.1459 /1M90% off
Context
1M
Speed
medium
Performance
Live production data from real requests on Kyma — not synthetic benchmarks.
Rank
#20
of 87 active models
Tokens served
8.6M
all-time
Success rate
100%
last 7 days
Top apps using this model
Public apps sending the most traffic to this model — a signal of what real workloads it fits.
Pricing
Pay per token. Cached input is billed at 10% of the input rate.
+ Estimate your workload− Estimate your workload
Estimated monthly cost
$139
$4.62 / day on GLM 5.2
Same workload on:
Estimates use list pricing with cached input billed at the 90%-discount rate. Actual bills depend on real token counts — every response includes its exact cost.
When to use GLM 5.2
Where this model earns its cost — and where it doesn't.
GLM 5.2 is the flagship of Zhipu's GLM line on Kyma and where the `glm-flagship` alias points. Released in June 2026 under the permissive MIT license, it is a mixture-of-experts model with roughly 744B total parameters and ~40B active per token, positioned squarely at coding and agentic workloads.
On the independent Intelligence Index v4.1 it scores 51 — the highest of any open-weight model, ahead of DeepSeek V4 Pro, MiniMax-M3, and Kimi K2.6, and ahead of several leading closed models. Through Kyma every call routes with automatic failover across multiple serving paths, so a degraded provider never surfaces as an error, and you reach it with the same OpenAI-compatible key as every other model.
The headline change over GLM 5.1 is context: the window grows from ~200K to a full 1M tokens, with output up to 131K. That holds an entire codebase plus an agent's working history in a single request. Function calling, structured outputs, and extended reasoning are all supported, and implicit prompt caching bills repeated prefixes at a steep discount — which matters for agents that resend a long system prompt on every step.
Long-horizon coding agents
Its core design target — multi-step SWE tasks where the agent reads, edits, tests, and iterates across a repository over a long session.
Whole-repository context
The 1M-token window lets an agent load a large codebase and its own history at once, instead of paging context in and out.
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.
| Spec | GLM 5.2 | GLM 5.1 | GLM 4.5 Air |
|---|---|---|---|
| Input /1M | $1.459 | $1.89 | $0.176 |
| Output /1M | $4.984 | $5.94 | $1.148 |
| Context | 1M | 203K | 131K |
| Tools | Yes | Yes | Yes |
| Reasoning | Yes | Yes | Yes |
| Speed | medium | medium | fast |
Quick start
Up and running in under two minutes.
- 1
Create an API key
Sign up and grab a key from the dashboard — $0.50 free credit, no card required.
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.2", "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.2", "stream": true, "messages": [{"role": "user", "content": "Hello!"}] }'
FAQ
Common questions about this model.
What is the context window of GLM 5.2?
How much does the GLM 5.2 API cost?
Does GLM 5.2 support function calling?
How do I use GLM 5.2?
How is GLM 5.2 different from GLM 5.1?
What is the glm-flagship alias?
Why run GLM 5.2 through Kyma?
More models by Zhipu AI
| Model | Context | Input | Output |
|---|---|---|---|
GLM 5.1 | 203K | $1.89 | $5.94 |
GLM 4.7 Flash | 203K | $0.081 | $0.54 |
GLM 4.5 Air | 131K | $0.176 | $1.148 |
