Home / Pricing / Providers / xAI

xAI API pricing

Published xAI rates in this catalog. Example cost uses 1000 input tokens and 500 output tokens. Open any model in the calculator for your own prompt.

xAI rates

#ModelProviderContextInput / 1MOutput / 1MExample10k requests
1Grok 2 MinixAI131K$0.200/1M$0.500/1M$0.00045$4.5Cost
2Grok 4 FastxAI256K$0.200/1M$0.500/1M$0.00045$4.5Cost
3Grok 3 MinixAI131K$0.300/1M$0.500/1M$0.00055$5.5Cost
4Grok 4.6xAI500K$2.00/1M$6.00/1M$0.005$50.00Cost
5Grok 2xAI131K$2.00/1M$10.00/1M$0.007$70.00Cost
6Grok 2 VisionxAI33K$2.00/1M$10.00/1M$0.007$70.00Cost
7Grok 3xAI131K$3.00/1M$15.00/1M$0.0105$105.00Cost
8Grok 4xAI256K$3.00/1M$15.00/1M$0.0105$105.00Cost
9Grok BetaxAI131K$5.00/1M$15.00/1M$0.0125$125.00Cost
10Grok Vision BetaxAI8K$5.00/1M$15.00/1M$0.0125$125.00Cost

Use the calculator

Open a model in the cost calculator or tokenizer. Rates checked on each model page.

Related tools

LLM cost calculator · Cheapest LLM API · Compare model prices · Cache savings · Batch pricing

Related guides

How LLM API pricing works · How prompt cost is calculated · Prompt caching explained · Exact vs Approx

Sources and references

Official documentation used for definitions, counting methods, or rate cards. Always confirm critical budgets on the provider page.