API Reference
API Reference
This section covers the core public interfaces of XAI XAPI.
Documentation Map
-
- OpenAI / Claude compatible proxy routes
- Dashboard query routes (
/dashboard/*)
-
- Key pool management (
/x-keys) - Owner configuration (
/x-conf,/x-config) - User detail (
/x-info)
- Key pool management (
-
- Subaccount management (
/x-users,/x-dna) - Billing queries (
/x-bill) - Self-service actions (
/x-self)
- Subaccount management (
Quick Examples
export BASE_URL="https://api.xaicontrol.com"curl ${BASE_URL}/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5-nano","messages":[{"role":"user","content":"hello"}]}'curl ${BASE_URL}/dashboard/status \
-H "Authorization: Bearer $API_KEY"Note: Internal maintenance/correction interfaces are intentionally excluded from public docs.