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 is priced at $1.05 per million input tokens and $3.30 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
What is GLM 5.2 used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
GLM 5.2 vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| GLM 5.2 | — | — | $1.05 | $3.30 |
| GLM 4.5 | 26.4 | — | $0.70 | $2.40 |
| GLM 4.6 | 32.5 | — | $0.45 | $1.65 |
| GLM 4.7 | 42.1 | — | $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.45 / 1MGLM 4.7Zai · $0.70 / 1MGLM 4.7 FlashZai · FreeGLM 5Zai · $0.80 / 1MGLM 5.1Zai · $0.80 / 1MClaude Opus 4.7Anthropic · $0.80 / 1MClaude Opus 4.8Anthropic · $4.00 / 1MClaude Sonnet 4Anthropic · $0.45 / 1MClaude Sonnet 4.5Anthropic · $0.40 / 1MClaude Sonnet 4.5 RpAnthropic · $1.00 / 1MClaude Sonnet 4.6Anthropic · $1.00 / 1M
GLM 5.2 — frequently asked questions
- How much does GLM 5.2 cost?
- GLM 5.2 is billed pay-as-you-go at $1.05 per 1M input tokens and $3.30 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can GLM 5.2 do?
- GLM 5.2 is Zai's chat model, accessible through the Api.Airforce API.
- 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);