omnarc docs
Sign in Download
Docs / Developers / Examples

Examples

The clients you already use, pointed at your own device.

For developers3 min readUpdated 8 Nov 2026

curl

curl http://127.0.0.1:7600/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "omnarc", "messages": [{"role": "user", "content": "Hello"}]}'

Python, the OpenAI library

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:7600/v1", api_key="not-needed-on-this-device")
answer = client.chat.completions.create(
    model="omnarc",
    messages=[{"role": "user", "content": "Explain this contract in three lines."}],
)
print(answer.choices[0].message.content)

Python, the Anthropic library

import anthropic

client = anthropic.Anthropic(base_url="http://127.0.0.1:7600", api_key="not-needed-on-this-device")
message = client.messages.create(
    model="omnarc", max_tokens=512,
    messages=[{"role": "user", "content": "Write a short welcome note."}],
)
print(message.content[0].text)

Ollama’s API

curl http://127.0.0.1:7600/api/chat \
  -d '{"model": "omnarc", "messages": [{"role": "user", "content": "Hello"}], "stream": false}'

Libraries made for Ollama work the same way with their host set to http://127.0.0.1:7600.

From another device of the cluster, use that device’s address and a key.

© 2026 Omnarc All systems normal