xAI logo

Grok 4

Deprecates

Grok 4 is xAI logoxAI's language model with a 256K context window, available from 6 providers, starting at $3.00 / 1M input and $15.00 / 1M output. xAI's fourth-generation reasoning LLM with a 256k context window, supporting parallel tool calling, structured outputs, and multimodal image and text inputs.
Spec
Canonical IDxai-grok-4
TypeLanguage
StatusDeprecating
CreatorxAIxAI
Providers
Context Window256K tokens
Input ModalitiesImageText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 10 months ago
Knowledge Cutoff
Deprecation Date
Intelligence Index
41.5
#57
Coding Index
40.5
#36
Math Index
92.7
#16
MMLU-Pro
0.9
#15
GPQA
0.9
#22
HLE
0.2
#43
LiveCodeBench
0.8
#23
AIME
0.9
#2
IFBench
0.5
#123
Time to First Token
14.67s
#445
SciCode
0.5
#32
MATH-500
1.0
#6
AIME 2025
0.9
#16
LCR
0.7
#29
TerminalBench Hard
0.4
#37
TAU2
0.7
#107
Output TPS
42.5
#239

Capabilities

Input2/5
Text
Image
Audio·
Video·
PDF·
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities6/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
azure_ai/grok-4
$3.00$15.00N/AN/A
OpenRouter logo
OpenRouter
x-ai/grok-4
$3.00$15.00$0.750$0.0050
Oracle Cloud (OCI) logo
Oracle Cloud (OCI)
oci/xai.grok-4
$3.00$15.00N/AN/A
Vercel AI Gateway logo
Vercel AI Gateway
xai/grok-4
$3.00$15.00$0.750N/A
xAI logo
xAI
grok-4-latest
$3.00$15.00$0.750N/A$1.50$7.50$0.375
Replicate logo
Replicate
replicate/xai/grok-4
$7.20$36.00N/AN/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.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.500Deprecating
Grok 4 Fast Non-Reasoning2.0M$0.200$0.500Available
Grok 4256K$3.00$15.00Current
Grok 4 Reasoning2.0M$0.200$0.500Available

Model IDs