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, EnterpriseSelf-reported · 8 Sep 2026
SecurityNot recorded
StatusActive
Sold withinSold on its ownOfficial documentation · 30 Sep 2026
PricingUsage-basedPricing page · 21 Aug 2026
Sources1 of 1 field

What it does

x.ai

How it compares

Sources

Pricing

Pricing page · 21 Aug 2026

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).

Also from xAI

Open xAI in the directory

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