xAI
Creator of the Grok model family. Offers LLMs with reasoning modes, image generation, and video generation. Batch API available at 50% discount.
At a glance: xAI has 9 models listed on Inference Hub: 5 LLMs, 2 image models, 1 coding model and 1 video model. The cheapest text model is Grok Build 0.1 at $1.00 input and $2.00 output per 1M tokens, and the most expensive is Grok 4.5 at $2.00 input and $6.00 output per 1M tokens. Image generation starts at $0.020 per image with Grok Aurora. There is no free tier. Prices are checked against xAI's own pricing every week.
Features
Compliance
None listed
Pricing Model
per tokenDetails
https://api.x.ai/v1 Model Catalog (9)
| Model | Type | Input $/1M | Output $/1M | Context | Speed | Status |
|---|---|---|---|---|---|---|
| Grok 4.20 xAI | llm | $1.25 | $2.50 | 1M | — | |
| Grok 4.3 xAI | llm | $1.25 | $2.50 | — | — | |
| Grok 4.5 xAI | llm | $2.00 | $6.00 | 500k | — | |
| Grok 4.6 xAI | llm | $2.00 | $6.00 | 500k | — | |
| Grok 4.7 xAI | llm | $2.00 | $6.00 | 500k | — | |
| Grok Aurora xAI | image gen | $0.020/img | — | — | — | |
| Grok Build 0.1 xAI | code | $1.00 | $2.00 | 256k | — | |
| Grok Imagine Image 2.0 xAI | image gen | $0.040/img | — | — | — | |
| Grok Imagine Video xAI | video gen | $0.050/sec | — | — | — |
xAI guides
Zero Data Retention for AI APIs: Which Providers Store Your Prompts, and How to Turn It Off
Which AI API providers store prompts, for how long, and how to get zero data retention at OpenAI, Anthropic, Google, Azure, Bedrock, OpenRouter and 20 hosts.
Nov 2026Grok Pricing in 2026: SuperGrok Plans vs the xAI API
Grok is free with limits; paid plans cost $8, $30, $100 or $200 a month. The xAI API charges $2/$6 per 1M tokens for Grok 4.7. Plans, API and alternatives.
Oct 2026Kie.ai Pricing in 2026: What the Credits Cost and Where It's Actually Cheapest
Kie.ai API pricing explained: $0.005 credits, 80 free credits, and per-model costs for Claude, GPT, Gemini, Veo, Kling and Suno vs official and other providers.
xAI API FAQ
Is the xAI API free?
Not as far as we track: xAI has no free API tier on record. The cheapest option we track is Grok Build 0.1 at $1.00 in / $2.00 out per 1M tokens.
What is the cheapest xAI model?
Grok Build 0.1 at $1.00 in / $2.00 out per 1M tokens, based on the 9 models we track for xAI.
How many models does xAI offer?
We track 9 xAI models: 5 LLM, 2 image generation, 1 coding, 1 video generation.
Is the xAI API OpenAI-compatible?
Yes. xAI exposes an OpenAI-compatible endpoint, so you can use the OpenAI SDKs by changing the base URL and API key.
Run xAI? Add a "Prices tracked on Inference Hub" badge to your site, or email hello@inferencehub.org if a price here is wrong.