Build a custom virtual model

Create an alias from models across providers with priority, fallback, or round robin.

Illustrative example: Alias и название
Illustrative example: Alias и название
Illustrative data. Available controls depend on your edition and permissions.
  1. Alias и название
  2. Параллельно или последовательно
  3. Два маршрута уровня 1 параллельно

Before you start

Sign in to IAM.Router One. If a route uses a long-tail catalogue model, add that model to the application-visible list first. Confirm that its provider is available. An alias grants no additional access and works only with keys owned by your account.

Create a group

  1. Open Виртуальные модели in the left menu and click Создать модель. An account can keep any number of virtual models. After a save, the editor resets for another alias while the saved models stay in the list.
  2. Enter an alias for the model field, such as deepseek, high-reasoning, or my/deepseek-flash. Use lowercase Latin letters, digits, dot, _, -, and / between non-empty segments; auto and system model IDs are reserved.
  3. Enter a display name and choose Fallback or Round robin on the canvas.
  4. In Добавить маршрут, choose Параллельно to put the next exact model · provider pair into the current tier, or Последовательно to open a new fallback tier. You can also select a specific tier or drag a card onto the canvas. The UI imposes no route-count limit.
  5. Click Сохранить. The group is saved atomically; a partially completed row is rejected.

A lower number means higher priority, and the canvas renders routes from one tier in parallel. fallback starts with the first available route in the best tier and advances after an eligible failure or capacity saturation. round_robin gives free routes in the best tier equal request shares and skips busy routes; the next tier is used when the preferred tier is unavailable or saturated.

For my/deepseek-flash, add deepseek-v4-flash as a separate route for every provider you need. Put the preferred option in the first tier and the backups in later tiers; for example, an on-premises route can be followed by available Ollama Cloud and DeepSeek routes. Add OpenRouter only while it is marked available. Check the model · provider pair in every row: matching model names do not combine providers automatically.

When the preferred route is temporarily busy, Router automatically tries the next configured tier. Clients do not need to change the alias or repeat the request manually; add suitable backup routes in advance.

Use it from an agent or API

Pass the alias unchanged in the OpenAI-compatible model field:

{
  "model": "high-reasoning",
  "messages": [{"role": "user", "content": "A short synthetic request"}]
}

The alias appears in GET /v1/models for the account key and works for SDKs, CLIs, agents, and custom applications. IAM.Router policy still limits the route to the permitted perimeter; an external provider is skipped for a more contained decision.

Verify and recover

Make several short requests with synthetic data. For round_robin, confirm that routes from the same tier serve requests; for fallback, confirm that the alias keeps responding while the preferred route is temporarily unavailable. If a provider is visible but cannot be selected, refresh the catalogue and choose an available backup route; contact support if its state does not change. If saving fails, remove an unknown/unavailable pair or refresh the catalogue. After deleting an alias, configured agents receive an unknown-model error until their model value is changed.