• 1 min read You can now access GLM-5 via AI Gateway with no other provider accounts required. • GLM-5 from Z.AI is now available on AI Gateway. • Compared to GLM-4.7, GLM-5 adds multiple thinking modes, improved long-range planning and memory, and better handling of complex multi-step agent tasks. • It’s particularly strong at agentic coding, autonomous tool use, and extracting structured data from documents like contracts and financial reports. • To use this model, set model to zai/glm-5 in the AI SDK: import { streamText } from ‘ai’; const result = streamText({ model: ‘zai/glm-5’, prompt: Generate a complete REST API with authentication, database models, and test coverage for a task management app.,}); 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 observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.

Sources: