Docs / Developers / The API
The API
Every device in a cluster serves the same API on its own port, shaped like OpenAI's, Anthropic's and Ollama's — so the code you have already works, with no internet and no charge.
For developers4 min readUpdated 8 Nov 2026
Where it is
On each device, at http://127.0.0.1:7600. Ask your own device and the whole cluster answers.
| Shape | Routes |
|---|---|
| OpenAI | GET /v1/models · POST /v1/chat/completions · POST /v1/completions |
| Anthropic | POST /v1/messages |
| Ollama | GET /api/version · GET /api/tags · POST /api/chat · POST /api/generate |
Tool calling works in all three shapes, on the cluster’s own model.
Keys
A request from the device itself needs no key. A request from another device must carry one, as either header:
Authorization: Bearer $OMNARC_KEY
x-api-key: $OMNARC_KEY
In an organization, each person’s own key works too, counted against their limit.
Which model
List what the cluster runs, and use one of the names it returns:
curl http://127.0.0.1:7600/v1/models
OpenAI shape
curl http://127.0.0.1:7600/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "MODEL", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:7600/v1", api_key="not-needed-on-this-device")
reply = client.chat.completions.create(
model="MODEL",
messages=[{"role": "user", "content": "Classify this ticket."}],
)
print(reply.choices[0].message.content)
Anthropic shape
curl http://127.0.0.1:7600/v1/messages \
-H "Content-Type: application/json" \
-d '{"model": "MODEL", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello"}]}'
Ollama shape
curl http://127.0.0.1:7600/api/chat \
-d '{"model": "MODEL", "messages": [{"role": "user", "content": "Hello"}]}'