Hosted in Production: Vercel UI + Render Core + Neon Postgres + Redis

The Enterprise AI Gateway Engineered for Resilient Sellers

Sell unified AI API access with strict free/paid provider pool isolation, token-level unit economics, two-phase credit reservations, and drop-in OpenAI SDK compatibility.

openai-sdk-dropin.py
OpenAI Drop-In
from openai import OpenAI

client = OpenAI(
    api_key="gh_live_your_customer_key",
    base_url="https://api.nullhost.tech/v1"
)

# Seamless routing across OpenAI & Gemini with automatic error failover
response = client.chat.completions.create(
    model="fast",
    messages=[{"role": "user", "content": "Explain quantum cryptography."}]
)

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

Enterprise Architecture & Bot Protection

Engineered with strict security boundaries, distributed state, and automated verification.

Free / Paid Pool Isolation

Independent upstream credential pools prevent free users from touching paid provider quotas. Paid users are guaranteed never to be downgraded.

Automatic Error Failover

Dynamically cascades requests on HTTP 401, 403, 429, timeouts, and network outages across providers down to safe terminal mock fallbacks. Zero 500 errors.

Unit Economics & Reservations

Two-phase pre-flight balance holds eliminate concurrent request overdrafts. Calculates COGS vs. customer selling price and net profit margin per request.

Idempotency & Safe Replays

Detects in-flight duplicate requests (HTTP 409) and safely replays completed responses with $0.00 duplicate charges via Idempotency-Key.

Clerk Auth & Turnstile Protection

Seamless user identity managed via Clerk, while Cloudflare Turnstile blocks automated bots from scraping or minting API keys.

Redis & Neon Database

High-performance distributed rate limiting powered by Redis, backed by serverless Neon Postgres with Drizzle ORM double-entry accounting ledger.

Live Model Catalog & Transparent Pricing

Billed per million tokens with transparent input and output rates.

Model IDUpstream TargetPoolContextInput / 1MOutput / 1MStatus
fastOpenAI + Gemini FallbackDual (Free / Paid)128k$0.15$0.60Operational
gemini-fastGoogle Vertex / GeminiDual1M$0.10$0.40Operational
gpt-4o-enterpriseOpenAI Tier 5Paid Only128k$2.50$10.00Operational
free-curatedGemini Free / MockFree Pool32k$0.00$0.00Operational
autoLowest Latency Multi-TargetDual128k$0.15$0.60Operational