xAI API Pricing 2026

Creator of Grok models, known for real-time knowledge and reasoning capabilities.

xAI API Pricing Quick Summary (January 2026)

Cheapest Model
$0.2/1M in
grok-4.1-fast
Premium Model
$3/1M in
grok-3
Total Models
7
Available

Quick Answer: xAI pricing starts at $0.2/1M input tokens with grok-4.1-fast. Output tokens cost $0.5/1M. For advanced capabilities, grok-3 costs $3/$15 per 1M tokens.

Text / LLM Models

(6)
ModelInput / 1MOutput / 1MContextTierNotes
grok-4$3.00$15.00256Kfrontier-
grok-4.1-fast$0.200$0.500256Kbudget-
grok-4-fast$0.200$0.500256Kbudget-
grok-3$3.00$15.00128Khigh-
grok-3-mini$0.300$0.500128Kbudget-
grok-2-vision$2.00$10.0032KmidVision

Image Generation Models

(1)
ModelResolutionPrice / ImageNotes
grok-2-imageStandard$0.070Aurora

Compare xAI Models

Frequently Asked Questions

How much does xAI API cost?

xAI API pricing starts at $0.2/1M input tokens with grok-4.1-fast. The most capable model, grok-3, costs $3/1M input tokens. All prices are per million tokens as of January 2026.

What is the cheapest xAI model?

The cheapest xAI model is grok-4.1-fast at $0.2/1M input tokens and $0.5/1M output tokens. It's ideal for high-volume, simple tasks.

How does xAI pricing compare to competitors?

xAI pricing varies by model capability. Budget models start around $0.2/1M tokens, while frontier models cost $3/1M tokens. Compare with OpenAI, Anthropic, and Google on our AI Pricing page.

Other Providers