# GLM 5.2 now available on AI Gateway

DevFeed: [GLM 5.2 now available on AI Gateway](<https://devfeed.tech/articles/glm-5-2-now-available-on-ai-gateway-957.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/glm-5-2-now-available-on-ai-gateway>)

Author: Jerilyn Zheng

Published: 2026-06-16T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [long-context](<https://devfeed.tech/topics/long-context.md>), [context window](<https://devfeed.tech/topics/context-window.md>), [vercel ai sdk](<https://devfeed.tech/topics/vercel-ai-sdk.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>), [API](<https://devfeed.tech/topics/api.md>), [model-deployment](<https://devfeed.tech/topics/model-deployment.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-gateway](<https://devfeed.tech/tags/ai-gateway.md>), [api](<https://devfeed.tech/tags/api.md>), [context-window](<https://devfeed.tech/tags/context-window.md>), [cost](<https://devfeed.tech/tags/cost.md>), [inference](<https://devfeed.tech/tags/inference.md>), [performance](<https://devfeed.tech/tags/performance.md>), [platform](<https://devfeed.tech/tags/platform.md>), [pricing](<https://devfeed.tech/tags/pricing.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

## AI overview

GLM 5.2 is now available through Vercel AI Gateway, with a 1M-token context window, improved reliability for long-running tasks, and stronger adherence to engineering standards. The release also describes unified model access, usage and cost tracking, retries, failover, performance optimization, reporting, Zero Data Retention, API-key budgets, and provider pricing without platform fees.

## Source excerpt

GLM 5.2 is now available on AI Gateway. Built 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 zai/glm-5.2 in the AI SDK: AI 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, Zero Data Retention support, budgets for 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 (BYOK) requests. Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground. Read more