Skip to main content
TokenCost logoTokenCost

xAI Token Counter

Count xAI tokens online and see what your text costs across all 13 models, including Grok 4, 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 (~).

ModelTokensInput CostOutput Cost
Grok 4
Grok 4.5
Grok 4.3
Grok Build 0.1
Grok 4.20
Grok 4.1 Fast
Grok 4.1 Fast Reasoning
Grok 3
Grok 3 Fast
Grok 3 Mini
Grok 3 Mini Fast
Grok Code Fast
Grok 2

Type or paste text above to see token counts and per-request costs for every xAI model.

xAI Model Pricing

ModelInput /1MOutput /1M
Grok 4$3.00$15.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$2.00$6.00
Grok 4.1 Fast$0.200$0.500
Grok 4.1 Fast Reasoning$0.200$0.500
Grok 3$3.00$15.00
Grok 3 Fast$5.00$25.00
Grok 3 Mini$0.300$0.500
Grok 3 Mini Fast$0.600$4.00
Grok Code Fast$0.200$1.50
Grok 2$2.00$10.00

Frequently Asked Questions

Common questions about counting xAI tokens

Related Tools