Zhipu

GLM 5.4

z-ai
Chat

GLM 5.4 is Z.ai’s multimodal model for coding and agentic work. It uses a Loop Transformer design and accepts text and images with a one-million-token context window.

Modalities

In / out price

$1.61 / $5.075per 1M

Cached price

$0.161per 1M

Context

1M

Providers

Compare providers by price, privacy, and speed.

2 routes
Baseten
Private$1.61$5.075$0.161––
Surplus Intelligence
Anonymous$1.65$5.50$0.24––

Privacy

How your prompts are protected, by provider.

2 / 4

Private routing

Private tier

  1. Anonymous
  2. Private
  3. TEE
  4. E2EE

Prompt and response content is not retained after the request. Request content is visible to the inference runtime while it is being processed. Learn more

Capabilities

What this model supports, and where providers differ.

StreamingAll providers support this
Tool callingAll providers support this
VisionAll providers support this
Structured outputs1/2 providers support this
Prompt cachingAll providers support this
ReasoningLowHighMaxAll providers support this
ProviderStructured outputsReasoningCache write / 1M
BasetenYesLowHighMaxNot listed
Surplus IntelligenceNoAlways on$2.95

Pricing

What 1M tokens cost, and how prices have changed.

Input
$1.61
per 1M tokens
Cached input
$0.161
90% off input
Output
$5.075
per 1M tokens
$1.61$5.075$0.161
$1.65$5.50$0.24

Uptime

How often requests succeed, day by day.

Quickstart

Copy a request and run it with your API key in ANONROUTER_API_KEY.

# 1. Exchange your key for a single-use ticket bound to the model.TICKET=$(curl -s https://control.anonrouter.ai/v1/inference/tickets \  -H "Authorization: Bearer $ANONROUTER_API_KEY" \  -H "Content-Type: application/json" \  -d '{"model": "z-ai/glm-5.4", "max_completion_tokens": 256}' | jq -r .ticket) # 2. Call chat with the ticket. The relay never receives your key.curl https://api.anonrouter.ai/v1/chat/completions \  -H "x-anonrouter-ticket: $TICKET" \  -H "Content-Type: application/json" \  -d '{    "model": "z-ai/glm-5.4",    "max_tokens": 256,    "messages": [{"role": "user", "content": "Explain private AI routing in one sentence."}]  }'
Get an API keyRead the docsSet your key as ANONROUTER_API_KEY.

FAQ

Common questions about GLM 5.4.