Grok token calculator

Paste text to count tokens for Grok (xAI) models and estimate input, cached and output cost. Token counts are estimates; only OpenAI models have an exact browser tokenizer.

0tokens (est.)
0words
0characters
0chars, no spaces

Token count uses the exact GPT (o200k) tokenizer. Counted in your browser, never uploaded.

Models
Grok 4.5
ModelTokensPer requestMonthlyContext
Grok 4.50 est.$0.0030$3.000.1%

Token counts vary by tokenizer and model; non-OpenAI counts are estimates. Cost is an estimate and provider pricing can change. See each model's source on the pricing page.

FAQ

Which Grok (xAI) models are included?

Grok 4.5, with pricing verified against the xAI official source.

Pricing for these models

ModelProviderInputCachedOutputContextVerified
Grok 4.20 (Non-Reasoning) xAI $1.25 $0.2 $2.5 1 000k 2026-03-09
Grok 4.20 (Reasoning) xAI $1.25 $0.2 $2.5 1 000k 2026-03-09
Grok 4.20 Multi-Agent xAI $1.25 $0.2 $2.5 1 000k 2026-03-09
Grok 4.3 xAI $1.25 $0.2 $2.5 1 000k 2026-04-17
Grok 4.5 xAI $2 $0.3 $6 500k 2026-07-08
Grok Build 0.1 xAI $1 $0.2 $2 256k 2026-04-16

Prices per 1M tokens (USD). Each model links to its official source. Seed values pending re-verification. See the methodology.