Skip to main content

Grok Code Fast 1

Grok Code Fast 1
A technical guide to Grok Code Fast 1 — xAI's dedicated coding model. Speed, SWE-bench scores, pricing, and how it compares to Devstral 2 and Claude Code.

Grok Code Fast 1 is an AI coding model built by xAI for agentic software-development workflows. It was designed to work inside systems that can search a repository, edit files, call terminal tools, and iterate on a task. That makes it different from a simple autocomplete model—but it is still a model, not a complete coding agent on its own.

There is also an important naming update. xAI's current model documentation lists grok-code-fast-1 as an alias for grok-build-0.1. xAI's May 2026 release notes introduced grok-build-0.1 in early access, and currently marks it as early access. Developers evaluating the model should also verify the active model ID, current pricing, and provider route before comparing results or estimating production costs.

> Disclosure: This guide is published by Verdent. The model alias, early-access status, context threshold, and current pricing were rechecked against the linked xAI model, release-note, and pricing pages on July 17, 2026. These details may change, so test every model on your own repository and review generated code before merging it.

What Is Grok Code Fast 1

xAI introduced Grok Code Fast 1 on August 28, 2025 as a coding-focused reasoning model for agentic workflows. According to the xAI announcement, its training and post-training emphasized programming content, real pull requests, coding tasks, and common development tools such as repository search, terminal commands, and file editing.

The model was initially positioned as a responsive option for day-to-day agentic coding. Its launch integrations included tools such as GitHub Copilot, Cursor, Cline, Roo Code, Kilo Code, OpenCode, and Windsurf. Those integrations supplied the surrounding agent loop: they collected repository context, exposed tools, applied edits, and displayed the result.

That distinction matters. A model can propose a patch or decide which tool to call, but the surrounding coding agent controls:

  • which files and commands the model can access;
  • how repository context is selected;
  • whether edits run in an isolated workspace;
  • how tests, linting, and type checks are executed;
  • how retries, approvals, diffs, and rollbacks are handled.

In current xAI documentation, the older identifiers grok-code-fast-1, grok-code-fast, and grok-code-fast-1-0825 appear as aliases for grok-build-0.1. The current model page should be treated as the source of truth for the active endpoint and rate information.

Coding Benchmarks & Performance

xAI reported a 70.8% score on the full SWE-bench Verified subset for Grok Code Fast 1 at launch. The result came from xAI's own internal harness, so it should be cited as a vendor-reported result—not as a universal score that every coding agent will reproduce.

SWE-bench Verified measures whether a system can resolve selected real-world GitHub issues. It is relevant to agentic coding, but the final result depends on more than the base model. The harness, tool permissions, context retrieval, prompt, retry policy, test environment, and time budget can all change the outcome.

For a practical evaluation, use one fixed repository state and compare the following:

  1. Task understanding: Did the model identify the correct files, constraints, and acceptance criteria?
  2. Diff quality: Is the patch focused, readable, and free from unrelated changes?
  3. Verification: Do the relevant tests, lint checks, and type checks pass?
  4. Repair effort: How many retries or manual edits were needed after the first result?
  5. Latency: How long did the complete task take, including tool calls and repairs?
  6. Task cost: What was the total provider cost after context, output, retries, and caching?

Grok Code Fast 1 was designed around short feedback loops and tool use. That can make it a useful candidate for bounded bug fixes, codebase questions, targeted refactors, test generation, and other tasks where the agent can verify each step. Larger architectural changes still need planning, repository-specific evaluation, and human review.

Grok Code Fast vs Devstral 2 vs Claude Code

Grok Code Fast 1, Devstral 2, and Claude Code are not three versions of the same product. The first two are coding models; Claude Code is a coding-agent product that combines Claude models with repository access, file editing, command execution, and development workflows.

OptionWhat it isOfficial reference pointPractical evaluation focus
Grok Code Fast 1xAI coding model; currently documented as an alias for grok-build-0.1xAI reported 70.8% on SWE-bench Verified using its internal harness at launchTool-call responsiveness, focused repository edits, total task cost, and compatibility with the selected agent
Devstral 2Mistral's 123B open-weight coding model with a 256K context window and modified MIT licenseMistral reported 72.2% on SWE-bench VerifiedOpen-weight deployment needs, multi-file work, licensing, infrastructure, and API cost
Claude CodeAnthropic's coding-agent product, not a single modelWorks across terminal, desktop, and IDE workflows, with repository tools and supported Anthropic or enterprise access routesEnd-to-end agent workflow, model selection, permissions, review controls, and subscription or API billing

Choose Grok Code Fast 1 when

  • you want to test xAI's coding-specific model inside an existing agent or API workflow;
  • low-friction tool loops and bounded coding tasks are the priority;
  • you can verify the active alias and provider route before deployment;
  • you are prepared to measure full task cost rather than compare only token prices.

Choose Devstral 2 when

  • an open-weight model and deployment control are important;
  • your team can support its infrastructure requirements or use Mistral's hosted API;
  • you need to evaluate licensing, fine-tuning, or on-premises deployment;
  • multi-file repository work is central to the test plan.

