You can now access Z.ai's latest model, GLM-4.7, with Vercel's AI Gateway and no other provider accounts required.
GLM-4.7 comes with major improvements in coding, tool usage, and multi-step reasoning, especially with complex agentic tasks. The model also has a more natural tone for a better conversational experience and can product a more refined aesthetic for front-end work.
To start building with GLM-4.7 via AI SDK , set the model to zai/glm-4.7 :
import { streamText } from 'ai' ;
const result = streamText ( {
model : 'zai/glm-4.7' ,
prompt :
` Create an interactive weather timeline app, fetch forecasts
via weather tool, normalize data, render animated charts,
cache results, and produce a production build. `
} ) ;
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.…