Overview
Grok Code Fast 1 is xAI's first model built specifically for agentic coding, released on August 28, 2025. Internally codenamed "sonic," it is positioned as a speedy and economical reasoning model that handles the high-volume, iterative work of software development — reading code, calling tools, and editing files inside coding agents — rather than a general-purpose chat model.
xAI says it built Grok Code Fast 1 from scratch on a new architecture, using a pre-training corpus rich in programming content and post-training on datasets reflecting real-world pull requests and coding tasks. The model is text-only (no image, audio, video, or document input), ships with a 256K-token context window, and was tuned for low latency and aggressive prompt caching so it stays interactive during agent loops. xAI reported throughput of roughly 90–100 tokens per second in partner workflows.
At launch the model was offered free for a limited time through GitHub Copilot, Cursor, Cline, Kilo Code, Roo Code, opencode, and Windsurf, then priced very cheaply on the xAI API at $0.20 per million input tokens and $1.50 per million output tokens. Grok Code Fast 1 was deprecated on May 15, 2026, with retirement scheduled for August 15, 2026, as xAI moved its coding line toward newer Grok Code / Grok Build models.
| Released | 2025-08-28 |
|---|---|
| License | Proprietary |
| Weights | API only |
| Context | 256K |
| Max output | 16K |
| Architecture | Reasoning model built from scratch on a new architecture, with a pre-training corpus rich in programming content and post-training on real-world pull requests and coding tasks. xAI has not published a parameter count. |
| Knowledge cutoff | Not disclosed by xAI |
| Modalities | Text |
| Status | Deprecated |
Benchmarks
- SWE-bench Verified70.8%
Scores on a 0–100 scale (25-point gridlines); higher is better. Each benchmark links to its published source.
Pricing
| Input | $0.20 per million tokens |
|---|---|
| Cached input | $0.02 per million tokens |
| Output | $1.50 per million tokens |
Offered free for a limited time at launch through partners including GitHub Copilot, Cursor, Cline, Kilo Code, Roo Code, opencode, and Windsurf.
Strengths
- Purpose-built for agentic coding: reading, editing, and tool-calling inside coding agents
- Very low cost — $0.20 input / $1.50 output per million tokens
- Low latency with high throughput (~90–100 tokens/sec reported), keeping agent loops interactive
- 256K-token context window for working across larger codebases
- Aggressive prompt caching ($0.02/1M cached input) suited to repeated agent prompts
- Strong reported coding result: 70.8% on SWE-bench Verified (xAI's internal harness)
Best for
- Agentic coding inside tools like Cursor, Cline, GitHub Copilot, and Windsurf
- High-volume, iterative code editing and refactoring where cost and speed matter
- Codebase navigation and multi-file changes within a 256K context
- Drafting and resolving pull-request-style fixes
- Cost-sensitive coding pipelines that call an LLM many times per task
How to access
| Provider | Model ID |
|---|---|
| xAI ↗ | grok-code-fast-1 |
| OpenRouter ↗ | x-ai/grok-code-fast-1 |
| Oracle Cloud (OCI Generative AI) ↗ | xai.grok-code-fast-1 |
Grok Code — every version
The full lineage of the Grok Code line, newest first. Every version has its own page — click any to compare specs, benchmarks and pricing.
| Version | Released | Context | License |
|---|---|---|---|
| Grok Build 0.1current | 2026-04 | — | Proprietary |
| Grok Code Fast 1 | 2025-08-28 | — | Proprietary |
FAQ
What is Grok Code Fast 1?
It is xAI's first model built specifically for agentic coding, released August 28, 2025 (codename "sonic"). It is a fast, low-cost, text-only reasoning model designed to run inside coding agents rather than as a general chat model.
How much does Grok Code Fast 1 cost?
On the xAI API it is priced at $0.20 per million input tokens and $1.50 per million output tokens, with cached input at $0.02 per million. At launch it was free for a limited time through partners like GitHub Copilot, Cursor, and Cline.
How does Grok Code Fast 1 score on SWE-bench Verified?
xAI reports 70.8% on the full SWE-bench Verified subset using its own internal harness. Independent harnesses can produce different numbers, so the score reflects xAI's setup.
Is Grok Code Fast 1 still available?
It was deprecated on May 15, 2026 and is scheduled to retire on August 15, 2026. xAI directs users to migrate to newer Grok coding models.