Eliminating the 4 Hidden Taxes: AI Tokens, Manual Work, SaaS Cliffs & AI Scrapers Sponsor this header →

Z.ai: GLM 5 API Pricing & Cost Breakdown

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...

z-ai/glm-5
balanced
Last checked: Nov 21, 2026
Input / 1M Tokens
$1.00
Prompt & context tokens
Output / 1M Tokens
$3.20
Generated completion tokens
Blended (3:1) / 1M
$1.55
Tier: balanced
Context Window
205K
Max output: 131K

Technical Specifications

Canonical IDz-ai/glm-5
ProviderZ Ai
Input Modalitiestext
Output Modalitiestext
Open-WeightNo (Proprietary API)
Reasoning OptimizedStandard
Vision SupportText-only

Estimated Monthly API Spend

StageMonthly TokensEst. Cost
Prototype / MVP
500 req/day
22.5M in / 6.0M out $41.70/mo
Growing SaaS
10,000 req/day
600.0M in / 150.0M out $1,080/mo
Scale Production
100,000 req/day
7500.0M in / 1800.0M out $13,260/mo
Simulate Custom Volume → Cut Cost via 3-Tier Cascade →

Deploy or Route Z.ai: GLM 5

Multi-Provider Gateway

OpenRouter

Unified API gateway for 300+ LLMs with automatic fallbacks and unified billing.

Call via OpenRouter →
Open-Weight Inference

Together AI

High-throughput serverless inference & fine-tuning for Llama, DeepSeek, and Qwen.

Run on Together AI →
Fastest Tokens/Sec

GroqCloud

LPU-accelerated inference delivering hundreds of tokens per second for real-time voice & agents.

Test on Groq →

Some outbound infrastructure and API gateway links on KostoZero are partner referrals that help keep this observatory free and independent at no extra cost to you.

Cheaper Alternatives to Z.ai: GLM 5

ModelProviderInput / 1MOutput / 1MBlendedContext
Relace: Relace Search Relace $1.00 $3.00 $1.50 256K
OpenAI: GPT-3.5 Turbo (older v0613) OpenAI $1.00 $2.00 $1.25 4K
Morph: Morph V3 Large Morph $0.90 $1.90 $1.15 262K
Tencent: Hy4 preview Tencent $0.751 $2.25 $1.13 1.05M
MoonshotAI: Kimi K2 0905 Moonshotai $0.60 $2.50 $1.07 262K
DeepSeek: DeepSeek V4 Pro 0423 DeepSeek $0.90 $1.50 $1.05 1.05M

Frequently Asked Questions

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

Z.ai: GLM 5 costs $1.00 per 1M input tokens and $3.20 per 1M output tokens ($1.55 blended at a 3:1 ratio).

What is the maximum context window of Z.ai: GLM 5?

Z.ai: GLM 5 supports up to 204,800 tokens (205K) of input context and up to 131,072 output completion tokens.

What are cheaper alternatives to Z.ai: GLM 5?

Lower-cost options tracked right now include Relace: Relace Search ($1.50/1M), OpenAI: GPT-3.5 Turbo (older v0613) ($1.25/1M), Morph: Morph V3 Large ($1.15/1M).

Get Instant Price-Drop (>10%), New AI Bot & SaaS Cliff Alerts

Every 6 hours our autonomous sync checks 40+ LLMs, AI crawlers, and SaaS pricing cliffs—alerting you when prices drop >10% or new scrapers appear.