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.
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 ID | Upstream Target | Pool | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|---|
| fast | OpenAI + Gemini Fallback | Dual (Free / Paid) | 128k | $0.15 | $0.60 | Operational |
| gemini-fast | Google Vertex / Gemini | Dual | 1M | $0.10 | $0.40 | Operational |
| gpt-4o-enterprise | OpenAI Tier 5 | Paid Only | 128k | $2.50 | $10.00 | Operational |
| free-curated | Gemini Free / Mock | Free Pool | 32k | $0.00 | $0.00 | Operational |
| auto | Lowest Latency Multi-Target | Dual | 128k | $0.15 | $0.60 | Operational |