xAI Grok API Pricing 2026
Complete pricing guide with plans, and cost analysis
xAI Grok API pricing ranges from $0.20 to $30/per million tokens.
xAI Grok API costs $0.20 to $30 per per million tokens as of April 2026, with 2 plans available. Pricing depends on your chosen tier, contract length, and negotiated discounts.
Use the interactive pricing calculator to estimate your exact cost based on team size and requirements.
- Free tier: No free tier available
xAI Grok API offers 2 pricing tiers: Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast), Enterprise. The Enterprise plan is high-volume deployments and regulated workloads.
Compared to other llm api providers software, xAI Grok API is positioned at the budget-friendly price point.
- 0
How much does xAI Grok API cost?
xAI Grok API Pricing Overview
xAI Grok API has 2 pricing plans ranging from $0.20 to $30/per million tokens. The Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast) plan requires contacting sales for a custom quote and is designed for developers integrating grok into their applications. The Enterprise plan requires contacting sales for a custom quote and is designed for high-volume deployments and regulated workloads.
This pricing was last verified in April 23, 2026.
The xAI Grok API offers pay-as-you-go pricing for models including Grok 4, Grok 4 Fast, and Grok Code Fast, with no monthly commitment required. Token rates vary by model — flagship Grok 4 is priced at $3.00/1M input tokens and $15.00/1M output tokens via OpenRouter, while fast-tier models like Grok 4 Fast run $0.20/1M input and $0.50/1M output. Enterprise customers can negotiate custom pricing directly with xAI.
How xAI Grok API Pricing Compares
Compare xAI Grok API pricing against top alternatives in LLM API Providers.
All xAI Grok API Plans & Pricing
| Plan | Monthly | Annual | Best For |
|---|---|---|---|
| Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast) | Custom | Custom | Developers integrating Grok into their applications |
| Enterprise | Contact Sales | Contact Sales | High-volume deployments and regulated workloads |
View all features by plan
Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast)
- Grok 4: $3/1M input, $15/1M output
- Grok 4 Fast: $0.20/1M input, $0.50/1M output
- Grok Code Fast 1: $0.20/1M input, $1.50/1M output
- Pay-as-you-go via API key from console.x.ai
Enterprise
- Custom rate limits
- Dedicated support
- SLAs
- Volume discounts
Usage-Based Rates
Per-unit pricing for xAI Grok API API usage.
Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast)
| Model | Input | Output | Cached | Per |
|---|---|---|---|---|
| grok-4 256K ctx | $3.00 | $15.00 | — | 1M tokens |
| grok-4-fast 131K ctx | $0.200 | $0.500 | — | 1M tokens |
| grok-code-fast-1 256K ctx | $0.200 | $1.50 | — | 1M tokens |
- Prices reflect list rates on x.ai API console
Compare xAI Grok API vs Alternatives
Before committing to xAI Grok API, compare pricing with these 3 alternatives in the same category.
What Companies Actually Pay for xAI Grok API
| Model | Input /1M | Output /1M | Blended /1M |
|---|---|---|---|
| xAI: Grok 4 | $3.00 | $15.00 | $9.00 |
| xAI: Grok 3 | $3.00 | $15.00 | $9.00 |
| xAI: Grok 4.20 | $2.00 | $6.00 | $4.00 |
| xAI: Grok 4.20 Multi-Agent | $2.00 | $6.00 | $4.00 |
| xAI: Grok Code Fast 1 | $0.200 | $1.50 | $0.850 |
How xAI Grok API Pricing Compares
| Software | Starting Price | Top Price |
|---|---|---|
| xAI Grok API | $0.2/per million tokens | $30/per million tokens |
| Amazon Bedrock | $0.07/per million tokens | $75/per million tokens |
| Anyscale | $0.15/per million tokens | $5/per million tokens |
| Baidu ERNIE API | $0.1/per million tokens | $10/per million tokens |
| Cerebras Inference API | $0.1/per million tokens | $6/per million tokens |
| Claude API | $0.03/per million tokens | $75/per million tokens |
Detailed pricing comparisons:
xAI Grok API Pricing FAQ
01 How does xAI Grok API pricing work?
The xAI Grok API uses pay-as-you-go token-based pricing under the Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast) plan with no monthly commitment. Based on OpenRouter data, flagship Grok 4 is priced at $3.00/1M input tokens and $15.00/1M output tokens, while faster variants like Grok 4 Fast run $0.20/1M input and $0.50/1M output. Enterprise pricing is custom-quoted.
02 What is SuperGrok and how does it differ from the Grok API?
SuperGrok is a consumer subscription to grok.com priced at approximately $30/month or $300/year, offering enhanced chatbot access with features like DeeperSearch, Think Mode, and unlimited image generation. The Grok API is a separate developer product with pay-as-you-go token-based pricing for programmatic access and is distinct from any consumer subscription.
03 Can I access Grok through an X Premium subscription instead of the API?
Yes, Grok is available within the X platform to X Premium and Premium+ subscribers (Premium+ reported at $22/month), which unlocks higher usage quotas and advanced features. However, this is a consumer access path, not developer API access. The xAI Grok API for programmatic use is a separate product with pay-as-you-go token pricing.
Is this pricing incorrect? — we'll verify and update it.