Smart Routing
The best model and provider for every request — by price, latency and quality
Define routing policies once and RootInference picks the best model and provider per request. Optimise for cost, latency or quality, set fallback chains, pin rules per API key, and A/B new models against production traffic — all without touching application code.
rootinference route --policy latency-firstChat completion received under latency-first policy
6 candidate providers serve the requested model class
Selected provider-2: p50 189 ms, $0.9/M input
Fallback chain armed: provider-4, then provider-7
Completed in 1.4 s for 2.1 credits, quality check passed
Estimated saving vs pinned frontier model: 63%
Capabilities
What it does
Cut inference spend and latency without sacrificing quality — routing decisions become policy, not code.
- Price, latency and quality routing policies with per-request overrides
- Model fallback chains — degrade gracefully from frontier to mid-tier
- Per-key routing rules for teams, environments and features
- A/B model comparison on live traffic with side-by-side metrics
- Provider selection by real-time latency and error-rate telemetry
- Cost ceilings and budget-aware routing per key or team
- Route economy models by default, escalate to frontier on demand
The routing decision
Every request, routed in nine steps
The whole decision happens in milliseconds of routing overhead — and every step is driven by live telemetry, not static provider lists.
Receive the request on the OpenAI-compatible endpoint
Resolve the requested model or model class from the catalog
Load the routing policy for the API key (price, latency or quality)
Score candidate providers on live latency, error-rate and price telemetry
Apply per-request overrides and cost ceilings
Select the winning provider and arm the fallback chain
Stream the response back in the unified schema
Meter tokens and price the request in credits
Feed the outcome back into provider scores for the next request
See Smart Routing on your own traffic
Point your existing OpenAI SDK at our base URL and try it in minutes — or book a demo to plan a production rollout.