GLM-5.1

Zhipu GLM-5.1 flagship model engineered for long-horizon autonomous tasks with enhanced coding and agentic capabilities.

204,800 context
Released April 7, 2026
Starting at $0.93/M input tokens
Starting at $2.93/M output tokens
Streaming
Tools
Reasoning
JSON Output
No ratings yetSign in to rate

All Providers for GLM-5.1

LLM Gateway routes requests to the best providers that are able to handle your prompt size and parameters.

Z AI
Context: 200k
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
+ $0.010 per search
Get Started
NovitaAI
Context: 204.8kQuant: fp8
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
Get Started
DeepInfra
Context: 198kQuant: fp4
Input
$1.05
/M tokens
Cache Read
$0.205
/M tokens
Output
$3.5
/M tokens
Get Started
EmberCloud
Context: 203k
Input
$0.931
/M tokens
Cache Read
$0.173
/M tokens
Output
$2.93
/M tokens
Get Started
Nebius AI
Context: 202.8kQuant: fp8
Input
$1.4
/M tokens
Cache Read
/M tokens
Output
$4.4
/M tokens
Get Started

Frequently asked questions

What is GLM-5.1?

Zhipu GLM-5.1 flagship model engineered for long-horizon autonomous tasks with enhanced coding and agentic capabilities. You can access it through LLM Gateway's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.

How much does GLM-5.1 cost?

Pricing for GLM-5.1 on LLM Gateway starts at $0.93 per million input tokens and $2.93 per million output tokens, depending on the provider. The pricing table above always reflects the current per-provider rates.

What is the context length of GLM-5.1?

GLM-5.1 supports a context window of up to 204,800 tokens on its largest provider deployment.

Which providers serve GLM-5.1?

GLM-5.1 is served by Z AI, NovitaAI, DeepInfra, EmberCloud, Nebius AI through LLM Gateway. Requests are automatically routed to the best available provider, with fallback when a provider has issues.

Does GLM-5.1 support tool calling and structured outputs?

Yes. GLM-5.1 supports both tool (function) calling and structured JSON outputs through LLM Gateway.

When was GLM-5.1 released?

GLM-5.1 was released on April 7, 2026.