Grok 4
xAI · moe · 400B parameters · 256,000 context
Parameters
400B
Context Window
250K tokens
Architecture
MoE
Best GPU
B200 NVL (pair)
Intelligence Brief
Grok 4 is a 400B parameter Mixture-of-Experts (16 experts, 2 active) model from xAI, featuring Grouped Query Attention (GQA) with 80 layers and 10,240 hidden dimensions. With a 256,000 token context window, it supports tools, vision, structured output, code, math, multilingual, reasoning. For self-hosted inference, B200 NVL (pair) delivers optimal throughput at $39858/month.
Recent changes
Loading…
Related models
5 suggestions
Grok 3Grok · 120B$15.00/M out
Grok-2Grok · 50B$10.00/M out
Grok-3 MiniGrok · 33B$0.500/M out
Grok-3Grok · 314B$15.00/M out
Grok 4.3Grok · 90B$2.50/M out
Picks: same family first, then same vendor within ±2× params, then top tag-overlap matches. Price shown is the cheapest Output $/M across providers — the row's page shows the canonical anchor.
Architecture Details
Memory Requirements
BF16 Weights
800.0 GB
FP8 Weights
400.0 GB
INT4 Weights
200.0 GB
Fits on (single GPU) — most practical first
Fits on (multi-GPU with Tensor Parallelism)
Multi-GPU configurations use Tensor Parallelism (TP) to split model layers across GPUs. Requires NVLink or NVSwitch interconnect for optimal performance.
GPU Compatibility Matrix
Grok 4 is compatible with 2% of GPU configurations across 41 GPUs at 3 precision levels.
GPU Recommendations
BF16 · 4 GPUs · tensorrt-llm
88/100
score
Throughput
280.0 tok/s
Latency (ITL)
3.6ms
Est. TTFT
1ms
Cost/Month
$39858
Cost/M Tokens
$54.17
BF16 · 8 GPUs · tensorrt-llm
83/100
score
Throughput
280.0 tok/s
Latency (ITL)
3.6ms
Est. TTFT
1ms
Cost/Month
$34088
Cost/M Tokens
$46.33
BF16 · 8 GPUs · tensorrt-llm
83/100
score
Throughput
280.0 tok/s
Latency (ITL)
3.6ms
Est. TTFT
1ms
Cost/Month
$34164
Cost/M Tokens
$46.43
Deployment Options
API Deployment
No API pricing available
Single GPU
Requires multi-GPU setup (400 GB VRAM needed)
Multi-GPU
B200 NVL (pair) x4
280.0 tok/s
TP· $39858/mo
API Pricing Comparison
No API pricing data available for this model.
Performance Estimates
Throughput by GPU
VRAM Breakdown (B200 NVL (pair), BF16)
Capabilities
Features
Supported Frameworks
Supported Precisions
Where to Deploy Grok 4
Similar Models
Grok-2
314B params · moe
Quality: 78
from $10.00/M
Grok-3
314B params · dense
Quality: 91
from $15.00/M
Grok 4.3
500B params · moe
Quality: 50
from $2.50/M
Grok 3
600B params · moe
Quality: 90
from $15.00/M
Llama 4 Maverick
400B params · moe
Quality: 84
from $0.60/M
Frequently Asked Questions
How much VRAM does Grok 4 need for inference?
Grok 4 requires approximately 800.0 GB of VRAM at BF16 precision, 400.0 GB at FP8, or 200.0 GB at INT4 quantization. Additional VRAM is needed for KV-cache (204800 bytes per token) and activations (~4.00 GB).
What is the best GPU for Grok 4?
The top recommended GPU for Grok 4 is the B200 NVL (pair) (x4) using BF16 precision. It achieves approximately 280.0 tokens/sec at an estimated cost of $39858/month ($54.17/M tokens). Score: 88/100.
How much does Grok 4 inference cost?
Grok 4 inference costs vary by provider and GPU setup. Use our calculator for detailed cost estimates across all providers.