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.