xAI Token Counter
Count xAI tokens online and see what your text costs across all 5 models, including Grok 4.6, Grok 4.5 and Grok 4.3. 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.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
| Model | Input /1M | Output /1M |
|---|---|---|
| Grok 4.6 | $2.00 | $6.00 |
| Grok 4.5 | $2.00 | $6.00 |
| Grok 4.3 | $1.25 | $2.50 |
| Grok Build 0.1 | $1.00 | $2.00 |
| Grok 4.20 | $1.25 | $2.50 |
Frequently Asked Questions
Common questions about counting xAI tokens