xAI API pricing
Model CreatorCompare the published API prices listed for xAI. Open a model for its available pricing tiers, source and conditions, or use the cost planner to estimate your own workload.
xAI API cost examples
1,000 requests, each using 1,000 input tokens and 200 billed text output tokens: 1M input and 200K output tokens in total.
| Model | Input / 1M tokens | Output / 1M tokens | Estimated cost | Pricing conditions |
|---|---|---|---|---|
| grok-build-0.1xAI | $1 | $2 | $1.4 | Region not specifiedView official pricing |
| grok-4.20-0309-non-reasoningxAI | $1.25 | $2.5 | $1.75 | Region not specifiedView official pricing |
| grok-4.20-0309-reasoningxAI | $1.25 | $2.5 | $1.75 | Region not specifiedView official pricing |
| grok-4.20-multi-agent-0309xAI | $1.25 | $2.5 | $1.75 | Region not specifiedView official pricing |
| grok-4.3xAI | $1.25 | $2.5 | $1.75 | Region not specifiedView official pricing |
| grok-4.6xAI | $2 | $6 | $3.2 | Region not specifiedView official pricing |
Estimates in USD use standard processing, uncached input and the displayed base input tier. Regional rates, longer prompts, thinking tokens and other billable usage can change the final cost. Models can differ in capabilities.
Calculate costs for your workload →