xAI Token Counter
Count xAI tokens online and see what your text costs across all 6 models, including Grok 4.7, Grok 4.6 and Grok 4.5. Everything runs in your browser and nothing you paste leaves the page. Counts are estimates made with the cl100k_base encoding, since xAI has not released a browser-ready tokenizer. Estimated counts are marked with a tilde (~).
| Model | Tokens | Input Cost | Output Cost |
|---|---|---|---|
| Grok 4.7 | — | — | — |
| Grok 4.6 | — | — | — |
| Grok 4.5 | — | — | — |
| Grok 4.3 | — | — | — |
| Grok Build 0.1 | — | — | — |
| Grok 4.20 | — | — | — |
Type or paste text above to see token counts and per-request costs for every xAI model.
xAI Model Pricing
Frequently Asked Questions
Common questions about counting xAI tokens