grok-4 API pricing

Checked 12 Sept 2026 LLMs
$ per 1M input $1.25
$ per 1M output $2.50

Blended at 3:1 input to output: $1.56 per million tokens.

xAI charges $1.25 per million input tokens and $2.50 per million output tokens.

$1.25
$/1M input
$2.50
$/1M output
$0.200
$/1M cached in
256,000
Context window
$120.00
1k req/day, monthly

Against the models nearest in price

Blended at a 3:1 input to output ratio.

Calculator →
grok-4 against comparable models — checked 12 Sept 2026
Source
grok-4 This model xAI $1.25 $2.50 256,000 $1.56

Last checked . Methodology

Questions

How much does grok-4 cost per million tokens?

$1.25 per million input tokens and $2.50 per million output tokens, with cached input at $0.200. At a 3:1 input to output mix that blends to $1.56. Checked 12 Sept 2026.

What would grok-4 cost for a real workload?

A thousand requests a day at 2,000 input and 600 output tokens each comes to $120.00 a month.

What is the context window for grok-4?

256,000 tokens of input, with up to 256,000 tokens of output.

grok-4.20 · grok-4.20-multi-agent · grok-4.3 · grok-3 · grok-3-beta · All xAI models · Cost calculator