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.

Starting at
Input
$2.25/ 1M
Output
$7.88/ 1M
Open dashboard

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.

baidu/glm-5.2-fast
Input
$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 Completions

Call 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 models

glm-5.2-fast - pricing and specs | RealRelay.ai