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

OpenAI Compatible
Streaming
Batching
Fine-tuning
Embeddings
Vision
Audio
Function Calling
JSON Mode

Compliance

None listed

Pricing Model

per token

Details

Founded 2023
HQ San Francisco, CA
Models 9
API Base 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

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.

Subscribe to our newsletter

News and updates, 1–2 emails per month. No spam.