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
$0.525 Microsoft Azure AI Foundry2.4× spread$1.25 xAI
Already paying for grok-code-fast-1? Check if you overpay →

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

Share this page URL to keep your scenario. 2 of 2 providers meet these assumptions.

ProviderEstimated / monthInput / 1MOutput / 1MCached input / 1MContext
1
Microsoft Azure AI FoundryCloud platform - lowest for your volumePricing page
$5.00$0.20$1.50Not listed256,000
2
xAIModel developerPricing page
$14.00$1.00$2.00$0.20256,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.