Verdict
xAI develops the Grok family of models, trained on one of the largest GPU clusters in the world and integrated with the X platform. Through LLMAPI you reach 5 xAI (SpaceXAI) models on the same OpenAI-compatible endpoint as every other provider, so switching between them is a one-string change.
Good fit for
- Text Generation
- Code Generation
- Reasoning & Logic
- Mathematics
- Fastest Throughput
- Lowest Latency (TTFT)
Consider another provider for
- No image generation models in this catalog
- No vision models in this catalog
- No video generation models in this catalog
- No video understanding models in this catalog
Key facts
Where a provider does not document something we say so rather than guess. Everything LLMAPI records about xAI (SpaceXAI), in one table.
Overview | |
| Provider | xAI (SpaceXAI) |
| Website | x.ai |
| Best for | Real-time, X-integrated assistants and fast reasoning workloads |
| Models on LLMAPI | 4 |
| Popular models | Grok 4.7, Grok 4.6, Grok 4.5, Grok 4.3 |
Access & routing | |
| API compatibility | OpenAI-compatible — /v1/chat/completions |
| Model ID prefix | xai/<model> |
| Regions | US |
| Fallback | Configurable — on 429 or 5xx the router switches to any other model or provider on your list |
| Billing | One invoice across every provider, with per-key spend limits |
| Volume discount | Eligible |
Performance (median across listed models) | |
| Blended price / 1M | $3 |
| Uptime (24h) | 99.16% (median across listed models) |
Modality | |
| Tags | |
Capability | |
| Tags | |
Price & performance | |
| Tags | |
Workflow | |
| Tags | |
Audience | |
| Tags | |
Privacy & data | |
| Inference location | US data centres |
| Data residency | Not documented by the provider |
| Default retention | 30 days for abuse monitoring |
| Zero-data retention | Not documented by the provider |
| Training on API data | No API data is excluded from training |
| Human review | Not documented by the provider |
Compliance & lifecycle | |
| Certifications | SOC 2 · GDPR |
| Deprecation notice | Not documented by the provider |
| Operational status | Operational Live status |
Prices and context from the OpenRouter public catalogue; uptime and output speed from OpenRouter provider endpoints; quality scores from LiveBench. Refreshed nightly — last updated 2026-09-29. — means no figure is published for that model.
Best xAI (SpaceXAI) models
A quick view of how xAI (SpaceXAI) 's 5 models compare on intelligence, output speed and price — so you can pick the right one for your use case.
Most intelligent
Intelligence index · 5 models
Fastest
Output tokens / second · 5 models
Lowest price
Blended price per 1M tokens · 5 models
Compared with other hosts
How xAI (SpaceXAI) sits against the rest of the catalog, using the same measurements shown on every provider page.
- Price. Median blended price of $10.60 per 1M tokens — 73% above the $6.13 median across all 50 providers in the catalog.
- Throughput. Median output speed of 242 tokens/s, 30% slower than the 348 tok/s catalog median.
- Catalog depth. 5 models listed, against a catalog average of 5 per provider.
- Integration. Identical to every other provider here — same endpoint, same SDK, same keys, so a switch costs one string change.
Median blended price per 1M tokens
lower is better| xAI (SpaceXAI) | $10.60 | |
| Meta | $9.89 | |
| DigitalOcean | $9.25 | |
| Parasail | $8.93 | |
| InclusionAI | $8.76 | |
| Nebius | $8.66 |
Median output speed
higher is better| xAI (SpaceXAI) | 242 tok/s | |
| Meta | 386 tok/s | |
| DigitalOcean | 348 tok/s | |
| Parasail | 822 tok/s | |
| InclusionAI | 244 tok/s | |
| Nebius | 580 tok/s |
Figures are medians across the models listed on each provider page and are refreshed with the catalog.
Models & pricing
Every xAI (SpaceXAI) model reachable with your LLMAPI key. Click a column heading to sort.
| Model | API model name | Uptime 24h | Price / 1M | Context |
|---|---|---|---|---|
| Grok 4.7 | grok-4.7 | 99.01% | $ 9 | 500 k |
| Grok 4.6 | grok-4.6 | 99.18% | $ 3 | 500 k |
| Grok 4.5 | grok-4.5 | 99.38% | $ 3 | 500 k |
| Grok 4.3 | grok-4.3 | 99.14% | $ 1.56 | 1000 k |
Price is a blended per-1M-token figure; latency is time to first token and throughput is output tokens per second, measured on the LLMAPI edge.
Cost calculator
Pick a model, enter your traffic, and see the monthly bill at LLMAPI rates.
Estimates use the blended per-1M-token price shown in the table above. Word counts differ by language — Cyrillic and CJK text uses 2–3× more tokens per word.
xAI (SpaceXAI) via LLMAPI
Same models, same features, one key. Prefix the model ID with xai/ and point your OpenAI client at our base URL.
# Python · OpenAI SDK from openai import OpenAI client = OpenAI( base_url="https://api.llmapi.ai/v1", api_key="LLMAPI_KEY", ) r = client.chat.completions.create( model="xai/grok-4", messages=[{"role": "user", "content": "Hello"}], )
| Pricing | Eligible for LLMAPI volume discounts; billed on one invoice with every other provider. |
| Features | Full pass-through — tool calling, JSON schema, streaming, vision and reasoning behave exactly as on xAI (SpaceXAI)’s own API. |
| Fallback | Configurable. On 429 or 5xx the router switches to any model or provider on your fallback list. |
| Regions | US |
| Your data | LLMAPI stores request metadata only — model, token counts, latency and status. No prompt or completion content. |
Capabilities & use cases
Each tag below is its own catalog page listing every provider that shares it.
Developer resources
Where to go next.
Join thousands of developers building on one API key
Every provider in the catalog, one key, one invoice.
Questions
How do I call xAI (SpaceXAI) models through LLMAPI?
Point any OpenAI-compatible client at https://api.llmapi.ai/v1 and use the model ID xai/grok-4. No other change is needed.
Does xAI (SpaceXAI) cost more through LLMAPI?
No. This provider is eligible for LLMAPI volume discounts, so heavy usage lands below list price.
Which regions are used?
US
What happens if the provider returns an error?
On 429 or 5xx responses the router falls back to any other model or provider on your configured list, so requests keep succeeding.
How many xAI (SpaceXAI) models are available?
5 at the moment, all listed in the models table above and updated as the provider ships new ones.