GLM 5.2 Fast Preview overview
GLM 5.2 Fast Preview specs
- Model ID
zhipu/glm-5-2-fast-preview- Developer
- Zhipu AI
- Context window
- 1,000,000 tokens
- Max output
- 131,072 tokens
- Input
- Text
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
What Is GLM 5.2 Fast Preview API?
GLM-5.2-Fast-Preview is a high-speed variant of Zhipu AI's GLM-5.2.
It is described as an inference-optimized preview model with capabilities on par with the standard version.
Technical Reference
| Developer | Zhipu AI |
|---|---|
| Model ID | zhipu/glm-5-2-fast-preview |
| Release Date | July 9, 2026 |
| Context Window | 1,000,000 tokens (~1M) |
| Max Output Tokens | 131,072 tokens |
| Modalities | Text → Text |
| Capabilities | parallel tool calls, reasoning, streaming, structured (JSON schema) output, tool/function calling |
What GLM 5.2 Fast Preview Brings to the Table
High-speed variant
The model is positioned as the fast-inference version of GLM-5.2.
Latency-focused
It is described as suitable for latency-sensitive scenarios.
Output throughput
The model is said to deliver 1.5–2× the output TPS of the standard version.
Service provider
The inference service provider for glm-5.2-fast-preview is listed as Alibaba Cloud Model Studio.
Where GLM 5.2 Fast Preview Makes the Most Sense
Real-time chat
It is described as fitting real-time dialogue and chat workloads.
Multi-turn agents
It is described as suitable for multi-turn agent interactions.
Streaming code generation
It is described as a fit for streaming code generation.
Speed-sensitive inference
It is positioned for scenarios where output speed is critical.
Use cases
Real-time chat is a documented fit for this model because it is inference-optimized for latency-sensitive use cases.
Multi-turn agents are also explicitly listed as a suitable use case, including agent-style interactions that benefit from fast output.
Streaming code generation is another documented use case for this model, reflecting its optimization for low-latency, incremental output.
The model is also described as suitable for real-time dialogue and multi-turn Agent calls in another source covering the same exact model.
Capabilities
- Reasoning
- Streaming
GLM 5.2 Fast Preview API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $3.5 | 1M tokens |
| Output | $11 | 1M tokens |
| Cached input | $0.7 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
GLM 5.2 Fast Preview vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $3.5 | $11 | |
| $0.15 | $0.5 | |
| $0.37 | $1.25 | |
| $1.4 | $4.4 | |
| $1.4 | $4.4 |
How to use the GLM 5.2 Fast Preview API
View docs (opens in a new tab)Build 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": "zhipu/glm-5-2-fast-preview",
"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": "zhipu/glm-5-2-fast-preview",
"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": "zhipu/glm-5-2-fast-preview",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());GLM 5.2 Fast Preview FAQ
What is the context window of GLM 5.2 Fast Preview?
GLM 5.2 Fast Preview has a 1,000,000 tokens context window and can return up to 131,072 tokens.
What inputs and outputs does GLM 5.2 Fast Preview support?
GLM 5.2 Fast Preview takes text as input and returns text.
What is the model ID for GLM 5.2 Fast Preview?
Use zhipu/glm-5-2-fast-preview as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
When was GLM 5.2 Fast Preview released?
GLM 5.2 Fast Preview became available on July 10, 2026.
How much does GLM 5.2 Fast Preview cost?
GLM 5.2 Fast Preview costs $3.5 input and $11 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does GLM 5.2 Fast Preview support streaming?
Yes, GLM 5.2 Fast Preview can stream responses as they are generated.
Who created GLM 5.2 Fast Preview?
GLM 5.2 Fast Preview was built by Zhipu AI.
How do you access GLM 5.2 Fast Preview via API?
It is available at the endpoint https://api.aimlapi.com/v1/chat/completions using the model id zhipu/glm-5-2-fast-preview.
What features and capabilities does GLM 5.2 Fast Preview offer?
It supports reasoning, streaming, structured output, tools, and parallel tool calls.