AIFeed

GLM 5.4 now available on AI Gateway

Summary

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. 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 z…

Original text(via Vercel Blog)

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.

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:


        import { streamText } from 'ai';
const result = streamText({  model: 'zai/glm-5.4',  prompt: 'Write a Three.js scene with a rotating, lit cube.',});
      

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


        npx vercel ai-gateway 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.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