xAI logo

Grok 4 Fast

Deprecates

Grok 4 Fast is xAI logoxAI's language model with a 2.0M context window and up to 30K output tokens, available from 4 providers, starting at $0.200 / 1M input and $0.500 / 1M output. A cost-efficient multimodal LLM from xAI with a 2M token context window, available in both reasoning and non-reasoning flavors.
Spec
Canonical IDxai-grok-4-fast
TypeLanguage
StatusDeprecating
CreatorxAIxAI
Providers
Context Window2.0M tokens
Max Output30K tokens
Input ModalitiesImageText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 8 months ago
Knowledge Cutoff
Deprecation Date
Intelligence Index
23.1
#191
Coding Index
19.0
#180
Math Index
41.3
#148
MMLU-Pro
0.7
#182
GPQA
0.6
#244
HLE
0.1
#278
LiveCodeBench
0.4
#169
IFBench
0.4
#245
Time to First Token
0.38s
#203
SciCode
0.3
#195
AIME 2025
0.4
#148
LCR
0.2
#242
TerminalBench Hard
0.1
#174
TAU2
0.6
#135
Output TPS
46.8
#228

Capabilities

Input2/5
Text
Image
Audio·
Video·
PDF·
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities4/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
Web Search
$ / query
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
xai:grok4fast
$0.200$0.500N/AN/A
OpenRouter logo
OpenRouter
x-ai/grok-4-fast
$0.200$0.500$0.050$0.0050
xAI logo
xAI
grok-4-fast
$0.200$0.500$0.050N/A$0.100$0.250$0.025
Oracle Cloud (OCI) logo
Oracle Cloud (OCI)
oci/xai.grok-4-fast
$5.00$25.00N/AN/A

Regional pricing

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

Cost Calculator

Preset:
Compares every provider & tier in USD

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Grok 4.31.0M$1.25$2.50Available
Grok 4.202.0M$1.25$2.50Available
Grok 4.20 Multi-Agent2.0M$1.25$2.50Available
Grok 4.20 Multi-Agent Beta2.0M$1.25$2.50Available
Grok 4.20 Non-Reasoning2.0M$1.25$2.50Available
Grok 4.20 Reasoning2.0M$1.25$2.50Available
Grok 4.1 Fast2.0M$0.200$0.500Deprecating
Grok 4 Fast2.0M$0.200$0.500Current
Grok 4 Fast Non-Reasoning2.0M$0.200$0.500Available
Grok 4256K$3.00$15.00Deprecating
Grok 4 Reasoning2.0M$0.200$0.500Available

Model IDs