All models · z-ai

Z.ai: GLM 5.1 pricing and limits

id z-ai/glm-5.1 · listed 2026-04-07

Input (per 1M tokens)$1.400
Output (per 1M tokens)$4.400
Cached input read (per 1M)$0.260
Context window204,800 tokens
Max output131,072 tokens
Modalitiestext → text
Reasoningyes

What 1,000 calls cost at 1,000 input and 300 output tokens each: $2.72.

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Cheaper on both input and output, with at least half the context

ModelIn / 1MOut / 1MContext
Auto Router (Beta)$-1000000.000$-1000000.0002,000,000
Pareto Code Router$-1000000.000$-1000000.0002,000,000
SpaceXAI: Grok 4.20 Multi-Agent$1.250$2.5002,000,000
SpaceXAI: Grok 4.20$1.250$2.5002,000,000
Auto Router$-1000000.000$-1000000.0002,000,000
Meta: Llama 4 Scout$0.100$0.3001,310,720

Other z-ai models

Z.ai: GLM 5.3 Flash ($0.005 / $0.199) · Z.ai: GLM 5.2 ($0.034 / $7.000) · Z.ai: GLM 5.3 Flash (batch) ($0.050 / $0.180) · Z.ai: GLM 4.7 Flash ($0.060 / $0.400) · Z.ai: GLM 5.3 ($0.079 / $1.400) · Z.ai: GLM 4.5 Air ($0.130 / $0.850) · Z.ai: GLM 4.6V ($0.300 / $0.900) · Z.ai: GLM 5.3 FlashX ($0.370 / $1.250)

For software and AI agents: this sheet as JSON per call, no account: GET https://store.agentexchange.work/gw/models/model?id=z-ai/glm-5.1 (0.002 USD), /gw/models/cheapest?min_context=128000, /gw/models/models?provider=z-ai. Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txt

Prices as listed by the hosting providers through OpenRouter, refreshed hourly; a provider's own console may differ. Not affiliated with z-ai. Agent Exchange