Skip to content
Seedance 2.0 Face is here — generate video from real-person reference photos.Try it now
Back to Models
x-aix-ai·Aug 26, 2025

xAI: Grok Code Fast 1

x-ai/grok-code-fast-1
context
256K
Max Output
10K
Input / 1M
$0.20
Output / 1M
$1.50

About

Grok Code Fast 1 is a low-cost reasoning model from xAI built specifically for agentic coding workflows, with reasoning traces visible in the response so developers can steer its behavior. It was built from a separate architecture with a pre-training corpus of programming-related data and post-training drawn from real pull requests and practical coding tasks, and is optimized for tool use such as grep, terminal operations, and file editing across languages including TypeScript, Python, Java, Rust, C++, and Go. The model emphasizes speed and prompt caching for high-volume iterative work, supports a 256,000-token context window, and reportedly scored 70.8% on the SWE-Bench-Verified subset using xAI's internal harness.

Capabilities

Context Length
256K
Max Output
10K
Reasoning
Yes
In
text
Out
text
21.6#78 of 133
Intelligence Index
23.7#80 of 118
Coding Index
43.3#41 of 63
Math Index

Reasoning & Knowledge

MMLU-Pro79.3%
GPQA Diamond72.7%
HLE7.5%

Coding & Agentic

LiveCodeBench65.7%
SciCode36.2%
Terminal-Bench Hard17.4%

Math

AIME 202543.3%

Source: Artificial Analysis

TypePrice / 1M tokens
Input$0.20
Output$1.50
Cache Read$0.02
Web Search$0.0050 / call

OpenAI-compatible · Model ID x-ai/grok-code-fast-1

curl https://api.elliotgate.com/v1/chat/completions \
  -H "Authorization: Bearer sk-omg-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-code-fast-1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'