Z.ai · Released Dec 2, 2026

GLM 5.4

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.

ReasoningOpen weightsVision
  • Top 32%OTIS Mock AIME
  • Top 38%GPQA Diamond
  • Top 44%FrontierMath
  • Top 48%FrontierMath Tier 4
Released
Dec 2 2026
Context window
1M 944K out
Input / 1M tokens
$1.40 from $0.29
Output / 1M tokens
$4.40 from $3.43

Where to run it

39 providers compared

Included in Alibaba Token Plan (China), Z.AI Coding Plan, Alibaba Token Plan, Zhipu AI Coding Plan, Volcengine Ark Coding Plan +2 more. Cheapest: Kenari at $0.29 / $3.43 per 1M input / output tokens — 57% less than the priciest option.

ProviderInputOutputCache readContextMax outputUptimevs. best
Alibaba Token Plan (China)subscription plan Plan Plan Plan1M131K— Plan
Z.AI Coding Plansubscription plan Plan Plan Plan1M131K— Plan
Alibaba Token Plansubscription plan Plan Plan Plan1M131K— Plan
Zhipu AI Coding Plansubscription plan Plan Plan Plan1M131K— Plan
Volcengine Ark Coding Plansubscription plan Plan Plan Plan1M131K— Plan
Tencent Token Plansubscription plan Plan Plan Plan1M131K— Plan
OpenCode Gosubscription plan Plan Plan Plan1M131K— Plan
Kenari $0.29 $3.43 $0.0431M131K— Cheapest
PrimeIntellect $1.20 $4.00 $0.221M131K98.5%24h +77%
Prime Inference $1.20 $4.00 $0.221M131K— +77%
Zhipu AI $1.20 $4.18 $0.301M131K— +81%
Volcengine Ark $1.20 $4.19 $0.301M131K— +82%
Alibaba (China) $1.20 $4.20 $0.301M131K— +82%
Vivgrid $1.20 $4.20 $0.301M128K— +82%
Eden AI $1.30 $4.00 $0.251M131K— +84%
Inferact vLLM $1.40 $4.40 $0.261M944K100%24h +101%
Modal $1.40 $4.40 $0.261M944K100%24h +101%
Friendlizdr $1.40 $4.40 $0.261M944K100%24h +101%
CrusoeFP8 $1.40 $4.40 $0.261M944K100%24h +101%
Z.AIFP8 $1.40 $4.40 $0.261M131K100%24h +101%
BaseTenFP8 $1.40 $4.40 $0.181M262K99.9%24h +101%
OrcaRouter $1.40 $4.40 $0.261M128K— +101%
Vercel AI Gateway $1.40 $4.40 $0.181M262K— +101%
Kilo Gateway $1.40 $4.40 $0.261M944K— +101%
Mistral $1.40 $4.40 $0.141M128K— +101%
Tencent TokenHub $1.40 $4.40 $0.261M131K— +101%
Ofox $1.40 $4.40 $0.261M128K— +101%
DevPass (LLM Gateway) $1.40 $4.40 $0.261M131K— +101%
Keln $1.40 $4.40 $0.301M131K— +101%
Alibaba $1.40 $4.40 $0.281M131K— +101%
Nebius Token Factory $1.40 $4.40 $0.261M131K— +101%
NanoGPT $1.40 $4.40 $0.261M131K— +101%
LLM Gateway $1.40 $4.40 $0.261M131K— +101%
Ollama Cloud $1.40 $4.40 $0.261M131K— +101%
Merge Gateway $1.40 $4.40 $0.261M131K— +101%
EmpirioLabs AI $1.40 $4.40 $0.261M131K— +101%
Concentrate $1.40 $4.40 $0.261M131K— +101%
Requesty $1.54 $4.84 $0.151M128K— +121%
Cortecs $1.61 $5.06 $0.161M128K— +131%

Value

Price vs. performance

