GLM 5.2 (Mistral) API

Mistral AI · serves glm-5.2

Pricing

Input / 1M$1.40
Output / 1M$4.40
Blended / 1M$5.8
Cached input / 1M$0.14
Context window1,048,576 tokens
Max output128,000 tokens
LicenseOpen weights · MIT permissive
Knowledge cutoffJanuary 2026 · source
Intelligence index52.6 Artificial Analysis Intelligence Index · source

textfunction-calling

Price verified 2026-09-05 (0 days ago) · sourcecorroborated

Sources

SourceInput / 1MOutput / 1MVerified
OpenRouter$1.40$4.402026-09-05
LiteLLM$1.40$4.402026-09-03
models.dev$1.40$4.402026-09-04

Two independent sources agree within 20%.

Cheaper providers for glm-5.2

ProviderBlended / 1MEndpoint
OpenRouter$0view →
Baidu$1.479view →
Novita AI$1.711view →

Compare all 22 providers serving glm-5.2 →

Call it

Served via OpenRouter, pinned to Mistral — the provider these prices are resolved from. Set OPENROUTER_API_KEY. Provider page.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.2",
    "messages": [{"role": "user", "content": "Hello"}],
    "provider": {"only": ["Mistral"], "allow_fallbacks": false}
  }'
from openai import OpenAI  # pip install openai

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="...",  # OPENROUTER_API_KEY
)
resp = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[{"role": "user", "content": "Hello"}],
    extra_body={"provider": {"only": ["Mistral"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)

Price history

DateInput / 1MOutput / 1M
2026-09-05$1.40$4.40
2026-09-03$1.54$4.84

2 price points on record · a new point is added only when the price actually changes.

Use this data

Raw JSON for this page: glm-5.2.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.