GLM-5.4
Overview
GLM-5.4 is Z.AI's flagship model for software engineering and multi-step reasoning, released on November 23, 2026. It is Z.AI's first model built on the Loop Transformer architecture and can use visual inputs to guide coding tasks. See the official announcement.
Key Features
- Loop Transformer: Runs a shared block of 28 layers twice to deepen reasoning without adding parameters.
- Long-horizon coding: Uses project context and test feedback to carry out multi-step code changes.
- Visual understanding: Can interpret screenshots and video alongside written instructions.
- Tool use: Supports function calling and can use tool results to guide subsequent steps.
Best Use Cases
- Multi-file software changes: Trace dependencies, refactor related files, and update tests.
- UI implementation and debugging: Work from a screenshot or use a screen recording to investigate a UI issue.
- Code-driven media and 3D prototyping: Write scripts for assembling video clips, creating 3D scenes, or building parametric CAD models.
Capabilities and Limitations
The table summarizes Z.AI's model specifications.
| Capability | Description |
|---|---|
| Input | Text, images, video, and files. Supported formats and request fields depend on the endpoint. |
| Output | Text, including code. |
| Context Window | Up to 1 million tokens. |
| Max Output | Up to 128K tokens. |
| Thinking Mode | Thinking cannot be disabled on Z.AI's native API. Set reasoning_effort to low, high, or max (default). See the migration guide. |
| Tool Use | Supports function calling. |
| Streaming and Structured Output | Supports streaming responses and structured JSON output. |
| Context Caching | Implicit caching can reuse repeated input across requests. |
Known Limitations
- Complex reasoning may take longer to return an answer.
- The model generates text and code, not finished video or 3D assets. Run the generated code in compatible software to produce those assets.
Standard Pricing
Token prices are in USD per 1 million tokens. Input, cache read, and output follow the official list prices.
| Model | Input | Cache Write | Cache Read | Output | Web Search |
|---|---|---|---|---|---|
| GLM-5.4 | $1.40 | $1.40 | $0.26 | $4.40 | - |
Cache writes: B.AI bills cache writes at the input rate (1x).
Credits settlement: B.AI converts charges at 1 USD = 1,000,000 Credits and deducts Credits from the account balance.
Model prices in the documentation are based on the model providers' official list prices and serve as B.AI standard reference prices. B.AI may offer discounts or limited-time promotions on this basis; offer details are shown in Promotions and Pricing Updates and the website's discount groups. Applicable prices, offer terms, and final charges are subject to the platform display and actual billing records.