Z.ai's GLM-4.5 and GLM-4.5 Air are now supported in Vercel AI Gateway

1 min read

You can now access GLM-4.5 and GLM-4.5 Air, new flagship models from Z.ai designed to unify frontier reasoning, coding, and agentic capabilities, using Vercel's AI Gateway with no other provider accounts required.

AI Gateway lets you call the model with a consistent unified API and just a single string update, track usage and cost, and configure performance optimizations, retries, and failover for higher than provider-average uptime.

To use it with the AI SDK v5, start by installing the package:

pnpm i ai

Then set the model to either zai/glm-4.5 or zai/glm-4.5-air:

import { streamText } from 'ai'
const result = streamText({
model: "zai/glm-4.5", // or "zai/glm-4.5-air"
prompt: "What is specifically notable about the style of Sonoran food?",
providerOptions: {
zai: {
thinking: {
type: 'disabled',
},
},
}
})

Includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.

Learn more about AI Gateway.