grok-code-fast
grok-code-fast by xai: input 1.00 and output 2.00 USD per 1M tokens. List price on 2026-12-06.
| Provider | xai |
|---|---|
| Input · USD per 1M tokens | 1.00 |
| Output · USD per 1M tokens | 2.00 |
| Cached input · USD per 1M tokens | 0.200 |
| Context window (tokens) | 256,000 |
| Source | LiteLLM · 2026-12-06 |
xai
| Model | Input | Output |
|---|---|---|
| grok-4.5 | 2.00 | 6.00 |
| grok-4.5-latest | 2.00 | 6.00 |
| grok-4.6 | 2.00 | 6.00 |
| grok-4.6-latest | 2.00 | 6.00 |
| grok-4.7 | 2.00 | 6.00 |
| grok-4.7-latest | 2.00 | 6.00 |
| grok-build-latest | 2.00 | 6.00 |
| grok-4.20 | 1.25 | 2.50 |
| grok-4.20-0309 | 1.25 | 2.50 |
| grok-4.20-0309-non-reasoning | 1.25 | 2.50 |
| grok-4.20-0309-reasoning | 1.25 | 2.50 |
| grok-4.20-beta | 1.25 | 2.50 |
Get matched
Tell us the project. We name the provider that fits and stay until the budget holds.
Questions and answers
What does grok-code-fast cost per 1M tokens?
Input: USD 1.00. Output: USD 2.00. These are list prices on 2026-12-06.
What do 50 million tokens of grok-code-fast cost?
About USD 60.00, with 80% input and 20% output tokens at list price.
Where does the price come from?
From the open LiteLLM price file, which follows the providers' public price lists. Contract prices can differ.