xAI Pricing & Token Calculator
All 3 xAI models on one page: context windows, tokenizer behaviour and list price per 1M input and output tokens. Each row links to a dedicated calculator already preselected to that model.
Every rate below is list pricing per 1M tokens, cross-checked against xAI's published docs and re-verified on 2 October 2026. The same data is available as machine-readable JSON under CC BY 4.0 if you would rather not scrape it.
xAI model pricing table
| Model | Tokenizer | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Grok 4.1 (xAI) | estimate | 1M | $0.2 | $1.00 |
| Grok 4.5 | estimate | 500K | $2.00 | $6.00 |
| Grok 4.3 | estimate | 1M | $1.25 | $2.50 |
Cheapest xAI models per 1M input tokens
ERNIE X1 at $0.006/1M, Doubao 1.6 Flash at $0.01/1M, text-embedding-3-small at $0.02/1M, Doubao 1.6 Lite at $0.02/1M, SenseNova 5.1 (商汤) at $0.04/1M. Output rates run several times higher than input rates on most vendors, so a token-heavy workflow with long generations is priced by the output column.
Largest xAI context windows
Gemini 3.1 Pro (2M), Gemini 2.5 Pro (2M), GPT-5.5 (1M). Context headroom is usually the binding constraint before price is — check it first.
Count tokens for any xAI model
Pick the model from the dropdown, or open any row above for a page preselected to it.
xAI pricing FAQs
How many xAI models can I count tokens for?
3 on TokenCalc, each with its own page and its own preselected calculator: Grok 4.1 (xAI), Grok 4.5, Grok 4.3.
Are xAI token counts exact?
xAI does not publish a public tokenizer, so TokenCalc estimates from calibrated character ratios at 5–10% accuracy.
Which xAI model is cheapest per 1M input tokens?
Among the models tracked here: ERNIE X1 at $0.006/1M, Doubao 1.6 Flash at $0.01/1M, text-embedding-3-small at $0.02/1M, Doubao 1.6 Lite at $0.02/1M, SenseNova 5.1 (商汤) at $0.04/1M. Prices verified 2 October 2026.