Authentication
Use bearer tokens for all API requests.
Key Types
| Name | Type | Required | Description |
|---|---|---|---|
sk-... | tenant key | Standard API key for tenant-scoped endpoints. | |
sk-mgmt-... | management key | Required for management-only endpoints (for example /api/v1/credits). |
Example
bash
export THEROUTER_API_KEY="sk-..."
curl https://api.therouter.ai/v1/models -H "Authorization: Bearer $THEROUTER_API_KEY"