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. Cached input $0.20/1M. That is 20% cheaper per call than Grok 4.3 ($1.25/$2.50). A 1,000-in / 500-out call costs $0.00200.
Prices and limits come straight from the LiteLLM registry and are verified daily. The description is generated from those numbers and has not yet been reviewed by a person, so it may miss context about how this model relates to others in its family.
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-09-23 · 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 |
| DeepSeek V3.2 DeepSeek | $0.000480 |
| GPT-5.6 Luna OpenAI | $0.000800 |
| DeepSeek V4-Flash DeepSeek | $0.000900 |
| Gemini 3.1 Flash Lite Google | $0.001000 |
When to choose Grok Code Fast
Grok Code Fast shines for general-purpose tasks, complex multi-step reasoning, image and document understanding, high-throughput, and low-latency tasks. Token counts are estimated within ~10-20% margin.