Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
OpenAI-compatible HTTP API for the Dria Inference Network.
https://inference.dria.co
https://inference.dria.co/v1
POST
/v1/chat/completions
GET
/v1/models
/v1/credits/balance
/v1/credits/topup
/v1/channel
/v1/auth/wallet
Authorization: Bearer dkn_live_...
{ "id": "gen-abc123", "model": "qwen3.5:9b", "choices": [ { "message": { "content": "Hello! How can I help?" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 12, "completion_tokens": 8, "total_tokens": 20 }, "metadata": { "node_id": "node-xyz" } }
400
401
402
429
Retry-After
503
from openai import OpenAI client = OpenAI( api_key="dkn_live_...", base_url="https://inference.dria.co/v1", ) response = client.chat.completions.create( model="qwen3.5:9b", messages=[{"role": "user", "content": "hello"}], ) print(response.choices[0].message.content)
import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'dkn_live_...', baseURL: 'https://inference.dria.co/v1', }); const response = await client.chat.completions.create({ model: 'qwen3.5:9b', messages: [{ role: 'user', content: 'hello' }], }); console.log(response.choices[0].message.content);