GLM 5.4
GLM 5.4 on the Z.AI Open Platform thinks deeper through its Loop Architecture — lighter token bills, thinking mode, streaming, tool calls and JSON output.
All Tools
Discover our comprehensive AI-powered animation toolkit
Why Builders Choose GLM 5.4
GLM 5.4 brings the Loop Architecture to Z.AI: deeper thought at a lighter token cost, aimed squarely at Generalized Coding.
- The Loop ArchitectureA Loop Transformer lets GLM 5.4 think further without growing its parameter count — some reasoning moves out of visible tokens and into the depth of the loop itself.
- Generalized CodingLong chains of thought are where the model pulls ahead, and the biggest jumps land in math, scientific reasoning and long-context tasks.
- Token-Efficient ReasoningBenchmarks tell the story: GPQA-Diamond and MMLU-Pro answers come out 10–14% shorter on average, since the model tightens its chains of thought.
How to Use GLM 5.4
Three steps from the quick start: create a key, pick a model variant, and make your first call.
GLM 5.4 Capabilities
Thinking mode, streaming, tool calls, context caching and structured output — plus the context and output limits you plan around.
Thinking Mode
A dedicated mode for harder problems; paired with the Loop Transformer, GLM 5.4 reasons further at the same parameter count.
Streaming Messages
Tokens arrive as they are produced, so interfaces feel live — throughput reaches 200 tokens/s off-peak and 70–80 tokens/s when demand peaks.
Function Calling
Native tool calling links the model to external APIs, services and data sources without custom glue code.
Context Caching
Previously processed context is reused across a session, which trims repeat work and keeps long conversations responsive.
Structured Output
JSON and other structured formats come back ready to parse, so responses drop straight into your pipeline.
Context Length and Maximum Output Tokens
Context window and maximum output token limits are published for the model, so you can size long-context and long-generation workloads correctly.
GLM 5.4 — FAQ
Common questions about GLM 5.4, keys, billing and calling the model on Z.AI.
How does cache work in GLM models?
The model reuses context it has already processed, which is what keeps long-context conversations fast and economical.
Why hasn't my account balance changed after I used the API?
Billing runs with a processing delay: billing history reflects daily consumption from the previous day (n-1), so today's usage is not visible immediately.
How can I check the rate limits?
Rate limits are listed on the Z.AI Open Platform — check them before planning request volume.
Why can't I recharge when using a credit card?
Credit-card recharges can fail depending on the card or region; use the supported recharge route on the Billing Page instead, then retry your calls.
What is the GLM Coding Plan and how do I use it?
The GLM Coding Plan is the subscription path for coding work described in the usage section; it sits alongside API-key access, so keys stay for production while the plan covers day-to-day coding.
Which calling method should I choose?
Start with an OpenAI-compatible SDK if you already have OpenAI code, use the Z.AI Python or Java SDK for native features, and call the HTTP API directly when you need raw control.
Create a Key and Call GLM 5.4
Make a Standard API Key on the Z.AI Open Platform, send your first request, and top up on the Billing Page whenever you need more.




