Skip to main content
Docs · Controls

Virtual models

Call a configuration by name with model "config:<slug>". Which API keys may call one, how it resolves, and when to use it instead of auto.

Browse docs · Controls › Virtual models
On this page
  1. Where to find them
  2. Which API keys may call one
  3. How it resolves
  4. Choosing auto or a virtual model

A virtual model is a configuration called by name. Every configuration answers to model: "config:<slug>", so a request runs with that configuration's request settings, routing policy and guardrail policy, and routing picks the model. Applications keep their OpenAI-compatible code and change one string.

python
from openai import OpenAI

client = OpenAI(api_key="inf_your_api_key", base_url="https://api.inferbase.ai/v1")

response = client.chat.completions.create(
    model="config:support-bot",
    messages=[{"role": "user", "content": "Where is my order?"}],
)

Where to find them

  • Models › Virtual models lists every configuration the project can use, with its virtual model, what it runs, and how many active API keys can call it.
  • A configuration's page shows its virtual model in the page head, with a copy button, and a request body that calls it under Called as a virtual model.
  • The Playground's model menu lists virtual models under Auto. Picking one runs the conversation with that configuration, for this session only.
  • GET /v1/models returns a key's virtual models right after auto, so a client that builds its model picker from that list offers them.

Which API keys may call one

An API key may call:

  • its own configuration, which is the same as sending auto. A key with no configuration of its own may name the default it runs with: the project's default, else the organization's.
  • the configurations on its list of virtual models, at most 20. Set the list in the key's settings, or with virtual_model_ids in the API keys API.

Anything else is refused with a 403 that names the virtual models the key may call.

How it resolves

Calling a virtual model changes only the first layer of the configuration order. The key's project, limits and bill stay the same, and whatever the project and organization layers enforce still applies. A component the called configuration leaves Inherited comes from the layers below it, as it would for an assigned key. See Configurations for the order.

The slug is set when the configuration is created and never changes, so code that sends it keeps working when the configuration is edited. policy:<slug> is accepted as an alias: configurations created from routing policies kept their slugs.

Choosing auto or a virtual model

SendWho decidesUse when
"model": "auto"The key. Requests run with the key's configuration, else the defaults.An application does one job, so one configuration fits all its requests.
"model": "config:<slug>"The request. It runs with the named configuration, which the key must be assigned or list in its virtual models.One key serves several jobs, and each request names the configuration it needs.
A model idNo model choice. The key's configuration still applies its request settings and guardrails.The application needs one exact model.

A common pattern: one key per application, with its everyday configuration assigned, and a short list of virtual models for the jobs that need different routing or checks, such as config:batch-summaries with a cost objective or config:support-bot with stricter guardrails.

Last updated December 1, 2026.