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

## Next Steps

* [Chat Completions API](https://docs.dari.dev/router/send-chat-completions.md)
* [OpenAI Responses API](https://docs.dari.dev/router/send-responses.md)
* [Anthropic Messages API](https://docs.dari.dev/router/send-anthropic-messages.md)
* [Use Claude Code](https://docs.dari.dev/router/coding-agents/claude-code.md)
* [Use Codex](https://docs.dari.dev/router/coding-agents/codex.md)
* [Use OpenCode](https://docs.dari.dev/router/coding-agents/opencode.md)
* [Use Pi](https://docs.dari.dev/router/coding-agents/pi.md)
* [Use OpenClaw](https://docs.dari.dev/router/coding-agents/openclaw.md)
* [Use Hermes Agent](https://docs.dari.dev/router/coding-agents/hermes.md)
* [Create A Router](https://docs.dari.dev/router/create-a-router.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.