Mistral's Devstral 2 release states that the full 123B model requires data-center-class hardware for self-deployment. Devstral Small 2 is the separate, smaller option intended for more accessible local deployment.

Choose Claude Code when

  • you want an end-to-end coding agent instead of a model endpoint;
  • the workflow needs repository exploration, file edits, test execution, Git operations, and pull-request support in one tool;
  • your team already uses a supported Claude subscription, the Anthropic Console, or a supported enterprise cloud route;
  • agent permissions and workflow integration matter more than selecting a standalone model API.

The Claude Code setup guide documents these access paths. A direct price comparison with Grok Code Fast 1 or Devstral 2 would be misleading unless the Claude model, billing route, context use, and agent workload are held constant.

Pricing & API Access

Grok Code Fast 1 pricing has changed since its original release. Use current xAI documentation for budgeting.

Pricing referenceInput per 1M tokensCached input per 1M tokensOutput per 1M tokens
August 2025 launch pricing$0.20$0.02$1.50
Current short-context pricing$1.00$0.20$2.00
Current long-context pricing, above 200K prompt tokens$2.00$0.40$4.00

The current xAI model page lists a 256,000-token context window and identifies grok-code-fast-1 as an alias for grok-build-0.1. When prompt length exceeds 200K tokens, budget the request using the long-context row for input, cached input, and output. That means an existing integration may continue to recognize the older name, while new work should follow the active identifier documented by xAI.

For direct API access:

  1. Create or use an xAI developer account and API key.
  2. Confirm the currently supported model ID in the xAI model documentation.
  3. Follow xAI's current Responses API example rather than copying an older launch snippet.
  4. Test a small request before sending a large repository context.
  5. Record input, cached input, output, retries, and tool-loop cost separately.

The xAI model page is the source of truth for current rates, aliases, regional availability, and long-context pricing.

Use this migration checklist before relying on an older integration:

CheckOld model nameCurrent documentationAction
Model identifiergrok-code-fast-1Alias for grok-build-0.1Confirm which identifier the provider accepts
Release stageStandalone 2025 launch namegrok-build-0.1 was introduced in early accessEarly access; availability and behavior may change
PricingLaunch-rate assumptionsCurrent short- and long-context ratesRecalculate the full request at the active rate
Verdent routeDirect xAI key assumedConditional OpenRouter BYOK routeVerify the alias in the provider catalog

Using Grok Code Fast in Verdent

Grok Code Fast 1 is not listed as a built-in model in Verdent's current model-pricing documentation. Verdent currently documents BYOK support for Anthropic, OpenAI, and OpenRouter—not direct xAI keys.

You may be able to evaluate Grok Code Fast 1 through OpenRouter BYOK if the active xAI alias appears in the model list available to your OpenRouter account. This is conditional provider access, not native xAI support inside Verdent.

To check availability:

  1. Open Settings → Models → Configure Models in Verdent Desktop.
  2. Select OpenRouter and add a valid API key.
  3. Review the available model list for grok-build-0.1, grok-code-fast-1, or another current alias documented by the provider.
  4. Enable the model only if it appears and key validation succeeds.
  5. Run a bounded repository task before using it in a broader workflow.

Verdent's BYOK documentation says enabled BYOK models can appear in the chat model selector, presets, subagent settings, and reviewer settings. It also notes that Smart Suggestions and automatic compression do not support BYOK API keys.

A controlled model trial should use the same repository state, prompt, acceptance criteria, and checks for every candidate. In Verdent, you can isolate the task in a workspace, inspect the plan and diff, run relevant tests, and compare repair effort against a current built-in model. If the Grok alias does not appear through OpenRouter, use xAI's API in a compatible external agent instead of describing the model as available in Verdent.

If you are reviewing older xAI fast-model routes, the Grok 4.1 Fast guide explains that model's retirement status and why it should not be treated as the current coding endpoint.

Frequently Asked Questions

Is Grok Code Fast 1 still a separate xAI model?

Not in xAI's current documentation. grok-code-fast-1 is currently documented as an alias for grok-build-0.1, so teams should treat the older name as a compatibility identifier and use the active model page as the lifecycle source of truth.

How does the grok-build-0.1 alias affect existing API integrations?

An integration may continue to accept the older alias, but that does not guarantee identical availability, behavior, pricing, or lifecycle. Confirm the resolved model identifier and rerun a production canary.

Can the 70.8% SWE-bench result be compared directly with Devstral 2?

No. Both figures are vendor-reported results produced with different agent harnesses and evaluation conditions. Compare them only as reference points, then test both models with the same repository, tools, limits, and acceptance checks.

Can Verdent use a direct xAI API key for Grok Code Fast 1?

Verdent currently documents BYOK for Anthropic, OpenAI, and OpenRouter, not direct xAI keys. Grok access is therefore conditional on the active alias appearing in the model catalog for an OpenRouter account.

Next Step

Test Grok Code Fast 1 on real code

Run one representative repository issue with clear acceptance criteria, then compare the final diff, tests, repair time, and total cost against Devstral 2 or your current Claude Code workflow.