One API for every LLM
Send every model request to a single endpoint. The router picks the model, retries on failure, and puts all usage on one bill.
Quick start
The router speaks the OpenAI chat format, so most SDKs only need a new base URL and key.
curl https://router.mplinktech.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_ROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mplink/auto",
"messages": [{"role": "user", "content": "Hello"}]
}'How routing works
You decide what matters. The router handles the rest.
Sends one request to one endpoint.
Applies your routing policy, retries, and logs the call.
Frontier, fast, and open-weight models.
Model tiers
Ask for a tier instead of a specific model. Pin an exact model whenever you need to.
Picks a tier for each request based on prompt size and your policy.
The most capable models for hard reasoning and long documents.
Low-latency models for chat, autocomplete, and classification.
The lowest cost per token for bulk and background jobs.
Routing policy
Set fallbacks, budgets, and caching per key. Changes apply to the next request.
{
"key": "support-bot",
"route": "mplink/auto",
"fallback": ["mplink/fast", "mplink/cheap"],
"max_latency_ms": 4000,
"monthly_budget_usd": 200,
"cache": { "enabled": true, "ttl_seconds": 3600 }
}What you get
If a provider times out or errors, the router retries on the next model in your list.
See tokens, latency, and spend per key, per model, and per day.
Cap spend and requests per key so one runaway script cannot drain your account.
Streaming responses, function calling, and JSON mode pass through unchanged.
Identical requests return a cached answer and skip the model call.
Provider usage is billed on your MPLink account instead of one invoice per vendor.
Route your first request
Create a router key from your MPLink account and change one base URL.
Get a router key