# GLM 5.1 on AI Gateway

By Steven Van · 2026-04-07

Z.ai's long-horizon coding model joins Vercel AI Gateway as zai/glm-5.1, with gains in writing and office document generation.

GLM 5.1 from Z.ai is now available on [Vercel](<https://creatorstoolbox.com/tools/vercel>)'s [AI Gateway](<https://vercel.com/ai-gateway/leaderboards>). Designed for long-horizon autonomous tasks, the model can work on a single task for extended periods, handling planning, execution, testing and iterative refinement in a closed loop. Rather than one-shot code generation, it runs an autonomous cycle of benchmarking, identifying bottlenecks and optimizing across many iterations, with particular strength in sustained multi-step engineering workflows.

Z.ai says GLM-5.1 also improves on general conversation, creative writing, front-end prototyping, and office tasks like generating PowerPoint, Word and Excel documents. To use it, set the model to **zai/glm-5.1** in the AI SDK.

[![](<https://assets.vercel.com/image/upload/contentful/image/e5382hct74si/6mTpZofxZaXoqLWiRMrwVg/444a2908372f9b74327d4df9f02ab7fb/model_leaderboards_og_card.png>)](<https://vercel.com/ai-gateway/leaderboards>)

![Vercel](<https://www.google.com/s2/favicons?domain=vercel.com&sz=128>)

Vercel

The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.

[View Vercel →](<https://creatorstoolbox.com/tools/vercel>)

Sources

[Original source](<https://vercel.com/ai-gateway/leaderboards>)

[Read GLM 5.1 on AI Gateway on Creators Toolbox](<https://creatorstoolbox.com/blog/vercel-glm-5-1-on-ai-gateway>)

---
Canonical source: https://creatorstoolbox.com/blog/vercel-glm-5-1-on-ai-gateway
