Skip to main content
Instead of choosing a specific model, you can use a virtual model ID and let the platform select the optimal model for each request. This is useful when you want the best result without needing to track which models are available.

Virtual model IDs

Pass one of these as the model field in your request:

Quickstart

The platform will select the best model for this request and route it transparently. The response is identical to a normal chat completion.

How auto works

The auto strategy classifies your request into one of three quality tiers based on signals like:
  • Message length — longer prompts suggest more complex tasks
  • Multi-turn depth — conversations with many messages benefit from stronger models
  • Code blocks — presence of code suggests technical tasks
  • System prompt complexity — detailed instructions indicate sophisticated use
  • Keywords — terms like “analyze”, “compare”, “step by step”, and “critique” signal complex reasoning

Combining with provider hints

You can combine virtual model IDs with the provider field to restrict which backends are considered:
This picks the cheapest model from Brightnode’s self-hosted infrastructure only.

Response headers

When auto-routing is used, two additional headers are included in the response: The response body’s model field also reflects the concrete model that served the request.

Pricing

You are charged at the rate of whichever concrete model is selected. There is no additional fee for using auto-routing. Pricing for each model is listed on the Models page.

Discovery

Virtual model IDs appear in the GET /v1/models response with is_virtual: true in their metadata, so your application can discover them programmatically: