Private Local AI + OpenAI & Anthropic Compatible

Locked-Down AI API Gateway with Exact Micro-USD Billing

Run private local models on isolated hardware with drop-in OpenAI and Anthropic endpoints, atomic credit reservations, and full bilingual control.

LOPI — Locked API White & Orange · #FFFFFF / #EA580C / #F97316

Why LOPI — Locked API

Isolated Private Inference

Local AI models run inside a dedicated firewall-locked KVM node with zero external data leakage.

Atomic Micro-USD Ledger

Every request uses two-phase hold and settlement arithmetic with an immutable append-only audit trail.

OpenAI & Anthropic Drop-In

Use /v1/chat/completions and /v1/messages with streaming SSE and standard SDKs.

4-Role Governance & Resellers

Strict server-side RBAC for User, Reseller, Admin, and Superadmin with tenant isolation.

How It Works

1. Register, verify your email, and activate a plan or top-up credits.

2. Generate a one-time sk-lopi API key with optional spend and rate limits.

3. Call /v1/chat/completions or /v1/messages and track real-time usage and ledger entries.

Available Models

Live active models currently served by the LOPI gateway

qwen2.5-coder:1.5b

SSE Streaming

Turbo RAM-resident Qwen 2.5 Coder 1.5B (~20 tok/s instant response, zero swap).

Context: 32,768 tokens

In: $0.05 / Out: $0.15 per 1M

deepseek-r1:1.5b

SSE Streaming

Turbo RAM-resident DeepSeek R1 1.5B reasoning model (fast chain-of-thought, zero swap).

Context: 32,768 tokens

In: $0.08 / Out: $0.24 per 1M

qwen2.5-coder:7b

SSE Streaming

Private local Qwen 2.5 Coder 7B optimized for code generation and structured API responses.

Context: 32,768 tokens

In: $0.10 / Out: $0.30 per 1M

deepseek-r1:8b

SSE Streaming

Private local DeepSeek R1 8B reasoning model running inside isolated VM 107.

Context: 32,768 tokens

In: $0.15 / Out: $0.45 per 1M

Simple Subscription Plans

Predictable USD and IDR pricing configured directly in the platform catalog

Weekly

Weekly Starter

$4

Equivalent: IDR 64,000 · 7 days

Credits included: $4.00

Up to 30 RPM · 30000 TPM

Select Plan
Monthly

Monthly Pro

$10

Equivalent: IDR 160,000 · 30 days

Credits included: $10.00

Up to 60 RPM · 60000 TPM

Select Plan
Yearly

Yearly Scale

$100

Equivalent: IDR 1,600,000 · 365 days

Credits included: $100.00

Up to 120 RPM · 120000 TPM

Select Plan

API Compatibility Examples

OpenAI Chat Completions

curl -X POST https://lopi-app.rudd-catla.ts.net/v1/chat/completions \
  -H "Authorization: Bearer sk-lopi-demo" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen2.5-coder:7b","stream":true,"messages":[{"role":"user","content":"Hello"}]}'

Anthropic Messages API

curl -X POST https://lopi-app.rudd-catla.ts.net/v1/messages \
  -H "x-api-key: sk-lopi-demo" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-r1:8b","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

Frequently Asked Questions

What happens if an upstream AI call fails mid-stream?

Unused reserved credit holds are automatically released back to your available balance without double-charging.

Can I switch between English and Bahasa Indonesia?

Yes, every page and API error supports full English and Bahasa Indonesia localization.

Can I set spend limits and allowed models per API key?

Yes. Each sk-lopi key supports optional spend caps, per-key RPM/TPM rate limits, expiration dates, and model allowlists.

How are local models isolated from public networks?

Local inference runs exclusively on an isolated KVM node protected by strict UFW firewall rules accessible only from the application gateway.