xAI API

Model API

Hosted API for the Grok models, billed per token.

Find alternatives to xAI API

TypeModel API
RoleSuite
AvailabilitySold
DeploymentSaaS
Intended forDeveloper, Enterprise
SecurityVendor-asserted
CertificationsNot recorded
Trains on customer dataNo
Zero data retentionAvailable
Data residencyNot recorded
Security featuresEncryption at rest, Audit logs
StatusActive
Sold withinSold on its own
PricingUsage-based

What it does

Features 8

x.ai

How it compares

Sources

Pricing

Pricing page · 21 Aug 2026

Constraints

Official documentation · 2 Oct 2026

Derived from the security facts on this page, from the same source.

Security

Official documentation · 2 Oct 2026

API only: docs.x.ai API Security FAQ (site now branded SpaceXAI) covers API requests/responses; consumer Grok, Grok Bot, Grok Build, Grokipedia and voice products are left out. ZDR is a vendor team-level setting. Certifications and DPA not found on fetched pages (x.ai legal pages returned 403 to curl; trust.x.ai is a Vanta script-only page).

Sold within

Official documentation · 30 Sep 2026

xAI's API pricing page states "All prices are in USD." and lists per-model token rates, e.g. grok-4.7 at "$2.00" input and "$6.00" output per 1M tokens, plus Imagine and Voice API rates.

Interfaces

Official documentation · 28 Sep 2026

Docs show REST calls to https://api.x.ai/v1 with a bearer API key (x.ai/api itself returned 403, so the docs subdomain was used).

Modalities

Official documentation · 1 Oct 2026

Page: 'Any image/text input order is accepted / Real-time conversations, speech-to-text, and text-to-speech / image and video generation'.

Intended for

Self-reported · 8 Sep 2026

xAI's own announcement: "we launched the public beta of our enterprise API"; described elsewhere as xAI's "pay-per-token developer interface for building applications, agents, and integrations", with a separate custom-priced enterprise contract tier

Also from xAI

Open xAI in the directory

Something wrong here? Send a correction — quote this product id: xai-api.