Quick Start
This page is for XAI Control (multi-tenant BYOK AI API Router). For an AI API Router service available with online signup, visit the sister product XAI Router.
1. Sign up and get your XAI API Key
- Register at a.xaicontrol.com.
- Verify your email and activate your account.
- Check your email for the XAI API Key automatically created by the system.
2. Configure the Base URL
Update your SDK/application base_url to XAI Controlβs Base URL:
- Base URL:
https://api.xaicontrol.com
3. Send your first request (main protocol examples)
# Replace YOUR_XAI_API_KEY with your own key
export XAI_API_KEY="sk-xxxx"
3.1 OpenAI Responses API
curl https://api.xaicontrol.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $XAI_API_KEY" \
-d '{
"model": "gpt-5.3-codex",
"input": "Hello, XAI Control! Introduce yourself in one sentence."
}'
3.2 OpenAI Chat Completions API
curl https://api.xaicontrol.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $XAI_API_KEY" \
-d '{
"model": "gpt-5.3-codex",
"messages": [
{
"role": "user",
"content": "Hello, XAI Control! Introduce yourself in one sentence."
}
]
}'
3.3 Claude API
curl https://api.xaicontrol.com/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: $XAI_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-opus-4-6",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello, Claude! Introduce yourself in one sentence."
}
]
}'
3.4 Gemini API
curl -X POST "https://api.xaicontrol.com/v1beta/models/gemini-3-flash-preview:generateContent" \
-H "x-goog-api-key: $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"parts": [
{
"text": "Hello, Gemini! Introduce yourself in one sentence."
}
]
}
]
}'
4. Usage & billing
At m.xaicontrol.com, you can view:
- Real-time usage and model-level consumption
- Billing and top-up history
If you need an AI API Router service available with online signup, choose XAI Router.