xAI

Grok Code Fast 1 API pricing

Made by xAI

2 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Azure at $300.00 a month; the dearest costs $6,000.00, 20.0× as much.

Input from
$0.20
Output from
$1.50
Context up to
256K tokens
Batch rates
None listed

Every route, cheapest first

Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.

ProviderInputOutputCache readCache writeBatch in / outContextMonth
AzureLiteLLM$0.20$1.50———256K$300.00
Oracle CloudLiteLLM$5.00$25.00———131K$6,000.00

Other Grok models