xAI: Grok Code Fast 1 API Pricing

by x-ai · 256K context window ·

$0.200
Input /1M tokens
$1.500
Output /1M tokens
256K
Context window

Monthly Cost Examples

Assuming 50% input / 50% output token split

UsageMonthly cost
100K tokens/month$0.09
1M tokens/month$0.85
10M tokens/month$8.50
100M tokens/month$85.00

Compare with other models

xAI: Grok Code Fast 1 vs OpenAI: GPT-4o →xAI: Grok Code Fast 1 vs OpenAI: GPT-4o-mini →xAI: Grok Code Fast 1 vs OpenAI: o1 →

Automate your model selection

StormRouter sends each request to the cheapest model that can handle it.
Only use xAI: Grok Code Fast 1 when your quality requirements demand it.

Try StormRouter free →

Similar models

xAI: Grok 4.1 Fast$0.700/1MxAI: Grok 4 Fast$0.700/1MxAI: Grok 3 Mini$0.800/1MxAI: Grok 3 Mini Beta$0.800/1MQwen: Qwen3 Coder Next$0.870/1MDeepSeek: DeepSeek V3.1$0.900/1M