Grok Code Fast 1
Pricing & Specs
xAI · $0.2 input / $1.5 output per 1M tokens · 256K context window
The per-token price never tells the full story. A typical task (1K input + 500 output tokens) on Grok Code Fast 1 costs about $0.0009 — roughly $0.95 per 1,000 runs. But if it needs 3x the tokens of a cheaper model to match quality on YOUR task, the economics flip. The only way to know is to benchmark it on your actual workload.
Grok Code Fast 1 API Pricing
| Tokens | Price |
|---|---|
| Input | $0.2 / 1M tokens |
| Output | $1.5 / 1M tokens |
| Cached input | $0.02 / 1M tokens |
Cached input tokens are billed when caching is enabled.
What that means in practice
Grok Code Fast 1 Specs
| Spec | Value |
|---|---|
| Context window | 256K tokens |
| Input modalities | text, image |
| Output modalities | text |
| Latency (measured by OpenMark) | ~6.4s median response |
| Reasoning model | Yes |
| Tool / function calling | Yes |
| JSON mode | Yes |
| Streaming | Yes |
| Prompt caching | Yes |
| Batch API | No |
FAQ
How much does Grok Code Fast 1 cost?
Grok Code Fast 1 costs $0.2 per 1M input tokens and $1.5 per 1M output tokens ($0.02 per 1M cached input tokens).
What is Grok Code Fast 1's context window?
Grok Code Fast 1 has a 256K-token context window.
Can I test Grok Code Fast 1 on my own task?
Yes. OpenMark lets you benchmark Grok Code Fast 1 against 100+ models on your own task with real API calls — no API keys needed, free tier available.
Is Grok Code Fast 1 the right model for YOUR task?
Pricing tables can't answer that. Benchmark it against 100+ models
on your actual workload — real API calls, real costs. Free tier available.