xAI: Grok Code Fast 1
🇺🇸 xAI · Grok Code
Overview
xAI: Grok Code Fast 1 is a large language model API from xAI, part of its Grok Code model family. Priced at $0.200 per million input tokens and $1.50 per million output tokens, it occupies the mid-range, balancing capability against running cost. Output tokens cost about 8× as much as input, so prompt-heavy workloads run noticeably cheaper than generation-heavy ones. A large 256K-token context window (≈384 pages of text) lets it take in whole books, large codebases, or lengthy transcripts in a single call. On Artificial Analysis's Intelligence Index it scores 22 (D grade), a useful proxy for its general reasoning strength relative to the other models tracked here. All prices on this page reflect OpenRouter's routed rates and are re-synced automatically every day; confirm against the provider's official pricing before committing to production.
| Dimension | Unit | Price (USD) |
|---|---|---|
| Input | per 1M tokens | $0.200 |
| Output | per 1M tokens | $1.50 |
| Cached Input | per 1M tokens | $0.020 |
| Web Search | per search | $0.0050 |
- Provider
- xAI
- Model Family
- Grok Code
- Version String
- x-ai/grok-code-fast-1
- Status
- Active
- Modality
- Text
- Context Window
- 256,000 tokens
- Output Limit
- 10,000 tokens
Index Metrics
Cross-domain capability indexes evaluated by Artificial Analysis — Artificial Analysis
Benchmark Scores
Data source: Artificial Analysis
90-Day Price Trend
Input / Output price (USD per 1M tokens)
Past 90 days of records; every price change is shown here
| Date | Dimension | Price (USD) | Source |
|---|---|---|---|
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter | |
| Output | $1.50 | OpenRouter | |
| Input | $0.200 | OpenRouter | |
| Web Search | $0.0050 | OpenRouter | |
| Cached Input | $0.020 | OpenRouter |
Key Insights
Key data points from this page for quick reference and citation.
- xAI: Grok Code Fast 1 Input price: $0.2/M tokens
- xAI: Grok Code Fast 1 Output price: $1.5/M tokens
- Context window: 256,000 tokens
- Provider: xAI
- Model family: Grok Code
- Modalities: Text
- Data source: OpenRouter, updated daily