Virtual model IDs
Pass one of these as themodel field in your request:
Quickstart
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 theprovider field to restrict which backends are considered:
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 theGET /v1/models response with is_virtual: true in their metadata, so your application can discover them programmatically:

