Skip to content
This page was translated from the Chinese original, which has changed since — it may be out of date. The Chinese version is authoritative. View the Chinese original →
Live

Lurus API — Privately Deployed Multi-Tenant LLM Gateway

A multi-tenant LLM gateway deployed in the customer's own environment · Based on the open-source New API, AGPLv3

50+Models
100 calls/dayFree Tier
OpenAI SDKCompatibility

One API KeyAPI KeyA secret credential for accessing the API, much like a password. Each Key can have its own quota and permissions.Learn more → to access 50+ leading AI models. Fully compatible with the OpenAI SDKSDKA software development kit providing ready-made functions and classes to simplify API calls. The Lurus gateway uses the common Chat Completions interface format. — your existing code needs only a two-line change, no rewrite required.


Choose Your Path

Which kind of user are you?

Three entry points — pick the one that matches your background and start right away.

Already using OpenAI, want to switch / cut costs

Migrate by replacing two lines of code — all OpenAI SDK features are fully compatible:

python
# 改这两行,其余代码不动
base_url="https://hub.lurus.cn/v1"
api_key="sk-your-lurus-key"

Core Capabilities

One gateway, four jobs

Unified access, intelligent routing, cost control, and enterprise-grade access management.

Unified API

One interface covers every model — just change the model name, no need to write an adapter for each provider.

Intelligent Routing & Automatic Failover

Multi-channel backup (automatically switches when the primary channel fails), weighted load balancing (proportional traffic split to balance cost and speed), and priority policies (low-cost channels first, switching to higher-cost backups when limits are exceeded).

Fine-grained Cost Control

Set a Token quota per API Key with over-limit blocking; review call counts, Tokens, and cost breakdowns by day/month; get alerts when remaining quota drops below 20%.

Enterprise-grade Access Management

Allocate multiple Keys per project, model allowlists, IP allowlists, and complete audit logs — every request records the model, Tokens, and latency.

Unified API example — switch providers by changing the model name:

python
from openai import OpenAI
client = OpenAI(base_url="https://hub.lurus.cn/v1", api_key="sk-your-api-key")
# model 可填 deepseek-chat / gpt-4o / claude-3-5-sonnet / gemini-3-pro-preview
response = client.chat.completions.create(model="deepseek-chat", messages=[{"role": "user", "content": "你好"}])

Enterprise-grade Access Management ​

FeatureDescription
Multi-Key managementAssign independent Keys to different projects/teams
Model allowlistRestrict a Key to specified models only
IP allowlistAllow calls only from specified IP ranges
Complete audit logsEvery request records the model, Tokens, and latency

Use Cases

Who uses Lurus API

ScenarioWhat you can do
AI application developmentUse the same code to access all providers, and quickly A/B test different models
Cost optimizationRoute everyday tasks to DeepSeek (low cost) and complex tasks to GPT-4o (high quality)
Service reliabilityMulti-channel redundancy — a single provider outage won’t affect your service
Team managementAllocate Keys + quotas, and review everyone’s AI usage and costs in one place
AI clientsProvide a unified backend for tools like Cherry Studio, Lobe Chat, and OpenCat

Architecture Overview

How a request flows

Lurus API Gateway Data Flow
graph LR; A[Your App / AI Client] --> B[Lurus API Gateway]; B --> C[Auth]; C --> D[Routing]; D --> E[Rate Limiting]; E --> F[Billing]; F --> G[Logging]; D --> H[OpenAI]; D --> I[Claude]; D --> J[Gemini]; D --> K[DeepSeek]

The gateway routes by the configured channel priority; when a provider returns an error it automatically retries the next one, and your code never sees the switch.


Recommended Learning Path

Run through the whole flow in 20 minutes

First time here? Follow the order.

  1. Get an API Key — sign up and create your first Key (3 minutes)

  2. Quickstart — make your first API request (5 minutes)

  3. Supported Models — learn which models are available and how to choose

  4. Chat Completions API — master the most commonly used endpoint

Advanced users, jump straight to…

Next Steps

Powered by Lurus Technologies