AI Router: Quick Start
- Create an AI Router.
- Top up your balance.
- Optional: set an API key limit.
- Check AI Router operation.
1. Create an AI Router
- In the Control panel, in the top menu, click Products and select AI Router.
- In the AI Router section, click Create.
- 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. Top up balance
Use the Top up balance guide.
3. Optional: set a limit for the API key
An API key limit is a monetary amount in rubles within which you restrict the key's usage. By default, the limit for each API key is zero — you can use a key without restrictions as long as there are funds available on your balance.
- In the Control panel, on the top menu, click Products and select AI Router.
- In the AI Router section, open the AI Router page → the Keys and limits tab.
- In the key menu, select Change limit.
- Enter the limit value in rubles.
- Click .
4. Verify AI Router performance
-
Open your terminal.
-
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.