This model was retired on 2026-05-15. The pricing below is the last-known rate, kept for migration reference.

Grok 4Deprecated

xAIReleasedJul 9, 2024KnowledgeJul 2024
Tool useReasoningPrompt cachingStructured outputWeb search
Context
256K
Max output
256K
Serving providers
5
Cheapest input
$3.00 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Benchmarks

independent evaluations · source: Artificial Analysis
Headline indices
Intelligence Index
34.1
of 100
Individual benchmarks · click a row for effort variants
BenchmarkBest scoreEffortCost / task
CritPt2%default
GPQA Diamond88%default
Humanity's Last Exam27%default
IFBench54%default
LiveCodeBench82%default
Long-Context Reasoning67%default
MMLU-Pro87%default
MMMU-Pro69%default
Omniscience2.1default
Omniscience Accuracy0.4default
Omniscience Non Hallucination0.4default
SciCode46%default
TerminalBench Hard38%default
τ²-bench75%default

Pricing by serving provider

last-known · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
Azure$3.00$15.001
Vercel AI Gateway$3.00$15.001
xAI$3.00$15.001
OpenRouter$3.00$15.001
Replicate$7.20$36.001

Price history

input + output $/1M since we started tracking
Input Output
$0.000$5.00$10.00$15.00Jul 10Jul 30Jan 14Jun 22$15.00$3.00

Cost calculator

estimate your monthly spend on this model
$1,800
estimated / month

Model IDs

copy the exact identifier for your platform
azure_ai/grok-4vercel_ai_gateway/xai/grok-4xai/grok-4openrouter/x-ai/grok-4replicate/xai/grok-4

Frequently asked questions

Grok 4 pricing, context and availability

Is Grok 4 still available?

Grok 4 was retired on 2026-05-15. The pricing on this page is the last-known rate, kept for migration reference.

How much did Grok 4 cost?

Grok 4's last-known pricing, before it was retired on 2026-05-15, was $3.00 per 1M input tokens and $15.00 per 1M output tokens.

What was the context window of Grok 4?

Grok 4 had a 256K token context window and could return up to 256K output tokens.

What could Grok 4 do?

Grok 4 supported tool use, reasoning, prompt caching, structured output and web search.

Other xAI models

compare pricing across the xAI lineup

Popular comparisons

head-to-head pages featuring Grok 4
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI