Skip to content
Get API key API key

GLM 5.4

All models

Z.ai New
Model ID GLM-5.4

Text and up to 10 images per request.

Context window
1M tokens
Max output
125K tokens
Input price
€1.40 per 1M tokens
Output price
€4.40 per 1M tokens
Cached input price
€0.21 per 1M tokens
Type
LLMCoding
Input
TextImage
Output
Text
Endpoints
/v1/chat/completions
Reasoning
minimallowmediumhighxhighmax
Cloud
T Cloud T Cloud Public
Location
Germany (EU)
Data processing
Germany (EU)

Parameters

What the gateway accepts for this model. It refuses other values.

ParameterAccepted valuesDefaultDescription
reasoning_effort minimal, low, medium, high, xhigh, max max How long the model thinks before answering.
temperature 0 to 2 (step 0.01) 1 What to sample at. Higher values make the output more random, lower ones more deterministic. Change this or top_p, not both.
top_p 0 to 1 (step 0.01) 0.95 Nucleus sampling: only the tokens making up the top top_p of probability mass are considered. 0.1 means the top 10%. Change this or temperature, not both.
max_completion_tokens 1 to 128,000 32768 The most tokens the answer may use.

Plans and limits

TPM counts input and output tokens together. The prices above apply in every plan. Rate limits

Plan TPM RPM
Essential 1,620,000 180
Professional 3,240,000 360
Agentic 5,400,000 600

Example

With OPENAI_BASE_URL and OPENAI_API_KEY set as in the Quickstart.

Terminal
curl "$OPENAI_BASE_URL/chat/completions" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "GLM-5.4",
"messages": [{"role": "user", "content": "What is T Cloud?"}]
}'