Grok Code Fast 1
Grok Code Fast 1 is served by 2 providers that kRouter can route to, with a 256K-token context window and pricing from $0.50 per 1M input tokens. Because more than one provider offers it, the price you pay depends on which one you route to — the same request, the same model, different bills.
Where to get Grok Code Fast 1
| Provider | Route as |
|---|---|
| GitHub Copilot | gh/grok-code-fast-1 |
| xAI (Grok) | xai/grok-code-fast-1 |
What Grok Code Fast 1 is suited for
A 256K window comfortably holds a long file plus its surrounding context, which covers most day-to-day coding turns without compaction. It supports extended reasoning, which helps on debugging and multi-step planning but spends output tokens on thinking before the answer appears — worth knowing when you set max_tokens. Tool and function calling are supported, so it can drive an agent loop. Cached input is billed at $0.25 against $0.50 fresh, which is the difference that matters most for agent work — the same context is resent on every turn.
Specs
- Context window
- 256K
- Max output
- 64K
- Input / 1M
- $0.50
- Output / 1M
- $2.00
- Extended reasoning
- Tool / function calling
Cheaper alternatives to Grok Code Fast 1
Comparable capabilities at a lower rate. With a kRouter combo you can send routine turns to one of these and reserve Grok Code Fast 1 for the work that actually needs it.
- Gemini 2.5 Flash$0.30 in · $2.50 out per 1M
- DeepSeek-V4-Pro$0.43 in · $0.87 out per 1M
- Gemini 2.5 Flash Lite$0.15 in · $1.25 out per 1M
- DeepSeek R1$0.14 in · $0.28 out per 1M
Grok Code Fast 1 FAQ
How much does Grok Code Fast 1 cost?
Grok Code Fast 1 is $0.50 per 1M input tokens and $2.00 per 1M output tokens. Cached input is $0.25, which matters a lot for agent work that resends the same context each turn.
Which providers serve Grok Code Fast 1?
2 providers: GitHub Copilot, xAI (Grok). Through kRouter you can switch between them by changing the route prefix, without changing your tool.
What is Grok Code Fast 1's context window?
256K tokens, with up to 64K tokens of output. kRouter publishes this on /v1/models as context_length, so clients read the real number instead of guessing from the model name.
Is there a cheaper alternative to Grok Code Fast 1?
Yes — Gemini 2.5 Flash ($0.30/1M in), DeepSeek-V4-Pro ($0.43/1M in), Gemini 2.5 Flash Lite ($0.15/1M in), DeepSeek R1 ($0.14/1M in) are cheaper with comparable capabilities. A kRouter combo can send routine turns to one of those and keep Grok Code Fast 1 for the work that needs it.
Route to Grok Code Fast 1 from any tool
kRouter runs locally and gives Claude Code, Cursor, Codex and the rest one endpoint that reaches every provider above — with automatic failover. Free and MIT-licensed.
Install kRouter