Z.AI / zai/glm-5.4
GLM-5.4 - access through LLMTR
GLM-5.4 is Z.AI's flagship model for long codebases, multi-step agent workflows, function calling, and terminal work with a 1M context window. It accepts text, image, video, and file input and supports function calling, JSON mode, and structured output with JSON Schema. Reasoning runs on every response and cannot be turned off; you tune its depth with the low, high, and max effort levels. LLMTR sends plain requests at low, and you can pick :high or :max for harder tasks.
Technical specifications
| Canonical ID | zai/glm-5.4 |
|---|---|
| Provider | Z.AI |
| Context window | 1,000,000 tokens |
| Operations | CHAT_COMPLETIONS |
| Modalities | text, image, video |
Pricing
An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.
| Operation | Metric | Unit | Price |
|---|---|---|---|
| CHAT_COMPLETIONS | INPUT_TEXT | PER_1M_TOKENS | $1.26 |
| CHAT_COMPLETIONS | CACHE_READ | PER_1M_TOKENS | $0.234000 |
| CHAT_COMPLETIONS | OUTPUT_TEXT | PER_1M_TOKENS | $3.96 |
Example usage
With existing OpenAI SDK flows, change only the base URL and model identifier.
curl https://llmtr.com/v1/chat/completions -H "Authorization: Bearer llmtr-your_key" -H "Content-Type: application/json" -d '{"model":"zai/glm-5.4","messages":[{"role":"user","content":"Hello"}]}'
Guides about this model
- GLM-5.4 is on the API: zai/glm-5.4 price and use on LLMTR - Z.AI announced GLM-5.4 on 23 November 2026 for the GLM Coding Plan, ZCode and Z.ai Chat; on 2 December 2026 its guide gives the model code glm-5.4 for the Model API and its pricing page has a GLM-5.4 row. On LLMTR the model is called with the id zai/glm-5.4, at a price 10% below the Z.AI list price. This article covers what Z.AI has said, how the Coding Plan differs from the Model API, how GLM-5.4 compares with GLM-5.3, and how to call it.
- What is a Loop Transformer? How GLM-5.4 reuses its layers - A Loop Transformer runs weight-shared layers for several iterations in one forward pass, making the network deeper without adding parameters. According to Z.AI, GLM-5.4 runs 28 layers of the GLM-5 base twice. This article covers where the idea comes from, Z.AI's three changes, its 30B ablation, and what this means for reasoning tokens; GLM-5.4 is called on LLMTR with the id zai/glm-5.4.
Related models
- GLM-5.3-Flash zai/glm-5.3-flash
- GLM-5.3-FlashX zai/glm-5.3-flashx
- GLM-5.3 zai/glm-5.3
- GLM-5.3-FlashX-Legal zai/glm-5.3-flashx-legal
- GLM-5.2 zai/glm-5.2
- GLM-5.1 zai/glm-5.1
- GLM-5 zai/glm-5
- GLM-5-Turbo zai/glm-5-turbo