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?'
})

More models by Z.ai

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
203K
1.5s
71tps
$1.20/M$4.00/M
Read:$0.24/M
Write:
+1
zai logo
03/15/2026
203K
0.3s
128tps
$0.80/M$2.56/M
Read:$0.16/M
Write:
+1
baseten logo
bedrock logo
deepinfra logo
+4
02/12/2026
205K
0.1s
515tps
$2.25/M$2.75/M
Read:$2.25/M
Write:
+1
baseten logo
bedrock logo
cerebras logo
+3
12/22/2025
205K
0.4s
122tps
$0.60/M$2.20/M
Read:$0.11/M
Write:
+1
deepinfra logo
novita logo
zai logo
09/30/2025
200K
1.4s
130tps
$0.06/M$0.40/M
Read:$0.01/M
Write:
+1
zai logo
01/01/2025
200K
0.2s
128tps
$0.07/M$0.40/M
Read:$0.01/M
Write:
bedrock logo
zai logo