Skip to main content
A router is an organization-scoped endpoint with a stable rtr_... ID. It contains a name, an enabled model list, optional imported eval scorecards, and a provider key source for each provider represented by those models.

Create From The Dashboard

Open the Dari dashboard, go to Routers, and choose Create Router. Name the router, select the models it may use, optionally import eval scorecards, and choose Dari-managed or BYOK for every enabled provider. If you choose BYOK, enter that provider’s API key. After creation, copy the router endpoint from the router detail page:
https://routing.dari.dev/rtr_123/chat/completions

Required Setup

A production router needs three pieces of configuration:
SettingDetails
NameA human-readable name, such as Production Router.
ModelsThe model IDs the router may select, such as openai/gpt-5.5 or anthropic/claude-sonnet-4-6.
EvalsOptional benchmark scorecards imported from Evals. At request time, the router uses score rows whose model_id matches enabled models as structured selection evidence.
Provider KeysA key source for every provider represented by the enabled model list. Choose Dari-managed keys or store your own encrypted provider keys.

Send Traffic

Use a routing API key, not a platform-only key, when sending requests to the router endpoint.
curl https://routing.dari.dev/rtr_123/chat/completions \
  -H "Authorization: Bearer $DARI_ROUTING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dari/routing",
    "messages": [{"role": "user", "content": "Write a launch checklist."}]
  }'
See API Keys for key scopes and Router API Reference for the traffic endpoint.