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

# OpenAI Responses API

> Send OpenAI Responses requests through a router.

```bash theme={null}
curl "https://routing.dari.dev/v1/responses" \
  -H "Authorization: Bearer $DARI_ROUTING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dari/routing",
    "input": "Hello from Dari"
  }'
```

Use `/v1` for your default router. For a specific router, send the same body to `https://routing.dari.dev/{router_id}/v1/responses`.

The response follows the OpenAI Responses format and adds `dari_routing`, which identifies the selected model and reasoning effort.

## Streaming And Tools

Set `stream: true` for HTTP streaming. Function, custom, and namespace tools use the standard Responses request shape. WebSockets and `previous_response_id` are not supported; resend the complete input history on each turn.

See the [Responses API Reference](/api-reference/router/responses) for supported fields.
