Home / z-ai / Z.ai: GLM 5.4

Z.ai: GLM 5.4 API Pricing & Cost Calculator

GLM-5.4 is Z.ai's first flagship model with native vision capabilities, featuring Z.ai's first Loop Transformer architecture with enhanced reasoning and generalized coding capabilities.

ReasoningCachingVisionOpen-Weight z-ai/glm-5.4
Input / 1M
$1.40
Output / 1M
$4.40
Cache Read / 1M
$0.260
Blended 3:1 / 1M
$2.15
Agent Cached / 1M
$1.27
Context Window
1.0M

Monthly Workload Cost Calculator

Daily
$4.92
Monthly
$147.75
Cache Saved
$128.25
Annual
$1,797.63

Benchmarks & Capabilities

Intelligence Index42
Coding / Engineering— / 48
Agentic Index—
Design Arena Avg ELO1283
Value Score28.03
Modalitytext+image+video->text
Max Output943.7K

5 Cheaper Alternatives to Z.ai: GLM 5.4

Alternative ModelBlended / 1MInput / 1MOutput / 1MIntelSide-by-Side
OpenAI: GPT-6.1 Terra (batch)
openai/gpt-6.1-terra:batch
$1.00 $0.500 $2.50 51 Compare →
Google: Gemini 4 Hydrogen (batch)
google/gemini-4-hydrogen:batch
$1.50 $0.750 $3.75 54 Compare →
OpenAI: GPT-6.2 Sol (batch)
openai/gpt-6.2-sol:batch
$2.00 $1.00 $5.00 57 Compare →
OpenAI: GPT-6.1 Sol (batch)
openai/gpt-6.1-sol:batch
$2.00 $1.00 $5.00 55 Compare →
Anthropic: Claude Sonnet 5.5 (batch)
anthropic/claude-sonnet-5.5:batch
$2.00 $1.00 $5.00 55 Compare →

Frequently Asked Questions

How much does Z.ai: GLM 5.4 API cost per 1M tokens?

Z.ai: GLM 5.4 (z-ai/glm-5.4) costs $1.40 per 1M input tokens and $4.40 per 1M output tokens (3:1 blended price: $2.15 per 1M tokens).

Does Z.ai: GLM 5.4 support prompt caching and how much does it save?

Yes. Cached input reads cost $0.260 per 1M tokens, bringing realistic 80%-cached agent loop cost down to $1.27 per 1M tokens.

What is the context window and maximum output of Z.ai: GLM 5.4?

Z.ai: GLM 5.4 supports a 1.0M token context window (1,048,576 tokens) and up to 943.7K output tokens per completion.

Fetch Live JSON via API

curl -s "https://llm.lhblabs.com/api/v1/models/z-ai-glm-5-4"
Recommended Stack: DigitalOcean

Predictable Droplets, managed databases, and GPU nodes for production AI workloads.

Try DigitalOcean →
Self-Serve Placement Building an LLM API, GPU Cloud, or AI Dev Tool?
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.
Book Sponsor Slot →