AI Gateway

All Models/

GLM 4.5

GLM 4.5 by Z.ai

GLM-4.5 and GLM-4.5-Air are our latest flagship models, purpose-built as foundational models for agent-oriented applications. Both leverage a Mixture-of-Experts (MoE) architecture. GLM-4.5 has a total parameter count of 355B with 32B active parameters per forward pass, while GLM-4.5-Air adopts a more streamlined design with 106B total parameters and 12B active parameters.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'zai/glm-4.5',
prompt: 'Why is the sky blue?'
})