Quickstart Guide
Get your first AIOrouter API call running in under 5 minutes.
1. Create an Account
Visit aiorouter.ca and create an account. You'll need to:
- Register with your email
- Verify your email address
- Enroll in MFA (Passkey + TOTP) for account security
- Accept the Privacy Policy and Terms of Service
2. Get Your API Key
After registration, your API key is generated automatically. Save it immediately — it will only be shown once. You can generate additional keys from the Dashboard.
API keys follow this format: aiorouter_<64-hex-chars>
3. Install the OpenAI SDK
AIOrouter is fully compatible with the OpenAI SDK. No new libraries needed.
# Python
pip install openai
# Node.js
npm install openai
4. Make Your First API Call
Change one line — the base_url:
from openai import OpenAI
client = OpenAI(
base_url="https://api.aiorouter.ca/v1",
api_key="aiorouter_your_key_here"
)
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[
{"role": "user", "content": "Explain quantum computing in one sentence."}
]
)
print(response.choices[0].message.content)
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.aiorouter.ca/v1',
apiKey: 'aiorouter_your_key_here'
});
const response = await client.chat.completions.create({
model: 'deepseek-v4-pro',
messages: [
{ role: 'user', content: 'Explain quantum computing in one sentence.' }
]
});
console.log(response.choices[0].message.content);
curl https://api.aiorouter.ca/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer aiorouter_your_key_here" \
-d '{
"model": "deepseek-v4-pro",
"messages": [{"role": "user", "content": "Explain quantum computing in one sentence."}]
}'
5. Explore Available Models
models = client.models.list()
for model in models.data:
print(f"{model.id}: {model.owned_by}")
See the Model Catalog for a full list with capabilities and use cases.
Next Steps
- API Reference — all endpoints and parameters
- Model Catalog — choose the right model
- Billing Guide — understand pricing and quotas
- Migration Guide — switching from OpenAI or Copilot
Support
- Email: support@aiorouter.ca
- Response time: P2 (general) within 24 hours, P0 (urgent) within 15 minutes