Skip to content
LLMs
xAI logo

xAI API pricing

6 models · US

The Grok family, with large context windows and native search grounding.

Cheapest input / 1M
$1.00

Grok Build 0.1

Priciest input / 1M
$2.00

Grok 4.5

Largest context
2M

Grok 4.20 Multi-Agent

Models tracked
6

All xAI models

Cheapest first, by blended cost.

Language models with price per million tokens and context window
#ModelBlended / 1MInput / 1MOutput / 1MContextCapabilities
1$1.25$1.00$2.00256K
ReasoningToolsVision
2$1.56$1.25$2.501M
ReasoningToolsVision
3$1.56$1.25$2.502M
ReasoningVision
4$1.56$1.25$2.502M
ReasoningToolsVision
5$3.00$2.00$6.00500K
ReasoningToolsVision
6$3.00$2.00$6.00500K
ReasoningToolsVision

Frequently asked

How much does the xAI API cost?

xAI models in this directory range from $1.00 to $2.00 per million input tokens. The cheapest is Grok Build 0.1; the most expensive is Grok 4.5.

How many models does xAI offer?

6 models are tracked here, with the largest context window being 2M tokens on Grok 4.20 Multi-Agent.