Skip to main content
TokenCost logoTokenCost

GLM-5.1

Last verified August 3, 2026 · Zhipu pricing ↗

$1.40/1M input · $4.40/1M output · 200K context · Zhipu

GLM-5.1 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens from Zhipu, with a 200K-token context window. A typical chat reply (1,500 tokens in, 400 out) costs $0.0039, or $38.60 per 10,000 requests. On that workload it is cheaper than 66 of the 167 other buyable models tracked here.

Count Tokens

—
Tokens
—
Input Cost
—
Output Cost

Estimate Monthly Cost

Monthly Cost Estimator

Quick:
<$0.0001/mo

Pick a preset above or enter custom usage

What GLM-5.1 Costs Per Request

At $1.40 per 1M input and $4.40 per 1M output tokens, before caching or batch discounts.

WorkloadInput / output tokensPer requestPer 10,000 requests
Chat reply1,500 / 400$0.0039$38.60
RAG answer over retrieved docs8,000 / 600$0.014$138.40
Coding-agent step30,000 / 2,000$0.051$508.00

GLM-5.1 vs Similarly Priced Models

Nearest buyable models by price, with the RAG answer above (8,000 in / 600 out) priced on each.

ModelInput /1MOutput /1MContextRAG answer
GLM-5.1 Zhipu$1.40$4.40200K$0.014
GLM-5.3 Zhipu$1.40$4.401.0M$0.014
GPT-6.1 Terra OpenAI$1.00$5.001.1M$0.011
Claude Haiku 4.5 Anthropic$1.00$5.00200K$0.011

Alternatives to GLM-5.1

Pricing Details

ZhipuMIT-licensed 754B MoE (40B active). SWE-Bench Pro 58.4 at release. Cached input $0.26/1M. The 3x peak surcharge (14:00-18:00 Beijing) is not stated on Z.ai's international pricing page; treat it as unconfirmed for the .ai endpoint.
Input / 1M tokens
$1.4
Output / 1M tokens
$4.4
Context Window
200K
Max Output
128K

Price History

No price change recorded since 2026-08-03, when this site started tracking this model.

Frequently Asked Questions

Common questions about GLM-5.1 pricing and usage

How much does GLM-5.1 cost?
GLM-5.1 costs $1.4 per 1 million input tokens and $4.4 per 1 million output tokens. This pricing is set by Zhipu.
What tokenizer does GLM-5.1 use?
GLM-5.1 uses the cl100k_base tokenizer. This tokenizer has a vocabulary of ~100,000 tokens and is widely used across many models.
What is GLM-5.1's context window?
GLM-5.1 supports a context window of 200K tokens (200,000 tokens). The maximum output length is 128K tokens.
How does GLM-5.1 compare to other models?
On an 8,000-token-in, 600-token-out RAG answer, GLM-5.1 costs $0.014 per request. The nearest-priced alternatives cost: GLM-5.3 (Zhipu) $0.014, GPT-6.1 Terra (OpenAI) $0.011, Claude Haiku 4.5 (Anthropic) $0.011. The table above lists their full rates and context windows.
How do I count tokens for GLM-5.1?
Use the token counter at the top of this page or visit the homepage calculator. Paste your text and it will show the exact token count and cost for GLM-5.1 using the cl100k_base tokenizer.

Read More About GLM-5.1