SovrinOS exposes an OpenAI-compatible REST API on port 3000. Drop-in replacement for the OpenAI SDK — just change baseUrl. Your data never leaves your hardware.
http://<your-node-ip>:3000/v1
SOVRIN_API_KEY env var.// Before (OpenAI cloud) const client = new OpenAI({ apiKey: "sk-..." }); // After (SovrinOS — sovereign, on-premise) const client = new OpenAI({ baseURL: "http://192.168.1.100:3000/v1", apiKey: "sovrin-local", // any non-empty string });
/v1/chat/completions
OpenAI-compatible
Chat completion — streaming and non-streaming. Compatible with all OpenAI SDK versions.
{ "model": "gemma4:26b-a4b-it-q4_K_M", "messages": [{"role":"user","content":"Hello"}], "stream": true }
{ "id": "chatcmpl-...", "object": "chat.completion", "choices": [{ "message": { "role": "assistant", "content": "Hello! How can I help?" } }] }
/v1/completions
OpenAI-compatible
Legacy text completion endpoint. Compatible with older OpenAI integrations.
{ "model": "gemma4:26b-a4b-it-q4_K_M", "prompt": "Once upon a time", "max_tokens": 200 }
{ "choices": [{ "text": "...continued text..." }] }
/v1/embeddings
OpenAI-compatible
Generate embeddings via Qwen3-Embedding 0.6B. Use for RAG pipelines and semantic search.
{ "model": "qwen3-embedding:0.6b", "input": "Your text here" }
{ "data": [{ "embedding": [0.123, -0.456, ...], "index": 0 }] }
/v1/models
OpenAI-compatible
List all models currently loaded in VRAM on this node.
{ "data": [{ "id": "gemma-4-26b-a4b", "object": "model" }, ...] }
/sovrin/v1/models/activate
SovrinOS
Activate a model — load into VRAM from local cache or pull from CDN.
{ "model": "qwen3.8-27b" }
{ "status": "loading", "model": "qwen3.8-27b", "vram_estimate": "21 GB (estimate)", "cards": 1 }
/sovrin/v1/health
SovrinOS
Node health — VRAM usage, active models, GPU temperature, uptime.
{ "status": "ok", "vram_used": "18.4 GB", "vram_total": "24 GB", "models_active": ["gemma-4-26b-a4b"], "uptime_s": 86400 }
/sovrin/v1/audit
SovrinOS
Export BLAKE3-hashed audit trail for the last N requests. Used for Loi 25 / GDPR compliance reporting.
{ "records": [{ "ts": "2026-04-25T14:32:01Z", "model": "gemma-4-26b-a4b", "tokens_in": 142, "tokens_out": 87, "session_hash": "blake3:a7f3c9..." }] }
On a local network, no authentication is required. To enable an API key, set SOVRIN_API_KEY=your-secret in /etc/sovrin/node.env. Pass it as Authorization: Bearer your-secret in requests.
With your consent, we use Google Analytics to measure visits and remember a partner’s referral code for 14 days. Both stay off unless you accept. Privacy policy