GLM-5.4 on OpenRouter

GLM-5.4 · Zhipu AI

Serverless

Last refreshed 2026-12-02. Next refresh: weekly.

Why use GLM-5.4 on OpenRouter?

OpenRouter offers GLM-5.4 with pay-as-you-go pricing at $1.40/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.

Compare GLM-5.4 across 9 providers to find the best fit for your use case
Input / 1M
$1.40
Output / 1M
$4.40
Cache
read $0.26
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: z-ai/glm-5.4
Model ID
z-ai/glm-5.4

Request example

Curated snippets for this provider are not sourced yet. Use OpenRouter documentation with model ID z-ai/glm-5.4.

Gotchas

  • Use provider model ID "z-ai/glm-5.4", not the LLMReference slug "glm-5.4".

Compare GLM-5.4 Across Providers

ProviderInput (per 1M)Output (per 1M)
Z.ai$1.40$4.40
OpenRouter$1.40$4.40
Vercel AI Gateway$1.40$4.40
Baseten API$1.40$4.40
FriendliAI Serverless Endpoints$1.40$4.40
View all 9 providers →

Pricing

TypePrice (per 1M)
Input tokens$1.40
Output tokens$4.40

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsPrompt Caching

About GLM-5.4

GLM-5.4 is a multimodal coding and reasoning model using a Loop Transformer that reuses layers. It accepts text, images, video and files, supports a 1M-token context and 128K output, and is available through the Z.ai API and GLM Coding Plan.

Get Started