Model provider5 modelsUS

xAI (SpaceXAI)

Grok models built by xAI.

StatusOperational Live status
LLMAPI discountUp to −25%
Models on LLMAPI4
From$1.56 / 1M blended
RegionsUS
Best uptime (24h)99.38%

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

ProviderxAI (SpaceXAI)
Websitex.ai
Best forReal-time, X-integrated assistants and fast reasoning workloads
Models on LLMAPI4
Popular modelsGrok 4.7, Grok 4.6, Grok 4.5, Grok 4.3

Access & routing

API compatibilityOpenAI-compatible — /v1/chat/completions
Model ID prefixxai/<model>
RegionsUS
FallbackConfigurable — on 429 or 5xx the router switches to any other model or provider on your list
BillingOne invoice across every provider, with per-key spend limits
Volume discountEligible

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 locationUS data centres
Data residencyNot documented by the provider
Default retention30 days for abuse monitoring
Zero-data retentionNot documented by the provider
Training on API dataNo API data is excluded from training
Human reviewNot documented by the provider

Compliance & lifecycle

CertificationsSOC 2 · GDPR
Deprecation noticeNot documented by the provider
Operational statusOperational 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

#1Grok 4 Fast40
#2Grok 436
#3Grok 3 mini36
#4Grok 335

Intelligence index · 5 models

Fastest

#1Grok Code Fast387 t/s
#2Grok 3294 t/s
#3Grok 3 mini242 t/s
#4Grok 4109 t/s

Output tokens / second · 5 models

Lowest price

#1Grok 4$6.58
#2Grok 3 mini$8.51
#3Grok 4 Fast$10.60
#4Grok Code Fast$10.82

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
Meta386 tok/s
DigitalOcean348 tok/s
Parasail822 tok/s
InclusionAI244 tok/s
Nebius580 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.

ModelAPI model nameUptime 24hPrice / 1MContext
Grok 4.7grok-4.799.01%$ 9500 k
Grok 4.6grok-4.699.18%$ 3500 k
Grok 4.5grok-4.599.38%$ 3500 k
Grok 4.3grok-4.399.14%$ 1.561000 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.

Estimated monthly cost

$—
Input tokens$—
Output tokens$—
Per request$—
Get API key

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"}],
)
PricingEligible for LLMAPI volume discounts; billed on one invoice with every other provider.
FeaturesFull pass-through — tool calling, JSON schema, streaming, vision and reasoning behave exactly as on xAI (SpaceXAI)’s own API.
FallbackConfigurable. On 429 or 5xx the router switches to any model or provider on your fallback list.
RegionsUS
Your dataLLMAPI 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.