GLM 5.4
GLM 5.4 brings Z.AI’s Loop Architecture to life: deeper reasoning, 10–14% fewer thinking tokens, plus thinking mode, streaming, tool calls and JSON output.
All Tools
Discover our comprehensive AI-powered animation toolkit
Muse Video
Seedance2.5
The Future of AI Video Is Here.

Seedance 2.0
The Future of AI Video Is Here.

Veo3.1
Create Stunning Videos with Veo3.1
Grok Video Generator
Create Videos from Text or Images with AI
MiniMax H3 video generator
MiniMax H3 AI Video Generator

Seedance 2.0
The Future of AI Video Is Here.

Gemini Omni 1.2 Flash
What Makes GLM 5.4 Stand Out
On Z.AI, GLM 5.4 pairs the Loop Architecture with token-efficient reasoning, giving builders deeper thought for Generalized Coding work.
- Built on a Loop TransformerThe Loop Transformer lets GLM 5.4 reason further without expanding its parameter count, shifting some thinking from visible tokens into the loop’s depth.
- Generalized Coding StrengthLong chains of thought are where GLM 5.4 pulls ahead, with the largest gains showing up in math, scientific reasoning and long-context tasks.
- Leaner Token UsageBenchmarks show GPQA-Diamond and MMLU-Pro answers from GLM 5.4 coming out 10–14% shorter on average as the model tightens its reasoning chains.
Getting Started with GLM 5.4
Three quick-start steps: create a key, select a GLM 5.4 variant, and send your first request.
Core GLM 5.4 Capabilities
Thinking mode, streaming, tool calls, context caching and structured output, plus the context and output limits you plan around for GLM 5.4.
Thinking Mode
A dedicated mode for tougher problems; 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 — GLM 5.4 reaches 200 tokens/s off-peak and 70–80 tokens/s at peak demand.
Function Calling
Native tool calling connects GLM 5.4 to external APIs, services and data sources without custom glue code.
Context Caching
Previously processed context is reused across a session, trimming repeat work and keeping long GLM 5.4 conversations responsive.
Structured Output
JSON and other structured formats return ready to parse, so GLM 5.4 responses drop straight into your pipeline.
Context Length and Maximum Output Tokens
Published context-window and maximum-output limits for GLM 5.4 help you size long-context and long-generation workloads correctly.
GLM 5.4 — Questions Answered
Common questions about GLM 5.4, API keys, billing and calling the model on Z.AI.
How does cache work in GLM models?
GLM 5.4 reuses context it has already processed, which 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 GLM 5.4 usage is not visible immediately.
How can I check the rate limits?
Rate limits are listed on the Z.AI Open Platform — review them before planning request volume for GLM 5.4.
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, then retry your GLM 5.4 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 GLM 5.4 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 over GLM 5.4.
Create a Key and Call GLM 5.4
Make a Standard API Key on the Z.AI Open Platform, send your first GLM 5.4 request, and top up on the Billing Page whenever you need more.
