Skip to content

Vercel's AI Gateway adds Z.ai's GLM 5.4, a 1M-token coding model

Z.ai's GLM 5.4 is now callable through Vercel's AI Gateway with one API key. Z.ai says a new Loop Transformer design lets it match far larger models without adding parameters.

Source: Vercel

Vercel added Z.ai’s GLM 5.4 to its AI Gateway on 1 December, so anyone already on the Gateway can call it with the same API key, fallbacks, spend tracking and request traces they use for other models, with no separate Z.ai account needed.

Z.ai’s own documentation describes GLM 5.4 as using a “Loop Transformer” architecture: it reuses 28 layers of its GLM-5 base model twice per forward pass, which Z.ai says reaches intelligence comparable to models of 2 to 3 trillion parameters while the base model itself is 750 billion. It takes a 1 million token context window, accepts image input alongside text and file input, and outputs up to 128,000 tokens. Z.ai frames the model around what it calls “Generalized Coding”: writing code that edits video, builds playable games, or produces CAD models, not just typical application code. Inference runs at up to 200 tokens a second off-peak, dropping to 70 to 80 tokens a second under peak load.

model: 'zai/glm-5.4'

Why it matters: this gives Vercel AI Gateway users a model string to drop into existing code to test a reasoning-boosted, long-context model without signing up with a new provider or rewriting billing and fallback logic.

The caveat: Z.ai hasn’t published a dated release announcement and the model doesn’t yet appear on its own changelog page, so it’s unclear how new GLM 5.4 is beyond this Gateway listing.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)