Skip to main content
TokenCost logoTokenCost

xAI API Pricing

6 models · From $1.00/1M to $2.00/1M input

The cheapest xAI model to run is Grok Build 0.1 at $1.00 input and $2.00 output per 1M tokens. On a RAG answer of 8,000 tokens in and 600 out, xAI models range from $0.0092 (Grok Build 0.1) to $0.020 (Grok 4.5) per request. The largest context window is Grok 4.3 at 1.0M tokens. Count tokens with the xAI token counter.

ModelInput /1MOutput /1MRAG answer
Grok Build 0.1$1.00$2.00$0.0092
Grok 4.3$1.25$2.50$0.011
Grok 4.20$1.25$2.50$0.011
Grok 4.7$2.00$6.00$0.020
Grok 4.6$2.00$6.00$0.020
Grok 4.5$2.00$6.00$0.020