Z.ai · Text
GLM-5.2 API pricing
zai/glm-5.2
Open-weight flagship. GLM-5.2 by Z.ai, called through one INFRO key alongside every other model you run. We price it 40% below Z.ai's direct rate — the same model, the same weights, reached through a different integration.
Pricing
Z.ai direct
$1.30
per 1M tokens
INFRO
$0.78
per 1M tokens
You save
40%
on every unit
Per-token rates
$0.48 / 1M input tokens·$1.68 / 1M output tokens
The headline figure above is these two blended at a 3:1 input:output ratio, so one number is comparable across modalities. Your own ratio will move it.
Illustrative launch rates, reconciled against published provider pricing on 2026-08-24. Live rates come from GET /v1/models once your key is active.
Calling GLM-5.2
POST /v1/chat/completionsAt launch — Committed to the first release. In build now, not usable yet.import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
response = client.chat.completions.create(
model="zai/glm-5.2",
messages=[{"role": "user", "content": "Hello"}],
)What this modality supports
- Streaming
- Tool calling
- Structured outputs
- Prompt caching
Frontier and open-weight language models behind an OpenAI-compatible endpoint. Streaming, tool calling, structured outputs, and vision pass straight through — and prompt caching is billed at the provider's cached rate, so the discount compounds.
Alternatives for open-weight flagship
Same modality, nearest in price. All of them share the request shape above, so comparing them is a one-word change.
Work out what GLM-5.2 would cost you
Put your current spend on this model into the calculator and see the same workload priced here — or have us read your real usage.