Skip to main content

AI Router: Quick Start

  1. Create an AI router.
  2. Optional: set an API key limit.
  3. Check AI router operation.

1. Create an AI router

  1. Make sure that after completing registration you have topped up your balance with a minimum amount of 200 ₽. This is required to access the service. The funds will remain on your balance.
  2. In the control panel, in the top menu, click Products and select AI Router.
  3. In the AI Router section, click Create AI router.
  4. Enter the AI router name.
  5. Optional: enter a description.
  6. Enter the key name.
  7. 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

  1. In the control panel, in the top menu, click Products and select AI Router.
  2. In the AI Router section, open the AI router page → the Keys and limits tab.
  3. In the menu of the key, select Change limit.
  4. Enter the new limit value in rubles.
  5. Click .

3. Check AI router operation

  1. Open the CLI.

  2. 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.