xAI Grok · LLM API pricing
grok-code-fast-1 API pricing: cheapest provider
2 providers sell grok-code-fast-1. Microsoft Azure AI Foundry is cheapest; the most expensive charges 2.4× as much for the same model.
- Cheapest$0.525per 1M · Microsoft Azure AI Foundry
- Input · output$0.20 / $1.50per 1M tokens
- Price gap2.4×across 2 providers
- Context256Kmax 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-code-fast-1 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 Microsoft Azure AI FoundryCloud platform - lowest for your volumePricing page | $5.00 | $0.20 | $1.50 | Not listed | 256,000 |
2 xAIModel developerPricing page | $14.00 | $1.00 | $2.00 | $0.20 | 256,000 |
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: $0.525 per 1M tokens at Microsoft Azure AI Foundry. All price changes
Compare grok-code-fast-1 with another model
Or pick any model
Before you pick a provider
Microsoft Azure AI Foundry lists grok-code-fast-1 58% below the developer's own API (xAI) on a blended basis. Check rate limits, data retention and model quantization before switching.
1 of 2 providers list a cached-input price. Repeated system prompts or documents can cost much less there than the standard input rate shown above.
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-4
All xAI Grok API prices - All LLM API prices - Watch grok-code-fast-1 prices (RSS) - Methodology