glm-5.2-fast
GLM-5.2-Fast is the high-speed version of Zhipu AI's flagship model, GLM-5.2, offering significantly faster output speeds.
Aggregated modalities
Channel
Each channel is compared at its lowest input-price tier; output breaks ties. A dash means /api/pricing does not provide that rate. Selecting a channel updates the endpoints and call example below.
ChannelUSD per 1M tokensInputOutputCache readCache write
baidu/glm-5.2-fastInput
$2.25 USD per 1M tokens
Output
$7.88 USD per 1M tokens
Cache read
$0.56 USD per 1M tokens
Cache write
- USD per 1M tokens
Endpoints
POST
/v1/chat/completionsChat CompletionsCall it
Using baidu/glm-5.2-fast
1from openai import OpenAI23client = OpenAI(4 base_url="https://www.realrelay.ai/v1",5 api_key="sk-***",6)78response = client.chat.completions.create(9 model="baidu/glm-5.2-fast",10 messages=[{"role": "user", "content": "Hello"}],11)1213print(response.choices[0].message.content)1import OpenAI from "openai";23const client = new OpenAI({4 baseURL: "https://www.realrelay.ai/v1",5 apiKey: process.env.REALRELAY_API_KEY,6});78const response = await client.chat.completions.create({9 model: "baidu/glm-5.2-fast",10 messages: [{ role: "user", content: "Hello" }],11});1213console.log(response.choices[0].message.content);1curl https://www.realrelay.ai/v1/chat/completions \2 -H "Authorization: Bearer $REALRELAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "baidu/glm-5.2-fast",6 "messages": [{ "role": "user", "content": "Hello" }]7 }'Prices and availability as published on Oct 14, 2026.
Capabilities
ReasoningStructured outputTool use
Input
Text
Output
Text
Frequently asked questions
- What is glm-5.2-fast?
- glm-5.2-fast is a model from Z.ai. RealRelay.ai serves it through one OpenAI-compatible API.
- How much does glm-5.2-fast cost?
- glm-5.2-fast costs from $2.25 per 1M input tokens and $7.88 per 1M output tokens.
- What inputs and outputs does glm-5.2-fast support?
- Input: Text. Output: Text.
- What is the context window of glm-5.2-fast?
- glm-5.2-fast has a context window of 1.05M tokens. It returns up to 131K output tokens.
- What can glm-5.2-fast do?
- Listed capabilities: Reasoning, Structured output, and Tool use.
- How do I call glm-5.2-fast through the API?
- Use the model ID baidu/glm-5.2-fast with a RealRelay.ai API key on the OpenAI-compatible API.
More from Z.ai
All 20 Z.ai modelsGLM-5.3-FlashX
Save 20%- Context
- 1M
- In / 1M
- $0.2857
- Official price
$0.37 - Out / 1M
- $1.00
- Official price
$1.25
GLM-5.3-Flash
Save 19%- Context
- 1M
- In / 1M
- $0.1143
- Official price
$0.15 - Out / 1M
- $0.40
- Official price
$0.50
GLM-5.3
Save 9%- Context
- 1M
- In / 1M
- $1.1429
- Official price
$1.40 - Out / 1M
- $4.00
- Official price
$4.40
GLM-5.2
Save 13%- Context
- 1M
- In / 1M
- $1.0885
- Official price
$1.40 - Out / 1M
- $3.8095
- Official price
$4.40
GLM-5.1
Save 25%- Context
- 200K
- In / 1M
- $0.8163
- Official price
$1.40 - Out / 1M
- $3.2653
- Official price
$4.40
GLM-4-32B-0414-128K
- Context
- 128K
- In / 1M
- $0.10
- Out / 1M
- $0.10
