Skip to main content
Use /v1 for your default router. For a specific router, send the same body to https://routing.dari.dev/{router_id}/chat/completions. The response follows the OpenAI Chat Completions format and adds dari_routing, which identifies the selected model and reasoning effort.

Streaming

Set stream: true. Dari returns Server-Sent Events in the OpenAI stream format, with dari_routing in the first event and data: [DONE] at the end.

Tool Calls

Send standard OpenAI tools and tool_choice fields. If the selected model calls a tool, append the result as a tool message and send the complete message history again. See the Chat Completions API Reference for supported fields.