Enterprise AI API Gateway · PHP · OpenAI-Compatible

One API.
Every AI Model.

NexusAI aggregates Together AI, Runware, Groq, OpenRouter and more behind a single OpenAI-compatible API. Drop-in replacement. Zero code changes.

Start Free — 1M tokens/mo View Docs
# Just change base_url and API key — everything else stays the same
from openai import OpenAI
client = OpenAI(
    base_url="https://api.nexusai.com/v1",
    api_key="nxs_live_..."
)
6+
AI Providers
100+
AI Models
1,000+
Developers

Everything you need
to ship AI-powered products

Smart Load Balancing
Auto-routes to the fastest, cheapest provider. Circuit breaker, retries, and failover built-in.
Cent-Level Billing
Per-token, per-image, per-second billing. Full ledger, invoices, and profit margin tracking.
OpenAI-Compatible
Drop-in replacement. Works with any OpenAI SDK, Langchain, LlamaIndex, and more.
Real-Time Analytics
Monitor usage, latency, costs and model performance with live dashboards.
Enterprise Security
AES-256 credential storage, SHA-256 API keys, CSRF protection, audit logs.
Iran-Ready
ZarinPal payments, IRR/Toman currency, Farsi RTL UI, Kavenegar SMS support.
SSE Streaming
Full Server-Sent Events streaming for all text generation endpoints.
Pluggable Providers
Add any OpenAI-compatible provider with one file and one DB row.
Multi-Currency
USD, EUR, GBP, IRR with live exchange rates and custom IRR override.