xAI API pricing
Official31 language, 4 image, 3 video models
As of Oct 14, 2026, xAI lists 38 language, image, and video models through its API. Its cheapest language model is Grok Build 0.1 at $1.00 input / $2.00 output per million tokens.
Language models (31)
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
Grok 4.20 Beta Latest Non Reasoning
xai/grok-4.20-beta-latest-non-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
Grok 4.20 Beta Latest Reasoning
xai/grok-4.20-beta-latest-reasoning
- Input
- $1.25
- Output
- $2.50
- Context
- 1M
xai/grok-4.20-beta-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 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 Latest
xai/grok-4.20-experimental-beta-latest
- 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-0.1
- Input
- $1.00
- Output
- $2.00
- Context
- 256K
xai/grok-build-latest
- Input
- $2.00
- Output
- $6.00
- Context
- 500K
xai/grok-code-fast
- Input
- $1.00
- Output
- $2.00
- Context
- 256K
xai/grok-code-fast-1
- Input
- $1.00
- Output
- $2.00
- Context
- 256K
xai/grok-code-fast-1-0825
- Input
- $1.00
- Output
- $2.00
- Context
- 256K
Image models (4)
Video models (3)
Prices in USD from LiteLLM and models.dev, checked daily; confirm on xAI's pricing page before you rely on a number.