> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dari.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Router Quickstart

> Send your first request through Dari's default model router.

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](https://app.dari.dev) and create a **Routing** key.

```bash theme={null}
export DARI_ROUTING_API_KEY="dari_..."
```

## 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.

```bash theme={null}
curl "https://routing.dari.dev/v1/chat/completions" \
  -H "Authorization: Bearer $DARI_ROUTING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dari/routing",
    "messages": [
      {"role": "user", "content": "Hello from Dari"}
    ]
  }'
```

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](/router/create-a-router) with different models and set it as the new default for `/v1`, or use its `rtr_...` endpoint directly. Add [Custom Models](/router/configure-models#custom-models) or [Custom Provider Keys](/router/configure-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](/router/configure-provider-keys).

## Next Steps

* [Chat Completions API](/router/send-chat-completions)
* [OpenAI Responses API](/router/send-responses)
* [Anthropic Messages API](/router/send-anthropic-messages)
* [Use Claude Code](/router/coding-agents/claude-code)
* [Use Codex](/router/coding-agents/codex)
* [Use Pi](/router/coding-agents/pi)
* [Create A Router](/router/create-a-router)
