xAI develops the Grok family of models and sells first-party access to them through the xAI API, with text, image and video generation, and voice endpoints billed per token, image, second, or minute.
At a glance · prices collected Nov 11, 2026
What's good about xAI
- First-party access to Grok models
- Cached-input rates published per model
- Batch and priority tiers for cost or latency trade-offs
- Also available through Google Cloud Vertex AI and Microsoft Foundry
xAI LLM API prices
Pay-per-token pricing, per 1M tokens.
Prices last updated November 11, 2026
| Model | Input/1M | Output/1M |
|---|---|---|
| $1.00 | $2.00 | |
| $1.25 | $2.50 | |
| $2.00 | $6.00 | |
| $2.00 | $6.00 | |
| $2.00 | $6.00 |
xAI pricing by model
Input, output, and batch rates, plus alternatives, for one model at a time.
Billing & terms
- Per token
- Input, cached input, and output tokens billed per 1M, with a higher long-context rate above a prompt-size threshold
- Batch
- Discounted asynchronous processing for selected models
- Priority
- A premium over standard rates for higher scheduling priority
- Support
- Documentation, status page, and console support
Watch out for
- Only xAI's own models are offered
- Long-context requests above the published prompt threshold are billed at a higher rate for the whole request
- Server-side tool calls add per-invocation charges on top of tokens
Features
- Grok text models
- Chat Completions and Responses endpoints for the Grok models, with configurable reasoning and tool calling
- Server-side tools
- Web Search, X Search, code execution, file and collection search, and remote MCP tools billed per invocation on top of tokens
- Imagine and Voice APIs
- Image and video generation billed per image or second, and speech-to-speech, speech-to-text and text-to-speech endpoints
- Batch API
- Asynchronous processing with a discount on selected models, typically completed within 24 hours
- Priority Processing
- Higher scheduling priority for lower latency at a premium over standard token rates
- Prompt caching
- Cached prompt tokens are billed at a reduced rate
Getting started
Step 1
Create an account
Sign up on the xAI console and add credits
Step 2
Create an API key
Generate a key in the console
Step 3
Call the API
Send requests to api.x.ai with an OpenAI-compatible client or the xAI SDK
Where this page's facts come from
- LLM API prices
- docs.x.ai · last collected Nov 11, 2026
- Profile
- Reviewed Sep 28, 2026
- Method
- How we collect and check prices
Frequently Asked Questions
Which models does xAI serve?
Check the pricing table above for the models xAI currently serves and their per-token rates.
How do I get started with xAI?
Create an account, Create an API key, Call the API
What are xAI's main advantages?
xAI's main advantages include: First-party access to Grok models, Cached-input rates published per model, Batch and priority tiers for cost or latency trade-offs, Also available through Google Cloud Vertex AI and Microsoft Foundry.
What are xAI's limitations?
xAI's main limitations include: Only xAI's own models are offered, Long-context requests above the published prompt threshold are billed at a higher rate for the whole request, Server-side tool calls add per-invocation charges on top of tokens.
Compare Providers
Find the best prices for the same GPUs and models from other providers · All xAI alternatives, ranked →
All xAI Comparisons
The weekly price report
One email every Monday with the week's notable GPU and LLM API price moves, plus occasional product news. No spam.