GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows.
Ways to buy 9
| Way to buy | Input | Output | In / out per 1M | Cached | Vs cheapest |
|---|---|---|---|---|---|
| Baidu fp8 · cached $0.14 | $0.7 | $2.24 | $0.7 / $2.24Cheapest | $0.14 | Cheapest |
fp8 · cached $0.2 | $0.95 | $2.55 | $0.95 / $2.55+24% vs cheapest | $0.2 | +24% vs cheapest |
Default region | $1 | $3.2 | $1 / $3.2+43% vs cheapest | n/a | +43% vs cheapest |
| GMICloud fp8 · cached $0.2 | $1 | $3.2 | $1 / $3.2+43% vs cheapest | $0.2 | +43% vs cheapest |
fp8 · cached $0.2 | $1 | $3.2 | $1 / $3.2+43% vs cheapest | $0.2 | +43% vs cheapest |
| StreamLake fp8 · cached $0.2 | $1 | $3.2 | $1 / $3.2+43% vs cheapest | $0.2 | +43% vs cheapest |
fp8 · cached $0.2 | $1 | $3.2 | $1 / $3.2+43% vs cheapest | $0.2 | +43% vs cheapest |
fp8 · cached $0.2 | $1 | $3.2 | $1 / $3.2+43% vs cheapest | $0.2 | +43% vs cheapest |
turbo · cached $0.24 | $1.2 | $4 | $1.2 / $4+75% vs cheapest | $0.24 | +75% vs cheapest |
USD per 1M tokens. Regions are separate routes.
Through a gateway
Your own numbers100M input and 20M output tokens a month: $114.80 direct.
LiteLLM$114.80+0%
Vercel AI Gateway$114.80+0%
Requesty$120.54+5%
Eden AI$121.11+5.5%
OpenRouter$121.11+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. |
Google · 1MCheapest: $0.75 on Google Vertex AI (global-flex) | $0.75 | $3.75 | $0.75 / $3.75 | $1.5 | 1M | $0.75 on Google Vertex AI (global-flex) | · | Gemini 3.7 Flash is a multimodal model from Google for fast agentic workflows, coding, and complex multi-step reasoning. |
About GLM 5
Takes text in and returns text. First listed Sep 23, 2026. Up to 131K output tokens. Blended price $1.09 per 1M tokens at 3 input to 1 output. Model id glm-5.
Price history
No list-price history: this model is sold by hosts rather than its lab.
Questions
How much does GLM 5 cost?
$0.7 per million input tokens and $2.24 per million output tokens, with cached input at $0.14.
What is the context window of GLM 5?
205K tokens, with up to 131K tokens of output.
Where is GLM 5 cheapest?
Of 9 routes tracked, Baidu is cheapest at $0.7 input and $2.24 output per million tokens.