xAI API pricing

Checked 12 Sept 2026 LLMs

40 models from US. Blended cost runs from $1.25 to $3.00 per million tokens. LLM vendors run no affiliate programmes, so nothing on this page earns Pikkly anything.

Every model

Ranked by blended cost at 3:1 input to output.

Calculator →
xAI models by blended cost per million tokens — checked 12 Sept 2026
Source
grok-build-0.1 Best value $1.00 $2.00 $0.200 256,000 $1.25
grok-code-fast $1.00 $2.00 $0.200 256,000 $1.25
grok-code-fast-1 $1.00 $2.00 $0.200 256,000 $1.25
grok-code-fast-1-0825 $1.00 $2.00 $0.200 256,000 $1.25
grok-3-latest $1.25 $2.50 $0.200 131,072 $1.56
grok-3-mini-fast-latest $1.25 $2.50 $0.200 131,072 $1.56
grok-3-mini-latest $1.25 $2.50 $0.200 131,072 $1.56
grok-4-1-fast-non-reasoning-latest $1.25 $2.50 $0.200 2,000,000 $1.56
grok-4-1-fast-reasoning-latest $1.25 $2.50 $0.200 2,000,000 $1.56
grok-4.20-non-reasoning-latest $1.25 $2.50 $0.200 1,000,000 $1.56
grok-4.20-reasoning-latest $1.25 $2.50 $0.200 1,000,000 $1.56
grok-4.3-latest $1.25 $2.50 $0.200 1,000,000 $1.56
grok-4-latest $1.25 $2.50 $0.200 256,000 $1.56
grok-4.5-latest $2.00 $6.00 $0.300 500,000 $3.00
grok-build-latest $2.00 $6.00 $0.300 500,000 $3.00

Last checked . Methodology

All models · grok-3 · grok-3-beta · grok-3-fast-beta · grok-3-fast-latest · grok-3-mini · Run your own on a GPU