Scheduled for retirement on Jan 31, 2027. Still available at the prices below until then.
Context
262K
Max output
256K
Serving providers
6
Cheapest input
$1.25 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Benchmarks

independent evaluations · source: Artificial Analysis
Headline indices
22.5
of 100
Last refreshed Nov 13, 2026
Individual benchmarks · click a row for effort variants
BenchmarkBest scoreEffortCost / task
CritPtLast refreshed Oct 26, 20262%default—
GPQA DiamondLast refreshed Oct 26, 202688%default—
Humanity's Last ExamLast refreshed Oct 26, 202627%default—
IFBenchLast refreshed Oct 26, 202654%default—
LiveCodeBenchLast refreshed Oct 26, 202682%default—
Long-Context ReasoningLast refreshed Oct 26, 202668%default—
MMLU-ProLast refreshed Aug 18, 202687%default—
MMMU-ProLast refreshed Oct 26, 202669%default—
OmniscienceLast refreshed Nov 13, 20262.1default—
Omniscience AccuracyLast refreshed Oct 26, 20260.4default—
Omniscience Non HallucinationLast refreshed Oct 26, 20260.4default—
SciCodeLast refreshed Oct 26, 202646%default—
TerminalBench HardLast refreshed Oct 26, 202638%default—
τ²-benchLast refreshed Oct 26, 202675%default—
Artificial Analysis scores last refreshed Nov 13, 2026.
Artificial Analysis scores last refreshed Oct 26, 2026.
Artificial Analysis scores last refreshed Aug 18, 2026.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand

Input pricing runs from $1.25 to $7.20 per 1M tokens across 6 providers, so the dearest route costs 476% more than the cheapest for the same model.

Serving providerInput /1MOutput /1MEndpoints
xAI Cheapest$1.25$2.501
Standardxai/grok-4
ComponentUnitStandard
Text cached in/1M tok$0.20
Text input/1M tok$1.25
Text output/1M tok$2.50
Azure $3.00$15.001
OCI $3.00$15.001
OpenRouter $3.00$15.001
Vercel Reseller quote$3.00$15.001
Replicate $7.20$36.001

Price history

listed seller prices, input and output per 1M tokens
Input Output
Input down 58% since first tracked
$0.00$5.00$10.00$15.00Jul 10Oct 2Feb 16Aug 30$2.50$1.25

Cost calculator

estimate your monthly spend on this model
$450
estimated / month

Model IDs

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

Frequently asked questions

Grok 4 pricing, context and availability

Is Grok 4 still available?

Yes. Grok 4 is scheduled for retirement on 2027-01-31.

How much does Grok 4 cost?

Grok 4 costs $1.25 per 1M input tokens from xAI, and $2.50 per 1M output tokens from xAI. Across 6 serving providers, input prices range from $1.25 to $7.20 per 1M tokens.

What is the context window of Grok 4?

Grok 4 accepts up to 262K tokens of context and can return up to 256K output tokens.

Which providers serve Grok 4?

Grok 4 is available from 6 serving providers, each with its own pricing and model ID. xAI is currently the cheapest.

What can Grok 4 do?

Grok 4 supports tool use, structured output and web search.

Other xAI models

compare pricing across the xAI lineup

Popular comparisons

head-to-head pages featuring Grok 4
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Sep 22, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI