Build Your Own Auto Router
An auto router sends each request to one of your models, depending on how demanding the request is. Simple questions go to a fast and inexpensive model, demanding ones to a stronger model.
How it works
Every request is first classified into one of four tiers. The auto router then calls the model you picked for that tier.
Simple
Greetings, short questions, simple rewording
Medium
Everyday tasks such as summaries and emails
Complex
Code, longer analyses, multi step tasks
Reasoning
Proofs, planning and tasks that need step by step thinking
The Default model answers when a request cannot be classified.
Each request is billed at the model that answered it, so a simple request costs what the simple model costs.

Create an auto router
To create an auto router:
In the Admin Panel, go to AI Models and scroll to Auto routers.
Click New auto router.
Enter a Name. Use lowercase letters, digits and hyphens. The name becomes part of the model name your apps call, and cannot be changed later.
Optionally add a Description.
Pick a model for each tier: Simple, Medium, Complex and Reasoning.
Pick a Default model.
Choose a Classifier:
Heuristic decides instantly and makes no extra call.
Language model asks a model which tier the request needs. Pick the Classifier model.
Click Save.
To build an auto router for agents, tick Only show agent-compatible models before you pick the models.
Rules and warnings
When you save, Blockbrain checks that:
every model is a chat model that is switched on for your organization
no tier sends data to a wider region than the default model
The editor also shows warnings before you save. They do not stop you from saving:
Smallest context window: longer requests fail when they are routed to that model, because the classifier does not look at length.
A capability is not reported for a model, for example PDF input or web search. A request that needs it fails when it is routed there.
Agent compatible tells you whether agents are offered this auto router. It is only the case when every tier and the default model may drive an agent.
Use, edit and delete
After saving, the auto router appears in the model selection of chats, bots and agents, with the Blockbrain logo.
To change the models, click Edit, change the tiers and click Save. The name stays the same.
To delete an auto router, click Delete. Apps that still call it get an error.
Last updated

