Skip to content
Language: English (United States)

GLM 5

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows.

Context Window
205K
In
—per million tokens
Out
—per million tokens

Z.ai

Model IDz-ai/glm-5

Specifications

Context Window
205K
Modalities
text
Price
—
Model ID
z-ai/glm-5

Quick start

z-ai/glm-5

—

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'z-ai/glm-5',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →

Use GLM 5 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.