xAI
Grok Code Fast 1 Pricing
API pricing for Grok Code Fast 1 by xAI. Input tokens cost $0.2/1M, output tokens cost $1.5/1M with 256K context window.
Last updated:
ReasoningTools
Input Cost
$0.2
per 1M tokens
Output Cost
$1.5
per 1M tokens
Context Window
256K
tokens
Cost Calculator
Estimated Cost:
$0.00
Model Details
Provider
xAI
Model ID
grok-code-fast-1
Context Window
256K tokens
Max Output
10000 tokens
Cache Read Cost
$0.02/1M
Release Date
2025-08-28
Compare Alternatives
| Model | Input | Output | Context |
|---|---|---|---|
| Grok Code Fast 1 (this model) | $0.2 | $1.5 | 256K |
| Qwen Max Alibaba (China) | $0.345 | $1.377 | 131K |
| Qwen2.5 14B Instruct Alibaba | $0.35 | $1.4 | 131K |
| Qwen3 14B Alibaba | $0.35 | $1.4 | 131K |
| Qwen Plus Alibaba | $0.4 | $1.2 | 1M |
| Qwen 3 235B Instruct Cerebras | $0.6 | $1.2 | 131K |
Available from Resellers
Grok Code Fast 1 is also available through these resellers and gateways:
| Reseller | Model | Input | Output |
|---|---|---|---|
| Abacus | Grok 4 Fast (Non-Reasoning) | $0.2 | $0.5 |
| Abacus | Grok 4.1 Fast (Non-Reasoning) | $0.2 | $0.5 |
| Abacus | Grok Code Fast 1 | $0.2 | $1.5 |
| Azure | Grok 4 Fast (Non-Reasoning) | $0.2 | $0.5 |
| Azure | Grok 4 Fast (Reasoning) | $0.2 | $0.5 |
| Azure | Grok Code Fast 1 | $0.2 | $1.5 |
| Azure Cognitive Services | Grok 4 Fast (Non-Reasoning) | $0.2 | $0.5 |
| Azure Cognitive Services | Grok 4 Fast (Reasoning) | $0.2 | $0.5 |
| Azure Cognitive Services | Grok Code Fast 1 | $0.2 | $1.5 |
| GitHub Copilot | Grok Code Fast 1 | $0 | $0 |