How much does GLM-5.4 cost on Modal?
The cost of running GLM-5.4 on a Dedicated Endpoint would depend on your workload and inference-server configuration. Dedicated Endpoints are billed by the GPU second. See Modal pricing.
GLM-5.4 is Z.ai’s first flagship Loop Transformer for coding and multi-step reasoning. It runs a shared block of 28 layers twice to increase computational depth without duplicating the block’s weights.
GLM-5.4 is Z.ai’s first flagship model built on the Loop Transformer architecture. It is designed for coding and multi-step reasoning, including tasks that use code outside traditional software development. In Z.ai’s announcement, the lab demonstrates the model writing code for games, video, and mechanical design.
GLM-5.4 runs 28 shared layers of the GLM-5 base model twice, increasing computational depth without duplicating the looped layers’ weights. The second pass reuses sparse attention indices and selected key-value cache entries from the first pass, while keeping a separate local sliding-window cache.
The cost of running GLM-5.4 on a Dedicated Endpoint would depend on your workload and inference-server configuration. Dedicated Endpoints are billed by the GPU second. See Modal pricing.
Dedicated Endpoint costs depend on your workload and inference-server configuration. Modal bills GPUs by the second and charges for other compute resources used by running containers. See Modal pricing for GPU rates.
Z.ai lists a 1M context length for GLM-5.4, with up to 128K output tokens. That leaves room for large codebases, long documents, and multi-step agent sessions in a single request. Z.ai designed the Loop Transformer’s second pass to reuse sparse attention indices, which keeps long-context inference costs under control.
Modal’s Dedicated Endpoints use an OpenAI-compatible API. To call a Dedicated Endpoint, use the model name and base URL from the Modal dashboard and authenticate with a Modal proxy token. See how to call an endpoint.
GLM-5.4 accepts text, image, video, and file inputs, and returns text, according to Z.ai. Z.ai improved vision alongside coding in this release. Its announcement demonstrates code-driven work such as building games and creating CAD models.
GLM-5.4 is Z.ai’s first flagship built on the Loop Transformer architecture. It runs a shared block of 28 layers twice, using the first pass to build context and the second to refine it. It also reuses the first pass’s sparse attention indices rather than computing them again.
With a Dedicated Endpoint, you select a configuration and Modal manages the GPU infrastructure. You can configure scaling limits and keep minimum capacity for predictable traffic. See Dedicated Endpoints for configuration and scaling options.

Abundant builds RL environments that run on Modal Sandboxes, powering training for frontier labs.


$30 / month free compute