Grok API Pricing Calculator
Compare current Grok (xAI) text model pricing and estimate costs for your expected token usage patterns.
Quick facts
Provider
xAI
Current models
1
Cheapest current model
Grok 4.3
Largest context window
1M
Pricing unit
Per 1M tokens
Current model pricing
| Model | Input / 1M | Output / 1M | Context window | Status | API docs |
|---|---|---|---|---|---|
| Grok 4.3 | $1.2500 | $2.5000 | 1,000,000 | CURRENT | Source |
Non-current models
| Model | Input / 1M | Output / 1M | Context window | Status | API docs |
|---|---|---|---|---|---|
| GROK 4 Fast Non Reasoning | $0.2000 | $0.5000 | 2,000,000 | RETIRED | Source |
| GROK 4 Fast Reasoning | $0.2000 | $0.5000 | 2,000,000 | RETIRED | Source |
| Grok 4.1 Fast Non-Reasoning | $0.2000 | $0.5000 | 2,000,000 | RETIRED | Source |
| Grok 4.1 Fast Reasoning | $0.2000 | $0.5000 | 2,000,000 | RETIRED | Source |
| GROK 3 mini | $0.3000 | $0.5000 | 131,072 | RETIRED | Source |
| GROK 3 | $3.0000 | $15.0000 | 131,072 | RETIRED | Source |
| GROK 4 | $3.0000 | $15.0000 | 256,000 | RETIRED | Source |
Example costs
| Scenario | Model | Estimated cost |
|---|---|---|
| 1K input + 1K output | Grok 4.3 | $0.0038 |
| 10K input + 1K output | Grok 4.3 | $0.0150 |
| 100K input + 5K output | Grok 4.3 | $0.1375 |
| 1M input + 1M output | Grok 4.3 | $3.7500 |
When to consider Grok
Grok is xAI’s model brand. Use this page to compare current Grok pricing with other LLM APIs for similar usage scenarios.
Calculate your exact Grok API cost
Open the calculator with Grok models selected and enter your expected input and output tokens.
Open calculatorFAQ
How is Grok API pricing calculated?
Token-based pricing applies input and output per-1M rates by model.
What is the cheapest current Grok model?
The cheapest current Grok model is shown in quick facts based on available data.
Are output tokens more expensive than input tokens?
Often yes. Check each model row to confirm current pricing ratios.
Which Grok model has the largest context window?
See context window values in the table and largest-context quick fact.
Can I compare Grok with OpenAI, Claude, and Gemini?
Yes, use the main calculator for cross-provider comparisons with matched token volumes.
Hosting your AI app?
After comparing API costs, the next cost factor is where your app runs. DigitalOcean can be a simple option for hosting prototypes, API backends, workers, databases, and Laravel apps.
Explore DigitalOcean →This link is an affiliate link. This means that, at zero cost to you, we earn commissions when you shop through the link.