Skip to content
FrontierDot

xAI API

API documentation for xAI's Grok models.

Visit docs.x.ai
Pricing Paid
Free tier No

Key features

Category
LLM APIs
Who it's for
Developers building with the Grok API in their own tools.
Tags
apixaillm-apitool-callingnotes-docsvoice-speechimage-videosearch
Website
docs.x.ai
Listed
2026-09-15

Frequently asked questions

Is xAI API free?

No. xAI API is a paid product with no free plan listed on its site.

What is xAI API used for?

API documentation for xAI's Grok models. Typical uses: generate and stream text with reasoning and structured outputs; generate and edit images, including multi-image edits; generate, edit, and extend video from images or text.

What are the best xAI API alternatives?

Alternatives in the same category include Mistral, OpenRouter, Replicate, DeepInfra, fal.

See all →