GLM-5 Token Counter & Cost Calculator

Count tokens for GLM-5 and estimate the exact API cost — $0.5976 per 1M input tokens, $2.6891 per 1M output tokens — using a real o200k_base BPE tokenizer. Everything runs in your browser; nothing is uploaded.

0
tokens (o200k_base)
0
characters
0
words

GLM-5

$0
input cost
$0
output cost (est.)
$0
total per request

Counts are exact for OpenAI models (o200k_base is GPT-4o/4.1/5's tokenizer). For Claude, Gemini and other vendors — whose tokenizers are not public — treat the count as a close estimate (typically within ±15%).

Cost of this text across popular models

Close estimate (±15%): Zhipu AI does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation.

Cost lookup — GLM-5

TokensCost on GLM-5
1K input tokens0.0598¢
10K input tokens0.598¢
100K input tokens$0.0598
1M input tokens$0.5976
1K output tokens0.269¢
10K output tokens$0.0269

FAQ

How accurate is the GLM-5 token count?

Close estimate (±15%): Zhipu AI does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation. Paste your own text above to see the exact number for your prompt.

How is GLM-5 API cost calculated?

Cost = (input tokens ÷ 1,000,000) × $0.5976 + (output tokens ÷ 1,000,000) × $2.6891 — GLM-5's per-1M-token prices (Zhipu AI's official list price as recorded by models.dev).

See full GLM-5 pricing & benchmarks, or the main token counter for every model.