Zhipu: GLM 5.4 ThinkingAPI pricing
GLM-5.4 is Z.ai's flagship model, built on a Loop Transformer that reuses layers across two passes for deeper reasoning. It accepts video, images, text and files, returns text, and is aimed at generalized coding.
- Price per 1M tokens
- $1.40 / $4.40input / output
- Cached input
- $0.26per 1M tokens
- Context
- 1M tokens131K max output
- Providers
- 1
Providers
1 provider ·
1M context · 131K max output
Supported parameters 12
- Sampling
temperaturetop_pseedlogit_bias- Penalties
presence_penalty- Output
stopresponse_formatstructured_outputs- Tools
toolstool_choice- Reasoning
reasoninginclude_reasoning
Routing
A request picks by price (:floor) or by speed (provider.sort, :nitro), or sets a floor on tokens per second. How routing works
Supported parameters
Open a provider for the parameters it supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; provider.require_parameters sends a request only to providers that support every parameter it sets. Required parameters
Price history
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/glm-5.4:thinking", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/glm-5.4:thinking",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/glm-5.4:thinking",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);Call GLM 5.4 Thinking with the OpenAI SDK: point it at https://api.opencheap.si/v1 and pass the model id opencheap/glm-5.4:thinking; the rest of your code stays the same.
About GLM 5.4 Thinking
- Example request
- $0.01810,000 in + 1,000 out
- Endpoint
https://api.opencheap.si/v1- Model id
Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in usage.cost. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
Pricing in words
GLM 5.4 Thinking costs from $1.40 per 1M input tokens and $4.40 per 1M output tokens on OpenCheap, with cached input at $0.26 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.018, and 1,000 such requests about $18.40.
One provider serves GLM 5.4 Thinking on OpenCheap today. Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.
GLM 5.4 Thinking is one of 53 Zhipu models on OpenCheap.
Prices as of 2026-12-04 11:48 UTC.
Pricing questions
How much does the GLM 5.4 Thinking API cost per 1M tokens?
GLM 5.4 Thinking costs from $1.40 per 1M input tokens and $4.40 per 1M output tokens on OpenCheap, with cached input at $0.26 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.
What does one GLM 5.4 Thinking request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.018, and 1,000 such requests about $18.40. Every answer reports its own cost in usage.cost.
Which providers serve GLM 5.4 Thinking?
One provider serves GLM 5.4 Thinking on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of GLM 5.4 Thinking?
Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.
How do I call the GLM 5.4 Thinking API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/glm-5.4:thinking. One OpenCheap key works for every model; the rest of your code stays the same.
More from Zhipu
- GLM 5.4glm-5.4$0.70 / $2.20 per 1M · 1M context
- GLM 5.3glm-5.3$0.12 / $0.037 per 1M · 1M context
- GLM 5.3 Flashglm-5.3-flash$0.0064 / $0.022 per 1M · 1M context
- GLM 5.2glm-5.2$0.07 / $0.22 per 1M · 1M context
- GLM 5.1glm-5.1$0.15 / $0.46 per 1M · 204K context
- GLM 4.7glm-4.7$0.032 / $0.14 per 1M · 202K context
- GLM 4.6glm-4.6$0.044 / $0.18 per 1M · 202K context
- GLM 4.5glm-4.5$0.15 / $0.55 per 1M · 131K context
Similar models
- Claude Sonnet 5Anthropic · 1M context$1.10 / $5.50 per 1M
- Grok 4.7xAI · 500K context$1.26 / $5.03 per 1M
- GPT 6.1 Terra ProOpenAI · 1M context$0.94 / $4.70 per 1M
- Qwen3.7 MaxQwen · 1M context$1.48 / $4.42 per 1M
- GPT 6 AstraOpenAI · 1M context$1.00 / $5.00 per 1M
- Muse Spark OpenMeta · 1M context$1.18 / $4.00 per 1M10 % cheaper