Skip to Content

Inference

LLM chat via OpenAI-compatible and Ollama-compatible endpoints.

Endpoints

MethodPathFormat
POST/v1/chat/completionsOpenAI-compatible
POST/api/chatOllama-compatible

Models

Check the dashboard  playground for currently available models. Example: qwen3:1.7b.

Streaming

EndpointNon-streamingStreaming
/v1/chat/completionsJSONSSE (text/event-stream), ends with data: [DONE]
/api/chatJSONNDJSON (application/x-ndjson), one JSON object per line

Built-in tools (datai.tools)

Both endpoints accept a dat.ai-specific extension (not part of OpenAI/Ollama specs):

{ "datai": { "tools": { "net": true, "fs": true }, "tps": "fast" } }
FieldDescription
datai.tools.netEnable HTTP/network tools on the node
datai.tools.fsEnable filesystem tools on the node
datai.tpsThroughput preset: fast (default), med, or slow

Rules:

  • Tools cannot be used with streaming — stream: true + datai.tools returns 400
  • HTTP wait timeout is capped at 180 seconds