Skip to content

Developers

Private models behind the API you already know.

Use the official OpenAI SDKs against private open-weight models. One base URL, one API key, one model name — and your existing request code keeps working for supported patterns.

Integration at a glance

OpenAI SDK
1
Base URL
https://api.lirux.ai/v1
2
API key
LIRUX_API_KEY=sk-…
3
Model
qwen3-30b-a3b

Everything else — messages, streaming, response parsing — stays as it is.

First request

Three lines of configuration.

Point the client at your endpoint, read the key from the environment, choose a model. That is the integration.

  • Works with the official openai packages for Python and Node.js
  • Chat, embeddings and transcription through the standard SDK methods
  • Server-sent event streaming
  • Errors in the OpenAI format, so existing handling keeps working
from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.lirux.ai/v1",
    api_key=os.environ["LIRUX_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen3-30b-a3b",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Summarise our Q3 support tickets."},
    ],
)

print(response.choices[0].message.content)

Request path

Your code calls an API. We run everything behind it.

Runtime, quantization, gateway, authentication, rate limits and monitoring are managed for you — on shared capacity or on your own dedicated node.

  1. Your application
  2. OpenAI-compatible API
  3. Private AI infrastructure
  4. Open-weight model
  5. Response

SDK compatibility

No proprietary SDK.

OpenAI-compatible endpoints for supported API patterns. If a tool lets you set an OpenAI base URL, it can usually talk to your endpoint.

  • OpenAI Python SDK

    openai

    Set base_url and api_key on the client.

  • OpenAI Node.js SDK

    openai

    Set baseURL and apiKey on the client.

  • Any HTTP client

    curl · requests · fetch

    Plain JSON over HTTPS with a Bearer token.

  • Frameworks with a custom base URL

    e.g. LangChain, LlamaIndex, Vercel AI SDK

    Generally work through their OpenAI-compatible provider options. Check the features you use against the compatibility matrix.

Migrate from OpenAI

Move compatible workloads without a rewrite.

Change the base URL, the key and the model name. Then evaluate prompt behaviour, tool calling and context length on the open model before you switch production traffic.

before.py
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["OPENAI_API_KEY"],
)

client.chat.completions.create(
    model="gpt-4o-mini",
    messages=messages,
)
after.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.lirux.ai/v1",
    api_key=os.environ["LIRUX_API_KEY"],
)

client.chat.completions.create(
    model="qwen3-30b-a3b",
    messages=messages,
)

Get an endpoint for your workload.

Tell us which models and endpoints you need. We deploy, configure and hand over a working API key.