GLM-5.1 (Reasoning) Token Counter & Cost Calculator

Count tokens for GLM-5.1 (Reasoning) and estimate the exact API cost — $1.285 per 1M input tokens, $4.07 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.1 (Reasoning)

$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.1 (Reasoning)

TokensCost on GLM-5.1 (Reasoning)
1K input tokens0.129¢
10K input tokens$0.0129
100K input tokens$0.1285
1M input tokens$1.28
1K output tokens0.407¢
10K output tokens$0.0407

FAQ

How accurate is the GLM-5.1 (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.1 (Reasoning) API cost calculated?

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

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

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

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