GLM 5 Turbo overview
GLM 5 Turbo specs
- Model ID
z-ai/glm-5-turbo- Developer
- Zhipu AI
- Context window
- 262,144 tokens
- Max output
- 131,072 tokens
- Input
- Image, Text
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
Use cases
GLM-5 Turbo is documented as suited to complex, automated agent workflows in OpenClaw scenarios, where it is optimized for tool invocation, command following, timed and persistent tasks, and long-chain execution.
It is also suited to agent-driven work that requires complex instruction decomposition, repeated tool use, and stable execution across extended tasks.
The model is documented as useful for information search and gathering, office and daily tasks, data analysis, development and operations, and automation.
It is also described as suitable for complex business-process execution, including end-to-end workflows that orchestrate writing, image generation, and video-production tools.
Capabilities
- Function calling
- Reasoning
- Streaming
- Structured outputs
- Web search
GLM 5 Turbo benchmarks by
Artificial Analysis
See how GLM 5 Turbo scores on independent evaluations. Data retrieved Nov 3, 2026.
Benchmark results
Compare 13 models available on AI/ML API across 5 independent benchmarks.
Humanity's Last Exam
Expert-written questions across academic subjects.
GPQA Diamond
Graduate-level science questions written to resist web search.
AA-LCR
Reasoning across long documents of about 100k tokens.
IFBench
Following precise instructions about the shape of the answer.
τ²-Bench Telecom
Customer support agent tasks with tool calls.
GLM 5 Turbo API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $1.2 | 1M tokens |
| Output | $4 | 1M tokens |
| Cached input | $0.24 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
GLM 5 Turbo vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $1.2 | $4 | |
| $0.15 | $0.5 | |
| $0.37 | $1.25 | |
| $1.4 | $4.4 | |
| $3.5 | $11 |
How to use the GLM 5 Turbo API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "z-ai/glm-5-turbo",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "z-ai/glm-5-turbo",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "z-ai/glm-5-turbo",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
GLM 5 Turbo FAQ
What is the context window of GLM 5 Turbo?
GLM 5 Turbo has a 262,144 tokens context window and can return up to 131,072 tokens.
What inputs and outputs does GLM 5 Turbo support?
GLM 5 Turbo takes image, text as input and returns text.
What is the model ID for GLM 5 Turbo?
Use z-ai/glm-5-turbo as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
How much does GLM 5 Turbo cost?
GLM 5 Turbo costs $1.2 input and $4 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does GLM 5 Turbo support streaming?
Yes, GLM 5 Turbo can stream responses as they are generated.
Can GLM 5 Turbo read images?
Yes, GLM 5 Turbo accepts image input alongside text.
Who created GLM 5 Turbo?
GLM 5 Turbo was built by Zhipu AI.

