GLM-5 (Reasoning) Token Counter & Cost Calculator

Count tokens for GLM-5 (Reasoning) and estimate the exact API cost — $1.00 per 1M input tokens, $3.20 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
$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%): Z AI does not publish its tokenizer, so this count uses OpenAI's o200k_base as an approximation.

Cost lookup — GLM-5 (Reasoning)

TokensCost on GLM-5 (Reasoning)
1K input tokens0.1¢
10K input tokens$0.0100
100K input tokens$0.1000
1M input tokens$1.00
1K output tokens0.32¢
10K output tokens$0.0320

FAQ

How accurate is the GLM-5 (Reasoning) token count?

Close estimate (±15%): Z 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 (Reasoning) API cost calculated?

Cost = (input tokens ÷ 1,000,000) × $1.00 + (output tokens ÷ 1,000,000) × $3.20 — GLM-5 (Reasoning)'s official per-1M-token prices from Artificial Analysis.

Does this cover every reasoning-effort tier of GLM-5 (Reasoning)?

Pricing shown is for the merged representative tier. GLM-5 (Reasoning) groups 2 reasoning-effort variants: GLM-5 (Reasoning), GLM-5 (Non-reasoning).

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