Developer documentation

xAI Developer is the unified documentation and integration hub for developers and partners — a single place to discover, learn and integrate every product in the xAI ecosystem.

What you can do here

Design principles

All APIs in the ecosystem follow consistent principles:

  • Consistent — REST over HTTPS, JSON, standard error codes across products.
  • Secure by default — one SSO session, RBAC, no secret keys on the client.
  • Edge-native — runs on Cloudflare, low latency, ready to scale.

Technical foundation

The xAI ecosystem is built on Astro (SSR/static), Cloudflare Workers/Pages, D1 and Workers AI. Identity is centralized in xAI Identity; all products share one sign-in session on the .xai.io.vn domain.

Start with the Quickstart →