Z.aiPaidOperational
GLM 5.4
API model name: glm-5.4
GLM 5.4 is Z.ai's chat model, served on the Api.Airforce unified API. It has a 1.0M-token context window. Beyond text, it accepts image, video as input. Capabilities include Vision, Tool calling, Reasoning. It is priced at $1.23 per million input tokens and $3.85 per million output tokens. That is below the provider's $1.40 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Api.Airforce price vs. the provider's official rate.-12%
Specifications
- Provider
- Z.ai
- Type
- chat model
- Context window
- 1.0M tokens
- Max output
- 944K tokens
- Input
- text, image, video
- Output
- text
Capabilities
VisionTool callingReasoningStreaming
What is GLM 5.4 used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
- Image understanding — analyze photos, screenshots, charts and scanned documents.
- Agents & automation — function calling and tool use for multi-step workflows.
- Complex reasoning — math, coding and step-by-step problem solving.
- Long-context tasks — process entire documents or codebases in a single prompt.
- Real-time experiences — stream tokens for responsive chat and apps.
GLM 5.4 vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| GLM 5.4 | — | 1.0M | $1.23 | $3.85 |
| GLM 4 | — | — | $6.10 | $7.72 |
| GLM 4 Airx | — | — | $0.58 | $0.62 |
| GLM 4 Long | — | — | $0.08 | $0.12 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
GLM 4Z.ai · $6.10 / 1MGLM 4 AirxZ.ai · $0.58 / 1MGLM 4 LongZ.ai · $0.08 / 1MGLM 4 PlusZ.ai · $0.71 / 1MGLM 4.5 AirZ.ai · $0.21 / 1MGLM 4.6Z.ai · $0.66 / 1MGLM 4.6vZ.ai · $0.33 / 1MGLM 4.7Z.ai · $0.66 / 1MGLM 4.7 FlashZ.ai · $0.08 / 1MGLM 5 TurboZ.ai · $1.18 / 1MGLM 5.1Z.ai · $0.80 / 1MGLM 5.2Z.ai · $1.05 / 1M
GLM 5.4 — frequently asked questions
- How much does GLM 5.4 cost?
- GLM 5.4 is billed pay-as-you-go at $1.23 per 1M input tokens and $3.85 per 1M output tokens. There is no subscription — you only pay for what you use.
- What is the context window of GLM 5.4?
- GLM 5.4 supports a context window of up to 1.0M tokens. It can return up to 944K tokens in a single response.
- What can GLM 5.4 do?
- GLM 5.4 supports Vision, Tool calling, Reasoning.
- Is GLM 5.4 free to use?
- GLM 5.4 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use GLM 5.4 via the API?
- GLM 5.4 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID glm-5.4 with your Api.Airforce API key.
- Who makes GLM 5.4?
- GLM 5.4 is Z.ai's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use GLM 5.4 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass glm-5.4 as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.4",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="glm-5.4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "glm-5.4",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);