GLM-5.2 (Max) Token Counter & Cost Calculator
Count tokens for GLM-5.2 (Max) and estimate the exact API cost — $1.40
per 1M input tokens, $4.40 per 1M output tokens — using a real
o200k_base BPE tokenizer. Everything runs in your browser; nothing is uploaded.
GLM-5.2 (Max)
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
| Model | Input $/1M | Output $/1M | This text (input) | +500 output tokens |
|---|---|---|---|---|
| Claude Opus 5.5 (Max, Default Fallback) | 4.00 | 20.00 | $0 | $0 |
| Claude Sonnet 5.5 (Max, Default Fallback) | 2.00 | 10.00 | $0 | $0 |
| Claude Fable 5.1 (Max, Default Fallback) | 10.00 | 50.00 | $0 | $0 |
| GPT-6 Astra (Max) | 10.00 | 50.00 | $0 | $0 |
| Gemini 4 Argon (High) | 2.00 | 10.00 | $0 | $0 |
| Muse Wonder (Max) | 4.00 | 20.00 | $0 | $0 |
| GPT-6.1 Sol (Max) | 2.00 | 10.00 | $0 | $0 |
| Claude Opus 5 (Max) | 5.00 | 25.00 | $0 | $0 |
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.2 (Max)
| Tokens | Cost on GLM-5.2 (Max) |
|---|---|
| 1K input tokens | 0.14¢ |
| 10K input tokens | $0.0140 |
| 100K input tokens | $0.1400 |
| 1M input tokens | $1.40 |
| 1K output tokens | 0.44¢ |
| 10K output tokens | $0.0440 |
FAQ
How accurate is the GLM-5.2 (Max) 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.2 (Max) API cost calculated?
Cost = (input tokens ÷ 1,000,000) × $1.40 + (output tokens ÷ 1,000,000) × $4.40 — GLM-5.2 (Max)'s official per-1M-token prices from Artificial Analysis.
Does this cover every reasoning-effort tier of GLM-5.2 (Max)?
Pricing shown is for the merged representative tier. GLM-5.2 (Max) groups 2 reasoning-effort variants: GLM-5.2 (Max), GLM-5.2 (Non-reasoning).
See full GLM-5.2 (Max) pricing & benchmarks, or the main token counter for every model.