Atlas / Models / X Ai / xAI: Grok Code Fast 1

xAI: Grok Code Fast 1✓ Catalog verified

x-ai/grok-code-fast-1

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 work flows.

Input price
$0.20 /1M
Output price
$1.50 /1M
Context
256K
Modalities
text
Released
Aug 26, 2025
Tool calling
✓ Yes
Atlas signal
90/100
01

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 work flows.

Access: available through the official X Ai API. Context window: 256K.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifierx-ai/grok-code-fast-1
ProviderX Ai
Model typeText LLM
Context window256K catalog
Input modalitiestext
Output modalitiestext
ReleasedAug 26, 2025
TokenizerGrok
ModeratedNo
Architecture modalitytext->text
Supported parameters
include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_p
Source: provider documentation + catalog feedMethodology →
03

Pricing

Live pricing components for x-ai/grok-code-fast-1 as published in the catalog.

$0.20
Input /1M
$1.50
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$2e-7$0.20 / 1MPer input token
Completion tokens$0.0000015$1.50 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search fee$0.005$0.005000Per search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.4Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual UnderstandingNot advertisedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool Calling✓ SupportedSupports tools / function calling
Self-HostingNot advertisedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

xAI: Grok Code Fast 1
MMLU Signal (Reasoning)
97signal
Coding Signal (HumanEval proxy)
97signal
Math Signal (GSM8K proxy)
83signal
Science Signal (GPQA proxy)
83signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call xAI: Grok Code Fast 1 through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="x-ai/grok-code-fast-1",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does xAI: Grok Code Fast 1 cost?

$0.20 per 1M input tokens and $1.50 per 1M output tokens on the official X Ai API.

What is the context window of xAI: Grok Code Fast 1?

xAI: Grok Code Fast 1 supports up to 256K tokens of context.

Does xAI: Grok Code Fast 1 support tool / function calling?

Yes, xAI: Grok Code Fast 1 supports tool / function calling — you can register tools and the model will emit structured tool calls.

How do I access xAI: Grok Code Fast 1?

Use the official X Ai API with the model id `x-ai/grok-code-fast-1`. See the Quick start section above for code examples.