MeasureTokens

Grok 4.5 token counter

Type or paste a prompt to count Grok 4.5 tokens and estimate what it costs to run — free, live, and private.

Try:

Counts include each model's own chat-template overhead.

128 chars

Grok 4.5

xAI · 500k context
tokens

About Grok 4.5 tokenization

Vendor
xAI
Context window
500k tokens
Pricing (per 1M tokens)
$2 input · $6 output (as of 2026-07-07)
How we count
xAI's official count-tokens API, since its tokenizer isn't public

FAQ

How accurate is this Grok 4.5 token count?

Exact when a server API key is configured — counts come from xAI's own count-tokens endpoint. Otherwise a clearly-labeled local estimate is shown.

Does my prompt leave the browser?

Only to xAI's count-tokens API (which doesn't run the model or store your prompt) — nothing is logged by this site.

What does a Grok 4.5 request cost?

Input tokens × $2/1M plus output tokens × $6/1M (standard tier, as of 2026-07-07). The calculator above does this for your actual prompt.

Compare Grok 4.5 against 29 other models →