Model developer API
xAI API pricing: every model, compared
We track 6 xAI prices that other providers also sell. xAI has the lowest listed price for 5 of them; for the rest, the table shows how much more you pay than at the cheapest provider.
Standard list prices in USD. Last price change Oct 5, 2026. xAI's official pricing page. How we rank.
LLMs, most widely offered first
xAI LLM prices vs the cheapest provider
| Model | Rank | Cheapest elsewhere | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|---|
| Grok 4.20 (Non-Reasoning) | #1 of 3 | xAI is cheapest | $1.25 | $2.50 | 1M |
| Grok 4.20 (Reasoning) | #1 of 3 | xAI is cheapest | $1.25 | $2.50 | 1M |
| Grok 4.3 | #1 of 3 | xAI is cheapest | $1.25 | $2.50 | 1M |
| Grok 4.6 | #1 of 3 | xAI is cheapest | $2.00 | $6.00 | 500K |
| Grok 4.7 | #1 of 3 | xAI is cheapest | $2.00 | $6.00 | 500K |
| grok-code-fast-1 | #2 of 2 | Microsoft Azure AI Foundryyou pay 138% more here | $1.00 | $2.00 | 256K |
Rank and difference use the blended price (3 input : 1 output tokens). Equal prices share a rank.
Ranked for your volume
Grok 4.20 (Non-Reasoning) monthly cost by provider
Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.
More requirements: caching, context, features, provider
| Provider | Estimated / month | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|---|
1 Google Cloud Vertex AIlowest for your volumePricing page | $17.50 | $1.25 | $2.50 | $0.20 | 2,000,000 |
2 Microsoft Azure AI FoundryPricing page | $17.50 | $1.25 | $2.50 | $1.25 | 262,000 |
3 xAIPricing page | $17.50 | $1.25 | $2.50 | $0.20 | 1,000,000 |
Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.
xAI image and video prices
| Model | Type | Price | Rank |
|---|---|---|---|
| grok-imagine-video-1.5-lite | Video | $0.02 / second | Only provider |
| grok-imagine-video | Video | $0.05 / second | Only provider |
| grok-imagine-video-1.5 | Video | $0.08 / second | Only provider |
| grok-imagine-video-1.5-preview | Video | $0.08 / second | Only provider |
Ranked #1? Show it on your site
xAI has the lowest blended list price (3 input : 1 output tokens) for these models. The badge states that basis, updates daily and always shows the current rank, whatever it is; ranking is by price only.
<a href="https://aiselect.online/models/grok-4-20-non-reasoning"><img src="https://aiselect.online/badge/grok-4-20-non-reasoning/xai.svg" alt="Grok 4.20 (Non-Reasoning) API price ranking on AISelect" height="20"></a><a href="https://aiselect.online/models/grok-4-20-reasoning"><img src="https://aiselect.online/badge/grok-4-20-reasoning/xai.svg" alt="Grok 4.20 (Reasoning) API price ranking on AISelect" height="20"></a><a href="https://aiselect.online/models/grok-4-3"><img src="https://aiselect.online/badge/grok-4-3/xai.svg" alt="Grok 4.3 API price ranking on AISelect" height="20"></a>Compare more
Other providers
Alibaba Cloud Model Studio, Amazon Bedrock, Anthropic, Baseten, Cloudflare Workers AI, Cohere, DeepInfra, DeepSeek, fal, Fireworks AI, FriendliAI, Google Cloud Vertex AI, Google Gemini API, IBM watsonx.ai, Lambda, Microsoft Azure AI Foundry, Mistral AI, Moonshot AI, Nebius Token Factory, Novita AI, Nscale, OpenAI, Oracle Cloud Generative AI, OVHcloud AI Endpoints, Perplexity, Replicate, SambaNova, Scaleway, SiliconFlow, Together AI, W&B Inference (CoreWeave), Z.ai