model: "dari/routing".
The response uses the standard chat completions shape and includes a dari_routing object that shows which model was selected and why.
How It Works
- Create A Router and choose the models it can serve.
- Import Evals when you want benchmark scorecards to inform model selection.
- Choose Provider Key Sources for the providers represented by those models. Use Dari-managed keys or bring your own provider keys.
- Create A Routing API Key with the
routingscope. - Send Chat Completions to
https://routing.dari.dev/{router_id}/chat/completionswithmodel: "dari/routing". - Read The Routing Result from
dari_routing.selected_modelin the response.
Core Concepts
Router
An organization-scoped endpoint with a stable
rtr_... ID and a configured model set.Enabled Models
The candidate models the router is allowed to choose from.
Provider Keys
Managed or encrypted BYOK OpenAI, Anthropic, and OpenRouter keys used after a model is selected.
Imported Evals
Structured benchmark scorecards the router can use as model-selection evidence.
Routing Instructions
Per-request guidance that helps the router choose between enabled models.