GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.
Ways to buy 13
| Way to buy | Input | Output | In / out per 1M | Cached | Vs cheapest |
|---|---|---|---|---|---|
fp8 · cached $0.09 | $0.9 | $2.9 | $0.9 / $2.9Cheapest | $0.09 | Cheapest |
fp8 · cached $0.6 | $1.19 | $3.74 | $1.19 / $3.74+31% vs cheapest | $0.6 | +31% vs cheapest |
| AtlasCloud fp8 · cached $0.234 | $1.26 | $3.96 | $1.26 / $3.96+38% vs cheapest | $0.234 | +38% vs cheapest |
| Phala Default region · cached $0.6 | $1.21 | $4.2 | $1.21 / $4.2+40% vs cheapest | $0.6 | +40% vs cheapest |
fp8 · cached $0.247 | $1.33 | $4.18 | $1.33 / $4.18+46% vs cheapest | $0.247 | +46% vs cheapest |
fp8 · cached $0.26 | $1.38 | $4.4 | $1.38 / $4.4+52% vs cheapest | $0.26 | +52% vs cheapest |
| Baidu fp8 · cached $0.26 | $1.4 | $4.4 | $1.4 / $4.4+54% vs cheapest | $0.26 | +54% vs cheapest |
Default region · cached $0.26 | $1.4 | $4.4 | $1.4 / $4.4+54% vs cheapest | $0.26 | +54% vs cheapest |
| GMICloud fp8 · cached $0.26 | $1.4 | $4.4 | $1.4 / $4.4+54% vs cheapest | $0.26 | +54% vs cheapest |
fp8 · cached $0.26 | $1.4 | $4.4 | $1.4 / $4.4+54% vs cheapest | $0.26 | +54% vs cheapest |
| StreamLake fp8 · cached $0.26 | $1.4 | $4.4 | $1.4 / $4.4+54% vs cheapest | $0.26 | +54% vs cheapest |
fp8 · cached $0.26 | $1.4 | $4.4 | $1.4 / $4.4+54% vs cheapest | $0.26 | +54% vs cheapest |
fp8 · cached $0.286 | $1.54 | $4.84 | $1.54 / $4.84+69% vs cheapest | $0.286 | +69% vs cheapest |
USD per 1M tokens. Regions are separate routes.
Through a gateway
Your own numbers100M input and 20M output tokens a month: $148.00 direct.
LiteLLM$148.00+0%
Vercel AI Gateway$148.00+0%
Requesty$155.40+5%
Eden AI$156.14+5.5%
OpenRouter$156.14+5.5%
Cloudflare AI GatewayNot offeredNot offered
HeliconeNot offeredNot offered
Kong AI GatewayNot offeredNot offered
Neon AI GatewayNot offeredNot offered
TrueFoundry AI GatewayNot offeredNot offered
A dash: not on that gateway's own model list. No published token fee: Martian Gateway, Portkey.
Related models
| In / out per 1M | Cheapest route | |||||||
|---|---|---|---|---|---|---|---|---|
Z.ai · 1M | $0.37 | $1.25 | $0.37 / $1.25 | $0.59 | 1M | Lab list price | · | GLM-5.3-FlashX-Legal (GLM-Legal) is Z.ai's legal-domain variant of GLM-5.3-FlashX, a native multimodal model that accepts text, image, and video input and produces text. |
Z.ai · 1M | $2.8 | $8.8 | $2.8 / $8.8 | $4.3 | 1M | Lab list price | · | GLM-5.3-Prime is the high-speed variant of Z.ai's GLM-5.3, inheriting its full capabilities while delivering 1.5–2× the output throughput through inference acceleration. |
Z.ai · 1M | $0.37 | $1.25 | $0.37 / $1.25 | $0.59 | 1M | Lab list price | · | GLM-5.3-FlashX is the high-speed variant of Z.ai's GLM-5.3-Flash, a native multimodal model delivering inference speeds of up to 200 tokens/s. |
Z.ai · 1M | $0.012 | $0.158 | $0.012 / $0.158 | $0.049 | 1M | on Relace (fp4) | · | GLM-5.3-Flash is a native multimodal model from Z.ai. |
OpenAI · 1.05MCheapest: $1 on OpenAI (flex) | $1 | $5 | $1 / $5 | $2 | 1.05M | $1 on OpenAI (flex) | · | GPT-6.1 Terra is the mid-tier model in OpenAI's GPT-6.1 series, priced below GPT-6.1 Sol. |
Google · 1MCheapest: $0.75 on Google Gemini API (flex) | $0.75 | $3.75 | $0.75 / $3.75 | $1.5 | 1M | $0.75 on Google Gemini API (flex) | · | Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning. |
Meta · 1M | $1.25 | $4.25 | $1.25 / $4.25 | $2 | 1M | Lab list price | · | Muse Spark 1.1 is a multimodal reasoning model from Meta, built for agentic tasks. |
Qwen (Alibaba) · 1M | $2 | $6 | $2 / $6 | $3 | 1M | Lab list price | · | Qwen3.8 Max 0902 is an updated snapshot of Qwen3.8 Max from Alibaba's Qwen team. |
About GLM 5.1
Takes text in and returns text. First listed Sep 23, 2026. Up to 131K output tokens. Blended price $1.4 per 1M tokens at 3 input to 1 output. Model id glm-5-1.
Price history
No list-price history: this model is sold by hosts rather than its lab.
Questions
How much does GLM 5.1 cost?
$0.9 per million input tokens and $2.9 per million output tokens, with cached input at $0.09.
What is the context window of GLM 5.1?
205K tokens, with up to 131K tokens of output.
Where is GLM 5.1 cheapest?
Of 13 routes tracked, Chutes is cheapest at $0.9 input and $2.9 output per million tokens.
Has GLM 5.1's price changed?
Yes. The output price went from $3.08 to $2.9, first seen Oct 27, 2026.