Verified 2026-11-18 · rates follow the live catalog

GLM-5.4 API

The flagship GLM model, built on a Loop Transformer architecture for deeper reasoning. 1M-token context window, tool calls, reasoning effort control, and text and image input.

Specifications and pricing

GLM-5.4 — published rates in USD
ProviderZ.ai
Context window1.0M
Input / 1M tokens$1.40
Output / 1M tokens$4.40
Cached input / 1M tokens$0.26
Reasoning tierslow,high,max

What a request costs

A call with 50,000 input tokens and 10,000 output tokens bills at $0.114: 50,000 ÷ 1,000,000 × $1.40 for input, plus 10,000 ÷ 1,000,000 × $4.40 for output. A prompt prefix that hits the cache bills at $0.26 per million instead of the full input rate, so a long reused system prompt is far cheaper on the second call than the first.

Calling it

Endpoint

Both API formats are served from one host and one key, so a tool that speaks either works without a translation layer:

Set OPENAI_BASE_URL or ANTHROPIC_BASE_URL to that host and keep the client library you already use.

Send GLM-5.4 in the model field. These aliases resolve to the same model: glm-5.4, glm 5.4, GLM 5.4.

Capabilities: image input, tool and function calling, reasoning with low,high,max effort tiers.

Other GLM models

Every GLM model is compared on the GLM API pricing page.

Running agents on GLM-5.4? The GLM coding plan guide works out what a request costs and how the plan allowance covers it.

The rest of the catalog, with rates side by side, is on all models.

Model catalog · Pricing · Comparisons · Cost guides · Integration guides · FAQ
Guides: GLM coding plan alternative · DeepSeek coding plan · Free AI API · LLM gateway · LLM proxy · Cheap AI API · OpenAI-compatible API · Uncensored models
Model APIs: GLM API · DeepSeek API · Kimi API · Qwen API · MiniMax API
Compare: vs OpenRouter · vs Claude · vs OpenAI
Legal & contact: Terms · Privacy · Cookies · DPA · Contact