Skip to content

GLM 5.1

GLM 5.1 advances Z.ai's GLM-5 generation with a focus on long-horizon autonomous coding. It can work independently on a single task for over eight hours, planning, executing, and iterating until it delivers engineering-grade results.

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

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Z.ai
Legal:Terms
Privacy
203K
5.0s
49tps
$1.40/M$4.40/M
Read:$0.26/M
Write:
04/07/2026
Fireworks
Legal:Terms
Privacy
202K
1.1s
46tps
$1.40/M$4.40/M
Read:$0.26/M
Write:
04/07/2026
DeepInfra
Legal:Terms
Privacy
203K
2.1s
39tps
$1.40/M$4.40/M
Read:$0.26/M
Write:
04/07/2026
Novita AI
Legal:Terms
Privacy
205K
5.4s
40tps
$1.40/M$4.40/M
Read:$0.26/M
Write:
04/07/2026