official

xAI API

First-party developer API access to xAI’s Grok models, with official documentation for models, pricing, and SDK integration.

Visit official website
Provider profile

The facts, with sources.

Provider typeofficial
Pricing modelUsage-based API pricing depends on the selected Grok model and applicable token or capability charges.
Markup notesFirst-party published API pricing; not a resale markup.
OpenAI compatibilitypartial
xAI documents OpenAI SDK integration with an xAI base URL and API key; xAI-specific features and API behavior still require its own documentation.
Model supportThe official xAI model documentation lists current Grok model identifiers, capabilities, and availability conditions.
Payment methodsNot verified
Supported regionsNot verified — check official availability documentation
Billing currenciesUSD
Last reviewed2026-10-24 UTC

Verified considerations

Documented advantages

  • Direct access to xAI’s documented Grok model catalog.
  • Official documentation describes OpenAI SDK integration.

Limitations to check

  • Pricing and capabilities vary by model and feature.
  • OpenAI SDK support does not make all xAI and OpenAI API features identical.

Official sources

See outdated or incorrect information? Send a correction.