xAI Grok API pricing

7 text models on xAI, from $1.00 to $2.00 per 1M input tokens. It also lists 4 image and 2 voice models.

Updated

Running an agent on these models? abracadabra shows which tasks it finishes and where the rest stop.

7 models

Grok 4.7

xAI500K contextText and image inputAdded 21 Sept 2026

Input
$2.00
Output
$6.00
Cached
$0.50
Batch
−20%

Grok 4.6

xAI500K contextText and image inputAdded 12 Aug 2026

Input
$2.00
Output
$6.00
Cached
$0.50
Batch
−20%

Grok 4.5

xAI500K contextText and image inputAdded 8 Jul 2026

  • xAI$2.00 · $6.00
Input
$2.00
Output
$6.00
Cached
$0.30
Batch
–

Grok Build 0.1

xAI256K contextText and image inputAdded 20 May 2026

  • xAI$1.00 · $2.00
Input
$1.00
Output
$2.00
Cached
$0.20
Batch
–

Grok 4.3

xAI1M contextText and image inputAdded 30 Apr 2026

  • xAI$1.25 · $2.50
Input
$1.25
Output
$2.50
Cached
$0.20
Batch
−20%

Grok 4.20 Multi-Agent

xAI2M contextText and image inputAdded 31 Mar 2026

  • xAI$1.25 · $2.50
Input
$1.25
Output
$2.50
Cached
$0.20
Batch
−20%

Grok 4.20

xAI2M contextText and image inputAdded 31 Mar 2026

  • xAI$1.25 · $2.50
Input
$1.25
Output
$2.50
Cached
$0.20
Batch
−20%

Prices in US dollars. Token prices are per 1 million tokens. abracadabra compiles them from each provider’s listing on OpenRouter, the LiteLLM price list and the providers’ own pricing pages, and refreshes them daily. The dataset is free to use: /api/ai-pricing.

See which tasks your agent finishes.

A price says what a call costs. abracadabra reads every conversation your agent has and shows the topics people bring, the tasks that get done and the turn where the rest stop.

Free to start, no card. Or open the playground (opens in a new tab).