Automatic model selection
Task, complexity, domain, language and sensitivity are read from each prompt; every model you allow is scored on quality for that task, cost for that length and latency; your rules remove the ones that may not answer. The best value is chosen per request and explained - no model names in your code.
Free plan, no card. Open source under Apache-2.0; self-hosting is free forever.
From the benchmark
9.53 vs 9.15
judged quality, selected vs always-frontier
On 150 real prompts two blind judges scored the automatically selected answers higher than the frontier model's, while the selection spent 89% less. The categories where it lost are listed on the benchmark page.
The whole benchmark, with the cases the router lostThe problem
The requests an application receives are not alike: a one-line rewrite, a forty-page analysis, a code fix, a question with a customer's account number in it. One model for all of them is either too expensive for most or too weak for some - and a list of regexes in the application is not a selection strategy.
How the router answers it
Task type, complexity, domain, language, whether it carries personal data or code - extracted on the way in, in microseconds, before any model is called.
Published benchmarks, declared capabilities, a small routing model trained on outcomes and your feedback give each candidate a quality estimate for this task; cost and latency complete the score.
Balanced, Cheapest, Best or Fastest - or your own weights - and a quality floor below which a candidate is not considered. A low-confidence decision can fall back to the model you name.
A real request
The decision names the target, its confidence and the ranked alternatives with their prices. Replace the prompt with a one-line rewrite and the same call picks a small, fast model.
curl -s https://opensmartroute.ai/api/v1/route \
-H "Authorization: Bearer $OSR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "<prompt>"}'Read next
Install
npm install @opensmartroute/sdkOr no install at all: the hosted API answers a plain curl with the decision, and the browser extension shows the price and the router's pick under the composer of the AI chat sites you already use.
OpenSmartRoute is open source and the free plan keeps the full trace of every decision. Create a workspace, mint a key and send the request above.
Free plan, no card. Fifteen thousand decisions a month with the full trace.