GLM-5.1

glm-5.1 by Z.ai Released April 8, 2026
ReasoningFunction callingStructured outputPrompt cachingWeb searchComputer useImage inputFile inputAudio inputVideo inputEU hostingFree endpointUp to 35% off
Input from
$0.91 / 1M
Output from
$2.86 / 1M
Cached input from
$0.169 / 1M
Context window
203K
Endpoints
5
from 5 providers
Regions
Monde, Asie, Europe, États-Unis

About GLM-5.1

La version GLM-5.1 marque une avancée majeure en matière de capacités de codage, avec des progrès particulièrement significatifs dans la gestion des tâches à long terme.

GLM-5.1 est un modèle conversationnel développé par Z.ai, disponible sur Eden AI via 5 endpoints chez 5 fournisseurs, à partir de 0,91 $ par million de tokens en entrée et 2,86 $ par million de tokens en sortie, avec une fenêtre de contexte allant jusqu'à 203K tokens.

Providers and prices

5 endpoints from 5 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you. .

Endpoint
Region
Context
Input / 1M
Output / 1M
Cached / 1M
Supports
QwenOfficial−35%qwen/glm-5.1
Monde
203K
$1.4$0.91
$2.86
$0.169
ReasoningToolsJSONCacheVisionWeb
DeepInfra (États-Unis)Official−%deepinfra/zai-org/GLM-5.1
États-Unis
203K
$1.05$1.05
$3.5
$0.205
ReasoningToolsJSONCacheVisionWeb
TensorX (Europe)Official−%tensorx/z-ai/glm-5.1
Europe
203K
$1.4$1.4
$4.4
$0.35
ReasoningToolsJSONCacheVisionWeb
NebiusOfficial−%nebius/zai-org/GLM-5.1
Monde
203K
$1.4$1.4
$4.4
$1.4
ReasoningToolsJSONCacheVisionWeb
Z.ai (Asie)Official−%zai/glm-5.1
Asie
203K
$1.4$1.4
$4.4
$0.26
ReasoningToolsJSONCacheVisionWeb

Performance

Measured on real Eden AI traffic over the last 30 days. Endpoints with too little traffic are not shown.

Fastest first token
0.78 s
Nebius
Lowest latency
5.04 s
TensorX (Europe)
Highest throughput
62.26 tok/s
TensorX (Europe)
Best availability
100%
TensorX (Europe)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Qwen
2.85 s
6.45 s
40.77 s
46.75 tok/s
99.26%
84.48%
16.67%
1.82%
DeepInfra (États-Unis)
2.26 s
5.35 s
161.41 s
33.09 tok/s
100%
89.75%
0%
0%
TensorX (Europe)
1.34 s
5.04 s
78.1 s
62.26 tok/s
100%
95.41%
0%
0%
Nebius
0.78 s
49.82 s
244.38 s
34.99 tok/s
100%
65.36%
0%
0%
Z.ai (Asie)
7.98 s
12.06 s
100.47 s
15.54 tok/s
100%
76.32%
0%
0%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

Call GLM-5.1 with Eden AI

Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.

import requests

response = requests.post(
    "https://api.edenai.run/v3/chat/completions",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(response.json())

Questions about GLM-5.1

On Eden AI, prices for this model start at $0.91 per million input tokens and $2.86 per million output tokens. Prices differ by endpoint; the providers table lists each one. .

Up to 203K tokens, depending on the endpoint.

5 endpoints from 5 providers, available in: Monde, Asie, Europe, États-Unis. All of them are called with the same Eden AI API key.

Yes. At least one endpoint is hosted in Europe; pin it with its endpoint ID from the providers table to keep requests in the EU.

Over the last 30 days, the fastest first token was 0.78 s (Nebius) and the highest throughput was 62.26 tokens per second (TensorX (Europe)).