Skip to main content
A router is a model name that picks a deployment per request: cheap models for easy prompts and strong ones for hard prompts, a 90/10 canary split, or a cascade that escalates when the first answer is uncertain.
Routers are listed with their status, number of steps and whether they are published.

Routers are listed with their status, number of steps and whether they are published.

Auto or custom?

Create a router

Who: someone who can manage routers for the project Where: Router → + Router
  1. Choose Auto or Custom. Click Next.
  2. Enter the name and description, then Next.
  3. Select Project. For Auto, click Next, select the models and click Create Router; it is ready immediately and you can View Routers. For Custom, click Create Draft; you design the graph next.
On a router card, the ⋮ menu has Edit (name and description, or for an Auto router also Change models then Save Models), Publish or Publish Details, and Delete.

Publish and call a router

Who: someone with Manage permission on the project Where: Router card → ⋮ → Publish
  1. From the router card’s menu, choose Publish. The drawer lists the deployments the router will expose (“Customers will be able to reach these deployments through this router. They stay unreachable by name”).
  2. Enter its Token Pricing: Input cost (USD), Output cost (USD) and Cost per. Customers are billed at this rate for every request the router serves, whichever deployment it picks, and the models behind it need not be published themselves.
  3. Click Publish.
  4. Call it like any model, with the router’s name as model. The project’s Routers tab has Use this router snippets in Curl, Python and JavaScript.
Publishing is blocked until the router is ready. The menu shows “Activate the router before publishing” for a draft, and “Not synced to the gateway yet” (or the sync error) until the gateway has the router. Save a custom router to activate it. A published router is withdrawn automatically if its deployments disappear, if it fails to sync, or if it is deactivated or deleted; Publish Details says which. Use Publish Details to change the price or Unpublish.