API Terms/AI & Machine Learning/xAI API

xAI API

x.ai

Provides access to xAI's Grok models for text, code, voice, image, and video generation through an OpenAI-compatible REST API.

The xAI API API uses Bearer token authentication; has usage based pricing; rate limits: Automatically increasing rate limits; custom rate limits available via sales. Verified 2026-07-26 with per-field source links.

AI & Machine Learning Verified 2026-07-26 medium confidence
Base URL
https://api.x.ai/v1
x.ai ↗
Auth
Bearer token
x.ai ↗
Free tier
not documented null
no source
Pricing model
usage based
x.ai ↗
Pricing
Grok 4.5: $2.00/1M input tokens, $6.00/1M output tokens; Voice: Agent $3.00/hour, TTS $15.00/1M chars, STT $0.10-0.20/hour; Imagine: $0.02/image, $0.05/sec video
x.ai ↗
Rate limits
Automatically increasing rate limits; custom rate limits available via sales
x.ai ↗
OpenAPI spec
not documented null
no source
MCP server
not documented null
no source