GLM 5.1 (Chutes) API

Chutes · serves glm-5.1

Pricing

Input / 1M$0.98
Output / 1M$3.08
Blended / 1M$4.06
Cached input / 1M$0.10
Context window204,800 tokens
Max output65,535 tokens
LicenseOpen weights · MIT permissive
Knowledge cutoffJanuary 2026 · source
Intelligence index41 Artificial Analysis Intelligence Index · source

textfunction-calling

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

Sources

SourceInput / 1MOutput / 1MVerified
OpenRouter$0.98$3.082026-09-05
LiteLLM$1.05$3.502026-09-03
models.dev$0.98$3.082026-09-04

Two independent sources agree within 20%.

Cheaper providers for glm-5.1

ProviderBlended / 1MEndpoint
Baidu$3.764view →
GMICloud$3.77view →

Compare all 15 providers serving glm-5.1 →

Call it

Served via OpenRouter, pinned to Chutes — 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.1",
    "messages": [{"role": "user", "content": "Hello"}],
    "provider": {"only": ["Chutes"], "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.1",
    messages=[{"role": "user", "content": "Hello"}],
    extra_body={"provider": {"only": ["Chutes"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)

Price unchanged since 2026-09-03 — 1 point on record.

Use this data

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