Skip to main content
Send your first routed request with a Routing API key. You do not need to create or configure a router first.

1. Create A Routing Key

Open API Keys in the Dari Dashboard and create a Routing key.

2. Send A Request

The default /v1 router uses Dari-managed provider credentials. Its model set is managed by Dari and may change over time.
The response appears in your terminal. Its dari_routing.selected_model field shows which model handled the request.

Use Different Or Custom Models

The default router’s model set can be edited in the dashboard. You can also Create A Router with different models and set it as the new default for /v1, or use its rtr_... endpoint directly. Add Custom Models or Custom Provider Keys to any router.

If The Request Fails

A 401 usually means the Routing key is invalid. For a specific router, it can also mean the key and router belong to different organizations. For other router errors, verify the copied endpoint and Provider Key Setup.

Next Steps