AI Router: Quick Start
1. Create an AI router
- Make sure that after completing registration you topped up the balance by a minimum amount of 200 ₽. This is required to get access to the service. The funds will remain on the balance.
- In the Control panel, on the top menu, click Products and select AI Router.
- In the AI Router section, click Create AI router.
- Enter the AI router name.
- Optional: enter a description.
- Enter the key name.
- Click Create. The API key can only be viewed once after creation — copy and save it.
2. Optional: set a limit on the API key
- In the Control panel, on the top menu, click Products and select AI Router.
- In the AI Router section, open the AI router page → Keys and limits tab.
- In the key menu, select Change limit.
- Enter the new limit value in rubles.
- Click .
3. Check AI router operation
-
Open the CLI.
-
Send a test request:
export API_KEY="<api_key>"curl -X POST --http2 \'https://api.selectel.ru/aig/v1/chat/completions' \--header "Authorization: Bearer $API_KEY" \--data '{"model": "moonshotai/kimi-k2.6","stream": false,"reasoning": {"effort": "low"},"messages": [{"role": "user","content": "Tell me about Selectel"}]}'Specify
<api_key>— the API key you saved when creating the AI router in step 1.