{"slug": "glm-5-2-now-available-on-ai-gateway", "title": "GLM 5.2 now available on AI Gateway", "summary": "Vercel's AI Gateway now supports GLM 5.2, a model with a 1M-token context window designed for long-horizon tasks. The model carries project-level engineering context, runs long-running tasks reliably, and follows engineering standards consistently. AI Gateway provides a unified API with features like custom reporting, zero data retention, and API key budgets.", "body_md": "GLM 5.2 is now available on [AI Gateway](https://vercel.com/ai-gateway).\n\nBuilt 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.\n\nThe context window for this model has been upgraded to 1M tokens, up from 200K in GLM 5.1.\n\nTo use GLM 5.2, set model to `zai/glm-5.2`\n\nin the [AI SDK](https://ai-sdk.dev/):\n\nAI 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](https://vercel.com/changelog/custom-reporting-ai-gateway), [Zero Data Retention support](https://vercel.com/blog/zdr-on-ai-gateway), [budgets for API keys](https://vercel.com/docs/ai-gateway/authentication-and-byok/api-keys), 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](https://vercel.com/docs/ai-gateway#bring-your-own-key) (BYOK) requests.\n\nLearn more about [AI Gateway](https://vercel.com/docs/ai-gateway), view the [AI Gateway model leaderboard](https://vercel.com/ai-gateway/leaderboards) or try it in our [model playground](https://vercel.com/ai-gateway/models/glm-5.2).", "url": "https://wpnews.pro/news/glm-5-2-now-available-on-ai-gateway", "canonical_source": "https://vercel.com/changelog/glm-5-2-now-available-on-ai-gateway", "published_at": "2026-06-12 00:00:00+00:00", "updated_at": "2026-06-16 18:48:35.420555+00:00", "lang": "en", "topics": ["large-language-models", "ai-infrastructure", "ai-tools", "developer-tools"], "entities": ["Vercel", "AI Gateway", "GLM 5.2", "AI SDK"], "alternates": {"html": "https://wpnews.pro/news/glm-5-2-now-available-on-ai-gateway", "markdown": "https://wpnews.pro/news/glm-5-2-now-available-on-ai-gateway.md", "text": "https://wpnews.pro/news/glm-5-2-now-available-on-ai-gateway.txt", "jsonld": "https://wpnews.pro/news/glm-5-2-now-available-on-ai-gateway.jsonld"}}