AI ROUTER

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.

Get a router keyBrowse model tiers
// POST /v1/chat/completions
{
  "model": "mplink/auto",
  "messages": [
    { "role": "user", "content": "Summarize this ticket" }
  ]
}

// response header
x-mplink-routed-to: fast-tier

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.

Your app

Sends one request to one endpoint.

→
MPLink AI Router

Applies your routing policy, retries, and logs the call.

→
Model providers

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.

mplink/auto

Picks a tier for each request based on prompt size and your policy.

mplink/best

The most capable models for hard reasoning and long documents.

mplink/fast

Low-latency models for chat, autocomplete, and classification.

mplink/cheap

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

Automatic fallback

If a provider times out or errors, the router retries on the next model in your list.

Usage and cost logs

See tokens, latency, and spend per key, per model, and per day.

Budgets and rate limits

Cap spend and requests per key so one runaway script cannot drain your account.

Streaming and tools

Streaming responses, function calling, and JSON mode pass through unchanged.

Response caching

Identical requests return a cached answer and skip the model call.

One account, one bill

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
MPLink  ›  Developers  ›  AI router
MPLINK
Log in Cart
Link-AI

Your 24/7 AI guide for hosting, domain setup, plan picking, and website building.

Hi there! I'm Link-AI, your MPLink assistant. Ask me about hosting, domains, email, websites or logos.
Choose your country and language

No matches. Try a different search.