Skip to content
Dashboard

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. Your use subject to Z.AI's Terms & Privacy Policies.

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
Max Output
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Regional Inference
Release Date
Z.AI
Legal:TermsPrivacy
203K64K
7.0s
176tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
04/07/2026
Fireworks
Legal:TermsPrivacy
202K202K
1.2s
93tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
04/07/2026
DeepInfra
Legal:TermsPrivacy
203K203K
0.7s
67tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
04/07/2026
Novita AI
Legal:TermsPrivacy
205K131K
4.2s
74tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
04/07/2026
Baseten
Legal:TermsPrivacy
202K202K
$1.30/M
$4.30/M
Read:$0.26/M
Write:
US
04/07/2026
Together AI
Legal:TermsPrivacy
202K202K
$1.40/M
$4.40/M
04/07/2026