All prices › xAI

Grok API pricing (xAI)

7 xAI models, checked October 16, 2026. Prices run from $1.00 input / $2.00 output per million tokens (Grok Build 0.1) up to $2.00 / $6.00 (Grok 4.5).

What would it cost you? Pick a typical task or enter your own numbers. A token is roughly ¾ of a word. Long-prompt surcharges are applied where providers charge them.

Sorted by your estimated monthly cost, cheapest first. Click any column to sort by it. Tiers go by output price: Budget under $2, Standard $2–15, Premium $15+ per 1M tokens.

ModelYour cost / mo ▲Input / 1MOutput / 1MCached inputContext
Grok Build 0.1xAI · Standard$20.00$1.00$2.00$0.20256K
Grok Code Fast 1New Sep 22xAI · Standard$20.00$1.00$2.00$0.20256K
Grok 4.20xAI · Standard$25.00$1.25$2.50$0.201M
Grok 4.3xAI · Standard$25.00$1.25$2.50$0.201M
Grok 4.5xAI · Standard$50.00$2.00$6.00$0.30500K
Grok 4.6xAI · Standard$50.00$2.00$6.00$0.50500K
Grok 4.7New Sep 21xAI · Standard$50.00$2.00$6.00$0.50500K

Recent xAI price changes

DateModelChange
2026-09-22Grok Code Fast 1New model listed: $1 in / $2 out source
2026-09-21Grok 4.7New model listed: $2 in / $6 out source
2026-08-13Grok 4.6New model listed: $2 in / $6 out source
2026-08-10Grok Build 0.1New model listed: $1 in / $2 out source
2026-08-10Grok Code Fast 1New model listed: $1 in / $2 out source
2026-08-10Grok 4.20Context window: 2M → 1M (-50%) source
2026-08-10Grok 4.20Name now points to a newer version: $2 / $6 → $1.25 / $2.5 source
2026-08-10Grok 4.20 Multi AgentContext window: 2M → 1M (-50%) source
2026-08-10Grok 4.20 Multi AgentName now points to a newer version: $2 / $6 → $1.25 / $2.5 source
2026-07-08Grok 4.5New model listed: $2 in / $6 out source
2026-06-05Grok Code FastNew model listed: $0.2 in / $1.5 out source
2026-05-07Grok 4.3New model listed: $1.25 in / $2.5 out source
2026-03-18Grok 4.20New model listed: $2 in / $6 out source
2026-03-18Grok 4.20 Multi AgentNew model listed: $2 in / $6 out source
2025-11-21Grok 4.1 FastNew model listed: $0.2 in / $0.5 out source