
GLM 5.2 now available on AI Gateway
Quick Answer
GLM 5.2 is now available on AI Gateway, featuring an upgraded context window of 1M tokens, significantly improving reliability for long-horizon tasks.
Quick Take
The model adheres to engineering standards and is accessible via a unified API without markup or platform fees on inference, including BYOK requests.
Key Points
- GLM 5.2 supports a context window of 1M tokens, up from 200K in GLM 5.1.
- The model is designed for long-horizon tasks and maintains project-level engineering context.
- AI Gateway offers a unified API for model calls, usage tracking, and performance optimizations.
- No markup on provider pricing, with no platform fees for inference, including BYOK requests.
- Features include custom reporting and zero data retention support.
Source Excerpt
GLM 5. 2 is now available on. AI GatewayBuilt for long-horizon tasks, GLM 5. 2 carries project-level engineering context across a single task, runs long-running tasks more reliably, and follows engineering standards more consistently. The context window for this model has been upgraded to 1M tokens, up from 200K in GLM 5. 1. To use GLM 5. 2, set model to in the:zai/glm-5.
2AI SDKAI 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,,, and more. …
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

