xAI › Grok Code Fast 1 › Pricing

Grok Code Fast 1 pricing

API list price by xAI · checked Oct 26, 2026
Benchmarks and alternatives →
$1 / $2per 1M tokens in / out
$0.20cache read · −80%

Price sheetper 1M tokens

Input$1list
Output$2
Cache read$0.20−80% vs input
Context · max output256K · 256Ktokens

Where to buy1 provider · per 1M tokens

ProviderInputOutputContext
SpaceXAI$1$2—

In xAI's line-upper 1M in / out

Grok 4.20 Multi-Agent$1.25 / $2.50+25%
Grok 4.20 Non-Reasoning$1.25 / $2.50+25%
Grok 4.20 Reasoning$1.25 / $2.50+25%
Grok 4.20 0309 Non Reasoning$1.25 / $2.50+25%
Grok 4.20 0309 Reasoning$1.25 / $2.50+25%
Grok 4.20 Multi Agent 0309$1.25 / $2.50+25%
Grok 4.7$2 / $62.4×
<

Cheaper for the same workvs Grok Code Fast 1

MiMo v2.6 Pro thinkingOpen-57%score ×3.3$0.13
DeepSeek V4.1 Flash 1017 maxOpen-58%score ×3.2$0.26
Ling 3.1 Flash 1019-64%score ×3.1$1.49
Claude Haiku 5.5 max-84%score ×3.1$0.21
MiniMax M3.1 Flash thinking-79%score ×3$0.22

Pricing questions

How much does Grok Code Fast 1 cost?›

$1 per 1M input tokens and $2 per 1M output tokens. Cached input is $0.20.

Is Grok Code Fast 1 free to use?›

There is no free API tier.

How much does prompt caching save?›

Cache reads cost $0.20 per 1M, 80% below the input price.

What is a cheaper alternative to Grok Code Fast 1?›

MiMo v2.6 Pro at thinking effort costs -57% per task with a score ×3.3 on .