Now live · AWS Singapore · ap-southeast-1

One Key
All LLMs
Zero Friction

The intelligent AI token routing platform for Asia. Switch providers in two lines of code — with real-time billing, automatic failover, and 99.9% uptime.

Get free API key Read the docs
OpenAI SDK compatible
quickstart.py Python
# Switch from OpenAI to Nex in 2 lines
from openai import OpenAI

client = OpenAI(
    api_key = "nex_live_your_key",
    base_url = "https://api.nextoken.biz/v1"  # ← only change
)

response = client.chat.completions.create(
    model = "gpt-4o",  # or claude-sonnet-4, gemini-2-5-flash…
    messages = [{"role": "user", "content": "Hello"}]
)

# response.nex.provider → "openai"
# response.nex.cost_usd → "$0.000285"

Routing to the world's leading AI providers

OpenAI · GPT-4o
Anthropic · Claude Sonnet 4
Google · Gemini 2.5
Mistral Large
Cohere · Command R+
Meta · Llama 3.3
OpenAI · o3-mini
Claude Opus 4
Codestral
GPT-4o Mini
OpenAI · GPT-4o
Anthropic · Claude Sonnet 4
Google · Gemini 2.5
Mistral Large
Cohere · Command R+
Meta · Llama 3.3
OpenAI · o3-mini
Claude Opus 4
Codestral
GPT-4o Mini
Platform capabilities

Everything you need.

Intelligent Routing
Four-dimension scoring across cost, latency, availability, and capability. Optimal provider for every request.
4-dim
weighted scoring
🔄
Automatic Failover
Circuit-breaker pattern on every provider. Transparent fallback in milliseconds when a provider degrades.
99.9%
platform uptime SLA
💰
Real-Time Billing
Pre-funded credit wallet depleted per request. Hard-stop at zero. Per-key budget caps for cost control.
<1s
billing event latency
🔑
API Key Hierarchy
Scoped sub-keys for reseller products. Rate limits, model allowlists, and budgets at the key level.
2-level
parent → sub-key depth
🛡️
Enterprise Security
SHA-256 key hashing, TLS 1.3, five KMS keys, immutable audit trail, content screening. PDPA compliant.
AES-256
encryption everywhere
🇸🇬
Singapore Native
All data in AWS ap-southeast-1. PDPA compliant. IRAS GST registered. Data sovereignty guaranteed.
<20ms
P99 from Singapore
How routing works

Every request.
Scored in real-time.

Nex evaluates every eligible provider across four weighted dimensions, then selects the optimal provider — with automatic fallback on failure.

01
Key validated in <5ms
SHA-256 lookup in Redis (300s TTL). PostgreSQL fallback on miss. Auth + rate limit check.
L1: Redis · L2: DB
02
Provider scored atomically
Four-dimension composite score. Circuit-open providers excluded. Top-tier load-balanced.
<20ms P99
03
Request proxied with streaming
SSE transparently forwarded. Token count from provider usage field; tiktoken fallback if needed.
Up to 3 fallback attempts
04
Billing event published async
SQS FIFO per key_id. Idempotent. Wallet deducted in ~1s. Hard-stop at zero balance.
Fire-and-forget · no latency added
Live routing decision · gpt-4o · balanced
openai_primary
0.87
✓ selected
openai_backup
0.79
fallback
azure_openai
0.73
fallback
anthropic_sg
0.28
⊘ open
COST
×0.40
LATENCY
×0.30
AVAIL
×0.20
CAPAB
×0.10
Decision time
14ms
# Override routing strategy per-request
nex_strategy = "cost_first"  # save ~40%
nex_strategy = "speed_first" # min latency
nex_strategy = "model_lock"  # compliance
6+
LLM Providers
99.9%
Uptime SLA
<5ms
Auth + Rate Limit P99
0
Code Changes to Migrate
Simple pricing

Pay only for what you use.

Subscription fee + usage credits. No seat fees. Free to start.

Developer
Free
$5 one-time credit · no card needed
100 RPM / key
  • 3 API keys
  • All models
  • Standard routing
  • Basic analytics
  • Community support
Get started free
Most popular
Pro
$29/mo
$500 monthly credit included
1,000 RPM / key
  • 20 API keys
  • Smart routing + fallback
  • Full analytics
  • Per-key budgets
  • Email support <48h
Start Pro
Business
$149/mo
$2,500 monthly credit included
10,000 RPM / key
  • Unlimited API keys
  • Custom routing rules
  • 99.9% uptime SLA
  • Sub-key management
  • Priority support <8h
Start Business
Enterprise
Custom
negotiated pricing
Custom RPM
  • Unlimited keys
  • Dedicated routing cluster
  • 99.99% SLA + contract
  • Account manager
  • Dedicated Slack <2h
Talk to us

All prices USD · Additional usage billed at cost+markup · Singapore users: +9% GST · See full pricing →

Security & compliance

Built for
regulated industries.

Enterprise-grade security from day one. Your data never leaves Singapore. PDPA compliant, IRAS registered, SOC 2 in progress.

TLS 1.3 everywhere AES-256 + KMS CMK 90-day key rotation CloudTrail 7yr audit Zero-trust network SHA-256 key hashing
🇸🇬
PDPA Compliant
All personal data processed under Singapore's PDPA.
Active
🏛️
IRAS Registered
GST-registered. Proper tax invoices for SG customers.
Active
🔒
SOC 2 Type II
Compliance audit in progress. Target cert within 12 months.
In progress
🏦
MAS Aligned
Aligned with MAS digital payment service requirements.
Compliant

Start routing smarter
in under 5 minutes.

Free to start. No credit card required. Migrate from OpenAI in two lines of code.

Get your free API key → Read the docs