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

# Responses API

> Send a routed OpenAI Responses request

**Authorization** `string` *required*

`Bearer` plus a Routing API key.

**model** `string` *required*

`dari/routing`, or `dari/model/<model_id>` to pin one enabled model.

**input** `string | array` *required*

Text or Responses input items.

**instructions** `string`

System or developer instructions.

**stream** `boolean`

Stream Responses events.

**tools** `array`

Function, custom, or namespace tools.

**reasoning.effort** `string`

Require the selected model to use exactly `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`. Models that do not support that level are ineligible. Responses uses `none` where Chat Completions uses `off`.

**input\[].configuration\_update** `object`

On GPT-6 Responses models, change reasoning effort without changing the request-level `reasoning.effort`. The request-level effort is required when using configuration updates and must stay unchanged across turns. Use `{ "type": "configuration_update", "reasoning": { "effort": "high" } }` before the next user message. The latest update controls routing and provider execution. Preserve earlier updates when resending full input history.

**max\_output\_tokens** `number`

Maximum output tokens.

```bash cURL 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"
  }'
```

The response follows the OpenAI Responses shape. `dari_routing` adds `selected_model`, `reasoning_effort`, `reason`, and `conversation_id`.

The `/v1` endpoint uses your organization's default router. To address a specific router instead, send the same request to `https://routing.dari.dev/{router_id}/v1/responses`.

This endpoint uses HTTP, not WebSockets. `previous_response_id` is unsupported; resend the full input history.


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