Vercel AI Gateway adds Z.ai GLM 5.4
Developers can now call Z.ai's Loop Transformer coding model via zai/glm-5.4 at $1.40/$4.40 per million tokens with zero Vercel markup, routed across Z.ai and US-hosted Baseten. The integration unlocks GLM 5.4's 1M-token context window, image inputs, and prompt caching for Claude Code, Codex, and Cursor without needing Z.ai's standalone Coding Plan.
Since Z.ai initially rolled out GLM 5.4 in late November mostly behind its rate-limited Coding Plan, landing on Vercel AI Gateway with US-hosted Baseten inference is what actually makes the model viable for production teams. It turns a hard-to-reach architectural experiment into a drop-in coding agent backend.
- –GLM 5.4 runs a shared 28-layer middle block twice per forward pass on a ~750B GLM-5 base, pushing reasoning into deeper weight-shared passes rather than more parameters—though both Z.ai and early testers note it can still get stuck thinking for long stretches on hard tasks
- –Multi-provider routing pairs Z.ai's China endpoint with Baseten's US-hosted inference at the same $1.40/M input and $4.40/M output pricing, while Baseten cuts cached input reads to $0.14/M (versus $0.26/M on Z.ai) alongside gateway failover and Zero Data Retention support
- –Early developer feedback on r/LocalLLaMA praises GLM 5.4's disciplined multi-step software engineering and "generalized coding" across 3D, games, video, and CAD with its new image inputs, while panning its stiff general writing—making it best deployed as a specialized coding route rather than an all-purpose default
- –Running `npx vercel ai-gateway setup` wires zai/glm-5.4 directly into Claude Code, Codex, and Cursor with BYOK support and no platform fee, removing friction for teams benchmarking a 1M-context looped model against frontier coding models
DISCOVERED
17m ago
2026-12-02
PUBLISHED
41m ago
2026-12-02
RELEVANCE
AUTHOR
vercel_dev