Quick Start

This page is for XAI Control (multi-tenant BYOK). If you prefer a SaaS router with platform-managed keys, see XAI Router Quick Start.

1. Sign up and get your XAI API Key

  1. Register at a.xaicontrol.com and verify your email.
  2. After activation, you will receive a welcome email with your XAI API Key.
  3. Account & usage management is available at m.xaicontrol.com.

2. Add provider keys (BYOK)

In the Admin console (a.xaicontrol.com), open API Keys and add your official OpenAI / Anthropic / DeepSeek keys.

Requests cannot be routed until provider keys are configured.

3. Configure the API endpoint

Update your SDK/application base_url to the unified gateway endpoint:

  • Base URL: https://api.xaicontrol.com (for self-hosting, use your XAI_API value)

4. Send your first request

# Replace YOUR_XAI_API_KEY with your own key
export XAI_API_KEY="sk-xxxx"

curl https://api.xaicontrol.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -d '{
      "model": "gpt-4o-mini",
      "messages": [
        {
          "role": "user",
          "content": "Hello, XAI Control!"
        }
      ]
    }'

5. Console shortcuts (optional)

If you need a shared test key, ask your parent account administrator for a temporary key.