XA
xAI
Proprietary
Creator of the Grok model family. Offers LLMs with reasoning modes, image generation, and video generation. Batch API available at 50% discount.
Features
OpenAI Compatible
Streaming
Batching
Fine-tuning
Embeddings
Vision
Audio
Function Calling
JSON Mode
Compliance
SOC 2
HIPAA
GDPR
Pricing Model
per tokenDetails
Founded 2023
HQ San Francisco, CA
Models 8
API Base
https://api.x.ai/v1 Model Catalog (8)
| Model | Type | Input $/1M | Output $/1M | Context | Speed | Status |
|---|---|---|---|---|---|---|
| Grok 3 Mini xAI | llm | $0.200 | $0.500 | 2M | — | |
| Grok 4 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.050/img | — | — | — | |
| Grok Build 0.1 xAI | code | $1.00 | $2.00 | 256k | — |
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 3 Mini at $0.20 in / $0.50 out per 1M tokens.
What is the cheapest xAI model?
Grok 3 Mini at $0.20 in / $0.50 out per 1M tokens, based on the 8 models we track for xAI.
How many models does xAI offer?
We track 8 xAI models: 6 LLM, 1 image generation, 1 coding.
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.