xAI logo

Grok 4


Grok 4 is xAI logoxAI's language model with a 2.0M context window, available from 6 providers, starting at $3.00 / 1M input and $15.00 / 1M output. xAI's fourth-generation flagship multimodal LLM combining vision, reasoning, and agentic tool-calling with a large context window for enterprise use cases.
Spec
Canonical IDxai-grok-4
TypeLanguage
StatusActive
CreatorxAIxAI
Providers
Context Window2.0M tokens
Input ModalitiesImageText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 9 months ago
Intelligence Index
41.5
#20
Coding Index
40.5
#13
Math Index
MMLU-Pro
0.9
#6
GPQA
0.9
#8
HLE
0.2
#16
LiveCodeBench
0.8
#11
AIME
0.9
#1
IFBench
0.5
#49
Time to First Token
22.28s
#335
SciCode
0.4
#12
MATH-500
1.0
#3
AIME 2025
0.9
#6
LCR
0.6
#40
TerminalBench Hard
0.4
#14
TAU2
0.7
#52
Output TPS
58.1
#130

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
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
grok-4
$3.00$15.00N/A
OpenRouter logo
OpenRouter
x-ai/grok-4
$3.00$15.00$0.750
Oracle Cloud (OCI) logo
Oracle Cloud (OCI)
xai.grok-4
$3.00$15.00N/A
Vercel AI Gateway logo
Vercel AI Gateway
xai/grok-4
$3.00$15.00$0.750
xAI logo
xAI
grok-4-0709
$3.00$15.00$0.750$1.50$7.50$0.375
Replicate logo
Replicate
xai/grok-4
$7.20$36.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$3.00$15.00
Europe
France Central (Paris)/ francecentral$3.30$16.50
Germany North (Berlin)/ germanynorth$3.30$16.50
Germany West Central (Frankfurt)/ germanywestcentral$3.30$16.50
Italy North (Milan)/ italynorth$3.30$16.50
North Europe (Ireland)/ northeurope$3.30$16.50
Norway East (Norway)/ norwayeast$3.30$16.50
Poland Central (Warsaw)/ polandcentral$6.05$30.30
Spain Central (Madrid)/ spaincentral$3.30$16.50
Sweden Central (Gävle)/ swedencentral$3.30$16.50
West Europe (Netherlands)/ westeurope$3.30$16.50
US
Central US (Iowa)/ centralus$3.30$16.50
East US (Virginia)/ eastus$3.30$16.50
East US 2 (Virginia)/ eastus2$3.30$16.50
North Central US (Illinois)/ northcentralus$3.30$16.50
South Central US (Texas)/ southcentralus$3.30$16.50
West Central US (Wyoming)/ westcentralus$3.30$16.50
West US (California)/ westus$3.30$16.50
West US 2 (Washington)/ westus2$3.30$16.50
West US 3 (Phoenix)/ westus3$3.30$16.50

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 42.0M$3.00$15.00Current

Model IDs