xAI API pricing
Official27 language, 2 image, 3 video, 1 speech models
As of Nov 29, 2026, xAI lists 33 language, image, video, and speech models through its API. Its cheapest language model is Grok 4.20 Beta 0309 Reasoning at $1.25 input / $2.50 output per million tokens.
Language models (27)
Prices per million tokens.
xai/grok-4.3
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.5
- Input
- $2.00
- Output
- $6.00
- Context
- 500K
xai/grok-4.6
- Input
- $2.00
- Output
- $6.00
- Context
- 500K
xai/grok-4.7
- Input
- $2.00
- Output
- $6.00
- Context
- 500K
xai/grok-4.20
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-0309
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-0309-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-0309-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-beta
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-beta-0309
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Beta 0309 Non Reasoning
xai/grok-4.20-beta-0309-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-beta-0309-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-beta-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Beta Non Reasoning (latest)
xai/grok-4.20-beta-latest-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-beta-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Beta Reasoning (latest)
xai/grok-4.20-beta-latest-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Experimental Beta (latest)
xai/grok-4.20-experimental-beta-latest
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Experimental Beta 0304
xai/grok-4.20-experimental-beta-0304
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Experimental Beta 0304 Non Reasoning
xai/grok-4.20-experimental-beta-0304-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Experimental Beta 0304 Reasoning
xai/grok-4.20-experimental-beta-0304-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Experimental Beta Non Reasoning (latest)
xai/grok-4.20-experimental-beta-non-reasoning-latest
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Experimental Beta Reasoning (latest)
xai/grok-4.20-experimental-beta-reasoning-latest
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-non-reasoning-gv2
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-reasoning-gv2
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-build-latest
- Input
- $2.00
- Output
- $6.00
- Context
- 500K
Image models (2)
Grok Imagine Image$0.02 per image
Grok Imagine Image 2.0$0.04 per image · low $0.04
Video models (3)
Grok Imagine Video$0.05 per second · 720p $0.07
Grok Imagine Video 1.5$0.08 per second · 720p $0.14 · 1080p $0.25
Grok Imagine Video 1.5 Lite$0.02 per second · 720p $0.03 · 1080p $0.14
Speech models (1)
Grok Voice Transcribe 2.0Speech to text$0.0017 per minute