16 models score higher for the same price or lesson GPQA Diamond, e.g. Gemini 3.8 Flash.
23.2%47.8%72.3%96.8% $0.001$0.01$0.10$1.00$10.00$100.00 Gemini 4 Neon (Google) — 96.3% · $3.00/1M in GPT-6.2 Astra (OpenAI) — 96.8% · $8.00/1M in GPT-6.2 Sol (OpenAI) — 96.2% · $2.00/1M in Qwen4 Max (Qwen) — 94.0% · $1.43/1M in Gemini 4 Hydrogen (Google) — 96.8% · $1.50/1M in Gemini 4 Carbon (Google) — 96.5% · $4.00/1M in Claude Fable 5.2 (Anthropic) — 93.9% · $8.00/1M in GPT-6.1 Terra (OpenAI) — 94.3% · $1.00/1M in DeepSeek V4.1 Flash 1017 (DeepSeek) — 93.2% · $0.02/1M in Gemini 4 Argon (Google) — 96.4% · $4.00/1M in Claude Haiku 5.5 (Anthropic) — 89.6% · $0.10/1M in Mistral Large 4 (Mistral) — 88.1% · $0.70/1M in GPT-6.1 Sol (OpenAI) — 95.4% · $2.00/1M in Claude Sonnet 5.5 (Anthropic) — 95.6% · $2.00/1M in GPT-6 Luna (OpenAI) — 90.5% · $0.10/1M in GPT-6 Sol (OpenAI) — 94.3% · $2.00/1M in Claude Opus 5.5 (Anthropic) — 90.6% · $4.00/1M in Grok 4.7 (xAI) — 92.7% · $2.00/1M in DeepSeek V4.1 Flash (DeepSeek) — 93.2% · $0.05/1M in GPT-6 Astra (OpenAI) — 95.8% · $10.00/1M in Qwen3.8 Max (0902) (Qwen) — 92.7% · $2.00/1M in Gemini 3.8 Flash (Google) — 95.4% · $0.82/1M in Qwen3.8 27B (Qwen) — 89.2% · $0.06/1M in Gemini 3.7 Flash (Google) — 94.8% · $0.75/1M in DeepSeek V4 Pro 0813 (DeepSeek) — 91.7% · $0.13/1M in Grok 4.6 (xAI) — 94.0% · $2.00/1M in DeepSeek V4 Flash 0731 (DeepSeek) — 91.0% · $0.046/1M in Qwen3.7 Flash (Qwen) — 82.3% · $0.03/1M in Claude Opus 5 (Anthropic) — 93.9% · $5.00/1M in Gemini 3.6 Flash (Google) — 94.1% · $0.75/1M in Gemini 3.5 Flash Lite (Google) — 83.3% · $0.30/1M in Kimi K3 (Moonshot AI) — 93.1% · $0.19/1M in GPT-5.6 Luna (OpenAI) — 91.6% · $0.20/1M in GPT-5.6 Terra (OpenAI) — 93.3% · $2.00/1M in GPT-5.6 Sol (OpenAI) — 93.5% · $5.00/1M in Grok 4.5 (xAI) — 93.4% · $2.00/1M in Claude Sonnet 5 (Anthropic) — 90.5% · $2.00/1M in Kimi K2.7 Code (Moonshot AI) — 87.9% · $0.63/1M in Claude Fable 5 (Anthropic) — 85.9% · $10.00/1M in Qwen3.7 Plus (Qwen) — 87.9% · $0.32/1M in MiniMax M3 (MiniMax) — 90.9% · $0.30/1M in Claude Opus 4.8 (Anthropic) — 91.0% · $5.00/1M in Qwen3.7 Max (Qwen) — 90.9% · $1.48/1M in Gemini 3.5 Flash (Google) — 92.8% · $1.50/1M in Gemini 3.1 Flash Lite (Google) — 81.8% · $0.25/1M in Grok 4.3 (xAI) — 88.8% · $1.25/1M in Qwen3.5 Plus 2026-04-20 (Qwen) — 84.9% · $0.30/1M in Qwen3.6 Flash (Qwen) — 83.3% · $0.19/1M in Qwen3.6 35B A3B (Qwen) — 84.9% · $0.10/1M in Qwen3.6 27B (Qwen) — 85.9% · $0.25/1M in GPT-5.5 (OpenAI) — 90.7% · $5.00/1M in DeepSeek V4 Pro 0423 (DeepSeek) — 91.7% · $0.89/1M in DeepSeek V4 Flash 0423 (DeepSeek) — 91.0% · $0.09/1M in Kimi K2.6 (Moonshot AI) — 90.8% · $0.95/1M in Claude Opus 4.7 (Anthropic) — 90.1% · $5.00/1M in Gemma 4 26B A4B (Google) — 73.2% · $0.068/1M in Gemma 4 31B (Google) — 75.8% · $0.20/1M in Qwen3.6 Plus (Qwen) — 88.4% · $0.33/1M in GPT-5.4 Nano (OpenAI) — 78.5% · $0.20/1M in GPT-5.4 Mini (OpenAI) — 86.9% · $0.75/1M in Mistral Small 4 (Mistral) — 47.5% · $0.15/1M in Qwen3.5-9B (Qwen) — 79.0% · $0.085/1M in GPT-5.4 Pro (OpenAI) — 94.6% · $30.00/1M in GPT-5.4 (OpenAI) — 93.3% · $2.50/1M in Gemini 3.1 Flash Lite Preview (Google) — 81.8% · $0.25/1M in Qwen3.5-35B-A3B (Qwen) — 83.5% · $0.14/1M in Gemini 3.1 Pro Preview (Google) — 94.4% · $2.00/1M in Claude Sonnet 4.6 (Anthropic) — 87.4% · $3.00/1M in Qwen3.5 397B A17B (Qwen) — 86.4% · $0.50/1M in Claude Opus 4.6 (Anthropic) — 90.5% · $5.00/1M in Gemini 3 Flash Preview (Google) — 89.4% · $0.50/1M in GPT-5.2 (OpenAI) — 91.4% · $1.75/1M in Ministral 3 8B 2512 (Mistral) — 27.2% · $0.15/1M in Ministral 3 3B 2512 (Mistral) — 25.3% · $0.10/1M in Mistral Large 3 2512 (Mistral) — 51.3% · $0.50/1M in Claude Opus 4.5 (Anthropic) — 86.1% · $5.00/1M in GPT-5.1 (OpenAI) — 87.6% · $1.25/1M in Claude Haiku 4.5 (Anthropic) — 71.2% · $1.00/1M in Claude Sonnet 4.5 (Anthropic) — 82.3% · $3.00/1M in GPT-5 (OpenAI) — 86.2% · $1.25/1M in GPT-5 Mini (OpenAI) — 75.0% · $0.25/1M in GPT-5 Nano (OpenAI) — 69.4% · $0.05/1M in gpt-oss-120b (OpenAI) — 75.8% · $0.09/1M in gpt-oss-20b (OpenAI) — 60.8% · $0.03/1M in Claude Opus 4.1 (Anthropic) — 77.3% · $15.00/1M in Qwen3 30B A3B Instruct 2507 (Qwen) — 55.6% · $0.10/1M in Qwen3 235B A22B Instruct 2507 (Qwen) — 70.7% · $0.14/1M in Gemini 2.5 Pro Preview 06-05 (Google) — 85.3% · $1.25/1M in R1 0528 (DeepSeek) — 76.3% · $0.50/1M in Qwen3 30B A3B (Qwen) — 61.7% · $0.12/1M in Qwen3 14B (Qwen) — 63.8% · $0.12/1M in Qwen3 32B (Qwen) — 65.7% · $0.08/1M in o3 (OpenAI) — 81.8% · $2.00/1M in GPT-4.1 (OpenAI) — 66.9% · $2.00/1M in GPT-4.1 Mini (OpenAI) — 65.8% · $0.40/1M in GPT-4.1 Nano (OpenAI) — 48.9% · $0.10/1M in Gemma 3 4B (Google) — 23.2% · $0.05/1M in Gemma 3 12B (Google) — 39.5% · $0.05/1M in Gemma 3 27B (Google) — 47.7% · $0.08/1M in Qwen-Plus (Qwen) — 48.1% · $0.26/1M in Phi 4 (Microsoft) — 56.1% · $0.07/1M in DeepSeek V3 (DeepSeek) — 71.2% · $0.26/1M in Llama 3.3 70B Instruct (Meta) — 47.4% · $0.59/1M in GPT-4o (2024-11-20) (OpenAI) — 49.2% · $2.50/1M in GPT-4o (2024-08-06) (OpenAI) — 49.2% · $2.50/1M in Llama 3.1 70B Instruct (Meta) — 44.2% · $0.72/1M in Llama 3.1 8B Instruct (Meta) — 27.0% · $0.05/1M in GPT-4o-mini (OpenAI) — 37.7% · $0.15/1M in GPT-4o-mini (2024-07-18) (OpenAI) — 37.7% · $0.15/1M in Gemma 2 27B (Google) — 36.5% · $0.65/1M in GPT-4o (OpenAI) — 49.2% · $2.50/1M in GPT-4o (2024-05-13) (OpenAI) — 49.2% · $5.00/1M in GLM 5.3 Flash (Z.ai) — 90.1% · $0.15/1M in GLM 5.3 (Z.ai) — 90.9% · $0.07/1M in GLM 5.2 (Z.ai) — 91.9% · $0.007/1M in GLM 5.1 (Z.ai) — 89.9% · $1.40/1M in GLM 5 (Z.ai) — 87.8% · $1.00/1M in GLM 4.7 Flash (Z.ai) — 60.5% · $0.061/1M in GLM 4.7 (Z.ai) — 83.3% · $0.40/1M in GLM 5.4 (Z.ai) — 90.5% · $1.40/1M in GLM 5.4

