Skip to content
Vercel AI: News· Jerilyn Zheng·AI score68

GLM 5.4 launches on Vercel AI Gateway

GLM 5.4 now available on AI Gateway

AI brief

Vercel announced that Zhipu's flagship GLM 5.4 is now available on AI Gateway under the model name zai/glm-5.4, with Zero Data Retention support, and can be used with coding agents such as Claude Code, Codex and Cursor.

Full text · Original

GLM 5.4 from Z.ai 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.

GLM 5.4 is available on AI Gateway with Zero Data Retention. Use the team-wide ZDR setting to route requests only to ZDR providers.

The 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.

Unlike 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.

Use zai/glm-5.4 as the model name:

To use it in Claude Code, Codex, Cursor, and more, install the latest Vercel CLI and run setup:

Then select zai/glm-5.4 in the agent. See the coding agents guide for details.

Try GLM 5.4 in the model playground.

AI 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, Zero Data Retention support, budgets for API keys, routing rules, and more.

AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.

You can view all language models available on AI Gateway.

Read more

Source: Vercel AI: News · vercel.com

Part of the story

See the full story
GLM 5.4 launches on Vercel AI Gateway and OpenRouter