Skip to content
Cyber Monday — 99 apps. $99. For life. →
Language: English (United States)

GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.

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

Z.ai

Model IDz-ai/glm-5.1

Specifications

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

Quick start

z-ai/glm-5.1

—

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.1',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →

Use GLM 5.1 via Hanzo AI

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