Ollama Cloud
Z.ai's official developer documentation describes GLM-5.4 as the latest flagship model and the first built on the Loop Transformer architecture, reusing 28 layers of the GLM-5 base model across two iterations to add reasoning depth without growing parameter count. Combined with optimized KV caching and sparse attention, it keeps deployment cost manageable at 1M-token context lengths, and the model generalizes past coding to video editing, complete games, 3D modeling, and mechanical design. The API model code is glm-5.4, with text parameters consistent with GLM-5.3, a 1M-token context window, 128K maximum output tokens, and input supporting video, image, text, and file blocks. Docs recommend temperature 1, top_p 0.95, and reasoning effort max, with thinking.type limited to enabled, and GLM Coding Plan users on weekly quotas get 1.5x the GLM-5.4 quota of GLM-5.3.