GLM 5.4 Other Z.ai Other labs Value frontier · GPQA Diamond vs. input price per 1M tokens (log scale) · Drag to pan, pinch or Ctrl + scroll to zoom, double-click to zoom in.

Benchmarks

6 benchmark scores

BenchmarkScoreRankLeader
SimpleQA VerifiedWriting & content · Factual accuracy on 1,000 short questions 37.0% #53of 85 Claude Fable 5.294.0%
Furniture AssemblyDesign & visual · Spot mistakes in photos of IKEA builds 23.3% #37of 44 GPT-6.2 Sol90.8%
GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions 90.5% #45of 120 GPT-6.2 Astra96.8%
FrontierMathMaths · Expert-written problems, undergrad to early research (tiers 1–3) 67.4% #39of 89 Claude Fable 5.295.1%
FrontierMath Tier 4Maths · Exceptionally hard research-level problems 41.5% #33of 70 GPT-6.2 Astra100.0%
OTIS Mock AIMEMaths · Competition-style problems harder than MATH Level 5 97.2% #37of 118 Gemini 4 Neon100.0%

Specs

Details

Model ID
z-ai/glm-5.4
Developer
Z.ai
Release date
Dec 2, 2026 ·
Context window
1,048,576 tokens
Max output
943,718 tokens
API price
$1.40 / $4.40 per 1M input / output tokens
Providers
39
Input types
text, image, video
Reasoning
Yes
Tool calling
Yes
Open weights
Yes
Free tier
No

Release date and prices from OpenRouter's catalog; providers from OpenRouter and models.dev. Buying directly from a provider can cost a little differently. Speed, latency and uptime are measured on OpenRouter only; uptime is the share of OpenRouter requests each provider served over the last day. Benchmark scores are the best result per benchmark from Epoch AI, licensed CC BY 4.0. Rank counts every model tracked here with a score.