xAI logo

Grok Code 1 Fast


Grok Code 1 Fast is xAI logoxAI's language model with a 256K context window and up to 10K output tokens, available from 5 providers, starting at $0.200 / 1M input and $1.50 / 1M output. A fast, economical reasoning model from xAI specialized for agentic coding tasks, with visible reasoning traces for developer steering.
Spec
Canonical IDxai-grok-code-1-fast
TypeLanguage
StatusActive
CreatorxAIxAI
Providers
Context Window256K tokens
Max Output10K tokens
Input ModalitiesText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 8 months ago
Intelligence Index
28.7
#68
Coding Index
23.7
#79
Math Index
43.3
#90
MMLU-Pro
0.8
#76
GPQA
0.7
#89
HLE
0.1
#101
LiveCodeBench
0.7
#51
IFBench
0.4
#117
Time to First Token
3.56s
#306
SciCode
0.4
#83
AIME 2025
0.4
#90
LCR
0.5
#65
TerminalBench Hard
0.2
#76
TAU2
0.8
#51
Output TPS

Capabilities

Input1/5
Text
Image·
Audio·
Video·
PDF·
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities5/13
Reasoning
Adaptive Reasoning·
Function Calling
Parallel Function Calling·
Structured Outputs
Native JSON Schema·
Web Search
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching
Assistant Prefill·

Pricing by Provider

ProviderStandardBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
grok-code-fast-1
$0.200$1.50N/A
OpenRouter logo
OpenRouter
x-ai/grok-code-fast-1
$0.200$1.50$0.020
Vercel AI Gateway logo
Vercel AI Gateway
xai/grok-code-fast-1
$0.200$1.50$0.020
xAI logo
xAI
grok-code-fast-1
$0.200$1.50$0.020$0.100$0.750$0.010
Oracle Cloud (OCI) logo
Oracle Cloud (OCI)
xai.grok-code-fast-1
$5.00$25.00N/A

Regional pricing

Provider-specific pricing that varies by region.
Azure AI Foundry logo
Azure AI Foundry
20 regions
RegionStandard
Input
$ / 1M
Output
$ / 1M
Global
Global$0.200$1.50
Europe
France Central (Paris)/ francecentral$0.220$1.65
Germany North (Berlin)/ germanynorth$0.220$1.65
Germany West Central (Frankfurt)/ germanywestcentral$0.220$1.65
Italy North (Milan)/ italynorth$0.220$1.65
North Europe (Ireland)/ northeurope$0.220$1.65
Norway East (Norway)/ norwayeast$0.220$1.65
Poland Central (Warsaw)/ polandcentral$0.320$2.20
Spain Central (Madrid)/ spaincentral$0.220$1.65
Sweden Central (Gävle)/ swedencentral$0.220$1.65
West Europe (Netherlands)/ westeurope$0.220$1.65
US
Central US (Iowa)/ centralus$0.220$1.65
East US (Virginia)/ eastus$0.220$1.65
East US 2 (Virginia)/ eastus2$0.220$1.65
North Central US (Illinois)/ northcentralus$0.220$1.65
South Central US (Texas)/ southcentralus$0.220$1.65
West Central US (Wyoming)/ westcentralus$0.220$1.65
West US (California)/ westus$0.220$1.65
West US 2 (Washington)/ westus2$0.220$1.65
West US 3 (Phoenix)/ westus3$0.220$1.65

Cost Calculator

Preset:
Compares every provider & tier in USD

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Grok 4.20 Multi-Agent2.0M$2.00$6.00Available
Grok 4.20 Multi Agent Beta2.0M$2.00$6.00Available
Grok 4 20 Non-Reasoning2.0MAvailable
Grok 4 20 Reasoning2.0MAvailable
Grok 4 20131K$3.00$15.00Available
Grok 4.1 Fast2.0M$0.200$0.500Available
Grok 4.1 Fast Non-Reasoning2.0M$0.200$0.500Available
Grok 4.1 Fast Reasoning2.0M$0.200$0.500Available
Grok 4 Non-Reasoning2.0M$2.00$6.00Available
Grok 4 Reasoning2.0M$2.00$6.00Available
Grok Code 1 Fast256K$0.200$1.50Current

Model IDs