xAI API pricing

Prices last checked: 28 Oct 2026 LLMs

36 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 28 Oct 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-build-latest $2.00 $6.00 $0.300 500,000 $3.00 ↗

Prices last checked: . Methodology

All models · grok-4.20-reasoning-latest · grok-4.3-latest · grok-4.5-latest · grok-4.6 · grok-4.7 · Run your own on a GPU