Grok Code Fast 1
Retired May 2026xAI's coding-specialized reasoning model, released August 2025 and built for agentic coding workflows across TypeScript, Python, Rust and other languages.
- Context
- 256K tokens
- Released
Hosted API price
Cheapest via Azure · per 1M tokens
- Input
- $0.20 /1M
- Output
- $1.50 /1M
- Hosted by
-
1 provider
Hosted API pricing
How we price
Order
Providers are listed cheapest input rate first, then by output rate, a tie going to the creator's own listing. A provider that lists the model without a published rate sits at the end.
Prices
Base-tier, on-demand rates in USD per 1M tokens, converted at ECB reference rates where a provider publishes in another currency. Cached-input and batch rates show only where a provider publishes them. "Cheapest" marks the one provider with the lowest input and output pair; a tie wears no badge.
Cost
Input rate times the input tokens plus output rate times the output tokens, at the monthly volume set above the table. Cached-input, batch, long-context and reasoning-token billing are not modelled.
Transparency and funding
- Affiliates: Affiliate links are marked. We may earn a commission if you click them, but commissions never affect the order.
Every provider serving Grok Code Fast 1, cheapest input first. Set your monthly volume to see what each would bill.
| Provider | Input /1M | Output /1M | Cost at 10M in + 2M out | Link |
|---|---|---|---|---|
|
|
$0.20 | $1.50 | $5.00 | Visit website |
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Similarly priced models
The models nearest Grok Code Fast 1 by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs Grok Code Fast 1 |
|---|---|---|---|---|---|---|
|
|
$0.3533 | $0.25 | $0.87 | 1M | Aug 2024 | −15% |
|
|
$0.3667 | $0.20 | $1.20 | 1M | Feb 2026 | −12% |
|
|
$0.375 | $0.20 | $1.25 | 400K | Aug 2025 | −10% |
|
|
$0.40 | $0.30 | $0.90 | 128K | −4% | |
|
|
$0.4135 | $0.276 | $1.101 | 1M | −1% | |
|
|
$0.4167 | $0.20 | $1.50 | 256K | ||
|
|
$0.4333 | $0.20 | $1.60 | 262K | +4% | |
|
|
$0.45 | $0.30 | $1.20 | 205K | +8% | |
|
|
$0.4583 | $0.25 | $1.50 | 1M | Jan 2025 | +10% |
|
|
$0.4583 | $0.25 | $1.50 | 1M | +10% | |
|
|
$0.5075 | $0.435 | $0.87 | 1M | +22% |
USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Capabilities
What Grok Code Fast 1 accepts and can do, as published by xAI.
- Text Accepts and generates natural-language text.
- Image Accepts images as input alongside text.
- Reasoning Thinks before it answers, always on or as a switchable mode.
- Function calling Connect to external tools, APIs, and systems.
- Structured output Return responses in structured formats like JSON.
Common questions
What is Grok Code Fast 1 good for?
Agentic coding in TypeScript, Python, Rust and other languages: it was xAI's coding model from August 2025 until its retirement.
When is Grok Code Fast 1 not a good fit?
Any new work: xAI retired it in May 2026, and its migration guide points to Grok Build 0.1. No built-in web search or code execution, and closed weights.
What is the cheapest way to run Grok Code Fast 1?
The cheapest hosted rate is $0.20 / $1.50 per 1M tokens via Azure.
Can I self-host Grok Code Fast 1?
No. xAI does not publish the weights; Grok Code Fast 1 is available only through hosted APIs.
More from xAI
-
Grok 4.1 Fast (Non-Reasoning)
2M context · cutoff Oct 2024
From $0.20 / $0.50 /1M in / out at the cheapest provider -
Grok 4.1 Fast (Reasoning)
2M context · cutoff Oct 2024
From $0.20 / $0.50 /1M in / out at the cheapest provider -
Grok Build 0.1
256K context
From $1.00 / $2.00 /1M in / out at the cheapest provider -
Grok 4.20 (Non-Reasoning)
1M context
From $1.25 / $2.50 /1M in / out at the cheapest provider -
Grok 4.20 (Reasoning)
1M context
From $1.25 / $2.50 /1M in / out at the cheapest provider -
Grok 4.3
1M context
From $1.25 / $2.50 /1M in / out at the cheapest provider -
Grok 4.7
500K context · cutoff May 2026
From $2.00 / $6.00 /1M in / out at the cheapest provider -
Grok 4.5
500K context · cutoff Feb 2026
From $2.00 / $6.00 /1M in / out at the cheapest provider