GLM 5.1 is available from 8 provider(s). Cheapest: UplinkSwitch at $0.382 per 1M input tokens and $1.20 per 1M output tokens. Context window: up to 204 800 tokens. Developer: Z.ai.
Rankings: Arena (arena.ai, formerly LMArena), dataset lmarena-ai/leaderboard-dataset, licensed under CC BY 4.0, as of 2026-11-23. Excerpt; variants with different reasoning effort merged and matched to our prices by aiapicompare. Not affiliated with Arena and not a recommendation.
| Provider | Input $/1M | Output $/1M | Context | |
|---|---|---|---|---|
| UplinkSwitch glm-5.1 | $0.382 | $1.20 | 200K | Go to provider ↗ Set up |
| NanoGPT TEE/glm-5.1 | $0.900 +135 % | $2.90 | 203K | Go to provider ↗ Set up |
| DeepInfra zai-org/GLM-5.1 | $1.05 +175 % | $3.50 | 203K | Go to provider ↗ Set up |
| Novita AI zai-org/glm-5.1 | $1.38 +261 % | $4.40 | 205K | Go to provider ↗ Set up |
| CometAPI glm-5.1 | $1.40 +266 % | $4.41 | — | Go to provider ↗ Set up |
| OpenRouter z-ai/glm-5.1 | $1.40 +266 % | $4.40 | 205K | Go to provider ↗ Set up |
| Kyma API glm-5.1 | $1.89 +394 % | $5.94 | 203K | Go to provider ↗ Set up |
| ⚠ Far below the reference price – please check first | ||||
| AnyModel⚠ 92% below reference glm/glm-5.1 | $0.150 | — | — | Go to provider ↗ Set up |
Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.
Reference price: $1.90 per 1M tokens (blended 3:1), median of all providers · How we compare → · Wrong price? Report it
Price history is recorded daily – the chart appears after the first price change.
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.uplinkswitch.com/v1", api_key=os.environ["UPLINKSWITCH_API_KEY"])
r = client.chat.completions.create(
model="glm-5.1",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)
Currently at UplinkSwitch ($0.382 / 1M). Prices are updated daily; the provider’s website is authoritative.
All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.