TokenRate

xAI API Pricing

xAI builds the Grok family of models, integrated with real-time X (Twitter) data. Available through the xAI API and X's premium tier.

Official site: x.ai

Cheapest

Grok 3 Mini

$0.300/1M in

Flagship

Grok 4.3

$1.25/1M in

Models

8 tracked

All tiers, latest pricing.

All xAI Models

ModelTierInput / 1MOutput / 1MContext
Grok 3 Minifast$0.300$0.500131K
Grok Build 0.1balanced$1.00$2.00256K
Grok 4.3flagship$1.25$2.501M
Grok 4.20 Multi-Agentflagship$1.25$2.502M
Grok 4.20flagship$1.25$2.502M
Grok 2balanced$2.00$10.00131K
Grok 4.5flagship$2.00$6.00500K
Grok 3flagship$3.00$15.00131K

Model Details

Calculate xAI API Costs

Use the TokenRate calculator to estimate exactly what xAI models will cost for your workload.

Open Calculator →

Other Providers