Saturday, 5 December 2026NewsWorldBusinessTech
Latest

Z.ai Opens GLM-5.4 Public API With Token-Based Pricing

Z.ai opened GLM-5.4 in its public API on December 2 with token-based pricing, matching the rates of its predecessor.

The model is now available on OpenRouter for integration into applications without a Coding Plan subscription, according to Tproger. Pricing on Z.ai’s platform remains $1,4 per million input tokens and $4,4 per million output tokens, matching GLM-5.3. Prior to this public API release, GLM-5.4 was restricted to Coding Plan subscribers, ZCode, and the Z.ai chat interface while the paid API was inactive.

Z.ai introduced GLM-5.4 utilizing a Loop Transformer architecture, where a block of 28 layers runs twice to achieve the output quality of systems with two to three trillion parameters without increasing the base model size, Т—Ж reported. Reading from the cache costs $0,26 per million tokens for GLM-5.4.

Z.ai
Photo: Tproger

This approach enables economic handling of complex tasks such as multi-thousand-line codebases, CAD models, and 3D scenes by avoiding the infrastructure costs required to maintain a three-trillion-parameter cache in memory.

At the same time, Z.ai acknowledges that the model is prone to excessively long reasoning cycles. Z.ai documents an output limitation of 128,000 tokens and advises users to calculate expenses based on the total volume of both input and output.

On OpenRouter, seven providers offered the model by December 2. PrimeIntellect listed rates at $0,40 per million input tokens and $2,464 per million output tokens, while Inferact vLLM, Modal, Friendli, Crusoe, BaseTen, and Z.ai set their pricing at $1,4 and $4,4.

The context window for GLM-5.4 on OpenRouter reaches 1,048,576 tokens, and the model accepts text, images, and video inputs. Z.ai also positions GLM-5.4 as the initial step toward Generalized Coding, expanding beyond software creation into generating structured objects such as video, game scenes, CAD models, and 3D geometry.

Z.ai launched a Weekend Build promotion on December 4 via ZCode, offering users a promotional package of 100 million GLM-5.4 tokens until December 7, HABR reported. According to the official ZCode announcement, acquisition of the package began on December 4 at 11:00 UTC, usage started at 15:00 UTC on the same day, and the promotion closed on December 7 at 01:00 UTC, subject to availability and limited to one package per account.

These credits apply exclusively within ZCode rather than acting as universal API credits for external applications. Monitoring data from AI Promo Now indicated that a significant majority of surveyed users found the promotional offer unavailable, although comments from other participants confirmed successful bonus claims.