xAI / Pricing signals

xAI API pricing and supported models

Compare the 22 xAI model routes currently listed by Route Key. Review model IDs, price signals, context, endpoints, and billing groups before routing production traffic.

Provider
xAI

22 models

Supported models
22
Endpoints
1
Largest context
-

Supported models

Input · per 1M tokens$75.00
Output · per 1M tokens$75.00

grok-3

openai

Input · per 1M tokens$75.00
Output · per 1M tokens$75.00
Input · per 1M tokens$75.00
Output · per 1M tokens$75.00
Input · per 1M tokens$75.00
Output · per 1M tokens$75.00
Input · per 1M tokens$75.00
Output · per 1M tokens$75.00

grok-4

openai

Input · per 1M tokens$75.00
Output · per 1M tokens$75.00

grok-4.1

openai

Input · per 1M tokens$75.00
Output · per 1M tokens$75.00

grok-4.2

openai

Input · per 1M tokens$75.00
Output · per 1M tokens$75.00

grok-beta

openai

Input · per 1M tokens$5.00
Output · per 1M tokens$15.00

Frequently asked questions about xAI API pricing

Which xAI models are available through Route Key?

Route Key lists the xAI model IDs currently returned by its live pricing catalog. Check the model list below for the exact ID and endpoint before sending traffic.

How does xAI API pricing work?

xAI cost can vary by model, input and output tokens, cache behavior, billing group, and route ratio. Use the live signals below as a Route Key estimate and confirm provider terms before purchase.

Can I use xAI with an OpenAI-compatible API?

Yes. Keep your existing OpenAI-compatible request body, set the Route Key base URL and API key, then use an enabled xAI model ID from this page.