Grok Code Fast 1
ActiveGrok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding. With reasoning traces visible in the response, developers can steer Grok Code for high-quality...
Overview
Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding. With reasoning traces visible in the response, developers can steer Grok Code for high-quality...
History
Grok Code Fast 1 became available via the xAI API on 2025-08-26.
Training & availability
Training data has a knowledge cutoff of 2025-09-30 — information about events after that date is unlikely to appear in the model's responses. xAI has not released the underlying model weights — access is via their hosted API only.
Capabilities
-
Context window: 256K tokens.
-
Input modalities: text.
Recommended for: long-context.
Limitations
- Text-only — cannot process images, audio, or video inputs.
Pricing
- Input: $0.2000 per 1M tokens
- Output: $1.5000 per 1M tokens
Use the cost calculator above to estimate monthly spend for your workload.
Quick start
Minimal example using the OpenRouter API. Copy, paste, replace the key.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="sk-or-...",
)
resp = client.chat.completions.create(
model="xai/grok-code-fast-1",
messages=[{"role": "user", "content": "Explain quantum computing in one sentence."}],
)
print(resp.choices[0].message.content)Cost calculator
Estimate your monthly bill. Presets are typical workload sizes.
Providers & performance
1 providerMulti-provider inference routes for this model — sorted by throughput. Latency is time-to-first-token; throughput is output tokens per second. Data from OpenRouter, measured over the last 30 minutes.
| Provider | Throughput | Latency (TTFT) | Input $ / 1M | Output $ / 1M | Context | Quant | Supports |
|---|---|---|---|---|---|---|---|
| xAI | 111tok/s | 4.51s | $0.2 | $1.5 | 256K | — | tools · json |
Integrations & tooling support
- Tool calling
- Not supported
- Structured outputs
- Not supported
Price vs quality
Standard pricing band. Quality tier pending more benchmark coverage.
- Quality percentile
- —
- Effective price
- $1.18/1M
- Pricing breakdown
- $0.2/1M in
$1.5/1M out
Community ratings
Rate Grok Code Fast 1
Sign in to rate and review.
Comments
Sign in to leave a comment.