Grok Code Fast API Pricing & Cost Calculator
Grok Code Fast is priced at $1.00 input / $2.00 output per 1M tokens with a 256K context window and 256K max output, making it the lowest per-call cost in xAI's current lineup. The trade-off against Grok 4.3 ($1.25/$2.50) is context: 256K here versus 1M there, for a 20% saving per call. Cached input $0.20/1M.
DeepSeek, Kimi & 200+ open models on Novita AI — often 5–20x cheaper than proprietary APIs for comparable tasks.
Affiliate link — we may earn a commission at no extra cost to you.
Grok Code Fast pricing breakdown
All pricing dimensions including caching and batch discounts.
| Type | Price (per 1M tokens) |
|---|---|
| Input | $1.0000 |
| Output | $2.0000 |
| Cached input | $0.2000 |
DeepSeek, Kimi & 200+ open models on Novita AI — often 5–20x cheaper than proprietary APIs for comparable tasks.
Affiliate link — we may earn a commission at no extra cost to you.
Last verified 2026-11-07 · xAI official pricing · ⚠️ Spotted a wrong price? Report in 30s →
Grok Code Fast vs alternatives
Single-call cost (1000 input + 500 output tokens) ranked from cheapest.
| Model | Per call |
|---|---|
Grok Code Fast xAI · this page | $0.002000 |
| GPT-6 Luna OpenAI | $0.000350 |
| Claude Haiku 5.5 Anthropic | $0.000350 |
| DeepSeek V3.2 DeepSeek | $0.000480 |
| GPT-5.6 Luna OpenAI | $0.000800 |
| DeepSeek V4-Flash DeepSeek | $0.000900 |
When to choose Grok Code Fast
Grok Code Fast shines for code generation and review, high-throughput, low-latency tasks, general-purpose tasks, and image and document understanding. Token counts are estimated within ~10-20% margin.