ZaiPaidOperational
Glm 5.2
API model name: glm-5.2
Glm 5.2 is Zai's chat model, served on the Api.Airforce unified API. It has a 1M-token context window. Capabilities include Tool calling, Reasoning, Prompt caching. It is priced at $0.85 per million input tokens and $2.88 per million output tokens. That is below the provider's $1.40 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Api.Airforce price vs. the provider's official rate.
Specifications
- Provider
- Zai
- Type
- chat model
- Context window
- 1M tokens
- Max output
- 262K tokens
- Input
- text
- Output
- text
- Prompt caching
- Supported
Capabilities
Tool callingReasoningPrompt cachingStreaming
What is Glm 5.2 used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
- Agents & automation — function calling and tool use for multi-step workflows.
- Complex reasoning — math, coding and step-by-step problem solving.
- Long-context tasks — process entire documents or codebases in a single prompt.
- Real-time experiences — stream tokens for responsive chat and apps.
Glm 5.2 vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Glm 5.2 | — | 1M | $0.85 | $2.88 |
| Glm 4.5 | 26.4 | — | $0.70 | $2.40 |
| Glm 4.6 | 32.5 | 205K | $0.70 | $2.40 |
| Glm 4.7 | 42.1 | 205K | $0.70 | $2.40 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Glm 4.5Zai · $0.70 / 1MGlm 4.6Zai · $0.70 / 1MGlm 4.7Zai · $0.70 / 1MGlm 4.7 FlashZai · FreeGlm 4.7 FreeZai · FreeGlm 5Zai · $0.80 / 1MGlm 5 FreeZai · FreeGlm 5.1Zai · $0.80 / 1MQwen3 32bAlibaba · $0.42 / 1MQwen3 4bAlibaba · $0.06 / 1MQwen3 8bAlibaba · $0.12 / 1MQwen3 CoderAlibaba · $1.29 / 1M
Glm 5.2 — frequently asked questions
- How much does Glm 5.2 cost?
- Glm 5.2 is billed pay-as-you-go at $0.85 per 1M input tokens and $2.88 per 1M output tokens. There is no subscription — you only pay for what you use.
- What is the context window of Glm 5.2?
- Glm 5.2 supports a context window of up to 1M tokens. It can return up to 262K tokens in a single response.
- What can Glm 5.2 do?
- Glm 5.2 supports Tool calling, Reasoning, Prompt caching.
- Is Glm 5.2 free to use?
- Glm 5.2 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Glm 5.2 via the API?
- Glm 5.2 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID glm-5.2 with your Api.Airforce API key.
- Who makes Glm 5.2?
- Glm 5.2 is Zai's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Glm 5.2 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass glm-5.2 as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "glm-5.2",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);