DevToolBox

Z.ai: GLM 5 Token Counter

Count tokens, estimate API costs and check the context window for Z.ai: GLM 5 by Zhipu — all computed locally in your browser.

Runs locally — nothing is uploaded

Tokens
0
Estimated
Characters
0
Words
0
Lines
0

This model has no official JavaScript tokenizer, so the count is an estimate (CJK text ~1.75 tokens per character, English ~3.5 characters per token).

How Z.ai: GLM 5 compares

Open side-by-side comparison
ModelProviderInput / 1MOutput / 1MContextOut/In ratio
Z.ai: GLM 5Zhipu$0.600$1.92204,8003.20×
Z.ai: GLM 5.2Zhipu$1.19$3.741,048,5763.14×
Z.ai: GLM 5.1Zhipu$1.26$3.96204,8003.14×
MoonshotAI: Kimi K2.5Moonshot$0.600$3.00262,1445.00×

Data source: OpenRouter model API (aggregates official prices, may include platform markup). Rates change - always verify on the official provider page. Last updated 2026-08.

How to Use

This free online token counter counts tokens for Z.ai: GLM 5, a large language model by Zhipu. The tokenizer badge in the tool shows whether the count is exact or estimated: OpenAI-family models are counted with the official tokenizer, while other providers have no public JavaScript tokenizer and are marked as estimates.

Z.ai: GLM 5 offers a context window of 204,800 tokens. Open the Context tab to see how much of the window your prompt uses and how many copies of your text fit. Pricing for Z.ai: GLM 5 is 0.6 USD per 1M input tokens and 1.92 USD per 1M output tokens; open the Cost tab to estimate the cost of your request in USD and CNY.

Prices are sourced from OpenRouter and last updated 2026-08. Always confirm current rates with the provider's official pricing page before making a purchasing decision. All counting and estimation runs locally in your browser — your text is never uploaded.

Z.ai: GLM 5 Token Counter — Free Online Token Count & Cost Estimate