xAI Grok · LLM API pricing
grok-4 API pricing: cheapest provider
2 providers sell grok-4. Microsoft Azure AI Foundry is cheapest; the most expensive charges 2.4× as much for the same model.
- Cheapest$6.00per 1M · Microsoft Azure AI Foundry
- Input · output$3.00 / $15.00per 1M tokens
- Price gap2.4×across 2 providers
- Context262Kmax tokens
Standard list prices in USD from each provider's pricing page · last price change Sep 28, 2026 · How we collect and rank prices
Ranked for your volume
grok-4 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 | Context |
|---|---|---|---|---|
1 Microsoft Azure AI FoundryCloud platform - lowest for your volumePricing page | $60.00 | $3.00 | $15.00 | 262,000 |
2 ReplicateInference providerPricing page | $144.00 | $7.20 | $36.00 | Not listed |
Order depends on listed price for your volume only. No provider pays for its position.
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.
Price history
The cheapest price has not changed since tracking started on Sep 28, 2026: $6.00 per 1M tokens at Microsoft Azure AI Foundry. All price changes
Compare grok-4 with another model
Or pick any model
Keep comparing
More xAI Grok models
Grok 4.20 (Non-Reasoning), Grok 4.20 (Reasoning), Grok 4.3, Grok 4.6, Grok 4.7, Grok 4.1 Fast (Non-Reasoning), Grok 4.1 Fast (Reasoning), grok-code-fast-1
All xAI Grok API prices - All LLM API prices - Watch grok-4 prices (RSS) - Methodology