{"slug": "glm-5-4-now-available-on-ai-gateway", "title": "GLM 5.4 now available on AI Gateway", "summary": "Z.ai's GLM 5.4, the company's new flagship model for coding and agentic work, is now available on Vercel's AI Gateway under the model name zai/glm-5.4. GLM 5.4 is the first GLM model built on a Loop Transformer architecture, which runs a shared block of layers twice per forward pass so the model reasons more deeply without adding parameters; Z.ai reports part of the reasoning shifts into that second pass, shortening the chain of thought. The model adds image input, keeps a 1M-token context window with caching and sparse attention, and supports tool calling, structured outputs, and prompt caching, and it can be used in Claude Code, Codex, and Cursor via the latest Vercel CLI.", "body_md": "[GLM 5.4 from Z.ai](https://vercel.com/ai-gateway/models/glm-5.4) is now available on AI Gateway. It is Z.ai's new flagship model for coding and agentic work, and the first GLM model built on a Loop Transformer architecture.\n\nThe Loop Transformer runs a shared block of layers twice per forward pass, so the model reasons more deeply without adding parameters. Z.ai reports that part of the reasoning moves from visible thinking tokens into that second pass, which shortens the chain of thought. It also notes that on some hard tasks the model can still reason for a long time before answering.\n\nUnlike earlier GLM flagship models, GLM 5.4 accepts image input. Z.ai pairs the improved vision with what it calls generalized coding: writing code to produce videos and games, build 3D scenes, and do CAD-style mechanical design, not just conventional software. It keeps a 1M-token context window, with caching and sparse attention designed to keep long-context requests efficient, and supports tool calling, structured outputs, and prompt caching.\n\nUse `zai/glm-5.4` as the model name:\n\nTo use it in Claude Code, Codex, Cursor, and more, install the latest Vercel CLI and run setup:\n\nThen select `zai/glm-5.4` in the agent. See the [coding agents guide](https://vercel.com/docs/ai-gateway/coding-agents) for details.\n\nTry GLM 5.4 in the [model playground](https://vercel.com/ai-gateway/models/glm-5.4).\n\nAI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in [custom reporting](https://vercel.com/changelog/custom-reporting-ai-gateway), [Zero Data Retention support](https://vercel.com/blog/zdr-on-ai-gateway), [budgets for API keys](https://vercel.com/docs/ai-gateway/authentication-and-byok/api-keys), [routing rules](https://vercel.com/docs/ai-gateway/models-and-providers/routing-rules), and more.\n\nAI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on [Bring Your Own Key](https://vercel.com/docs/ai-gateway/authentication-and-byok/byok) (BYOK) requests.\n\nYou can view [all language models](https://vercel.com/ai-gateway/models?type=text) available on AI Gateway.", "url": "https://wpnews.pro/news/glm-5-4-now-available-on-ai-gateway", "canonical_source": "https://vercel.com/changelog/glm-5-4-now-available-on-ai-gateway", "published_at": "2026-12-01 00:00:00+00:00", "updated_at": "2026-12-02 04:43:51.924549+00:00", "lang": "en", "topics": ["large-language-models", "ai-agents", "ai-tools", "developer-tools", "ai-infrastructure"], "entities": ["Z.ai", "GLM 5.4", "Vercel", "AI Gateway", "Loop Transformer", "Claude Code", "Codex", "Cursor"], "also_reported_by": [], "takeaway": "GLM 5.4 runs a shared block of layers twice per forward pass, which Z.ai says deepens reasoning without adding parameters and moves part of the reasoning out of visible thinking tokens, while keeping a 1M-token context window with caching and sparse attention.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/glm-5-4-now-available-on-ai-gateway", "markdown": "https://wpnews.pro/news/glm-5-4-now-available-on-ai-gateway.md", "text": "https://wpnews.pro/news/glm-5-4-now-available-on-ai-gateway.txt", "jsonld": "https://wpnews.pro/news/glm-5-4-now-available-on-ai-gateway.jsonld"}}