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

Change the default router’s models in the dashboard, or make a new router and use its rtr_... endpoint. Add your own API keys or custom models 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