Grok 4 is xAI'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.
Specifications
Canonical IDxai-grok-4
TypeLanguage
StatusDeprecated
CreatorxAIxAI
Providers
Context Window256K tokens
Input ModalitiesImageText
Output ModalitiesText
Reasoning Effortsdefault
Release Date · 12 months ago
Knowledge Cutoff · 11 months ago
Deprecation Date
Benchmarks
Intelligence Index
33.3
#65
Math Index
92.7
#16
MMLU-Pro
0.9
#15
GPQA
0.9
#30
HLE
0.2
#52
LiveCodeBench
0.8
#23
AIME
0.9
#2
IFBench
0.5
#136
Time to First Token
0.00s
#210
SciCode
0.5
#38
MATH-500
1.0
#6
AIME 2025
0.9
#16
LCR
0.7
#34
TerminalBench Hard
0.4
#45
TAU2
0.7
#124
Output TPS
0.0
#483

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

US Dollar ($)
Per 1M tokens
ProviderStandardBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
$3.00$15.00N/A
OpenRouter logo
OpenRouter
openrouter/x-ai/grok-4
$3.00$15.00N/A
Oracle Cloud (OCI) logo
Oracle Cloud (OCI)
oci/xai.grok-4
$3.00$15.00N/A
Replicate logo
Replicate
replicate/xai/grok-4
$7.20$36.00N/A
Vercel AI Gateway logo
Vercel AI Gateway
vercel_ai_gateway/xai/grok-4
$3.00$15.00N/A
xAI logo
xAI
grok-4
$1.25$2.50$0.2$0.625$1.25$0.1

Cost Calculator

US Dollar ($)
Preset:

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.500Deprecated
Grok 4 Fast131K$0.200$0.500Deprecated
Grok 4 Fast Non-Reasoning2.0M$0.200$0.500Deprecated
Grok 4256K$3.00$15.00Current
Grok 4.1 Reasoning2.0M$0.200$0.500Deprecated

Model IDs

azure_ai/grok-4
grok-4
grok-4-0709
oci/xai.grok-4
openrouter/x-ai/grok-4
replicate/xai/grok-4
vercel_ai_gateway/xai/grok-4
x-ai/grok-4
xai-grok-4
xai/grok-4
xai/grok-4-0709
xai/grok-4-latest