> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorcost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Routing

> Move matching calls to a cheaper model once quality holds, starting on Watch and going live only when you choose.

**Authority › Routing** moves matching calls from the model your app asked for to a cheaper target: another API model, or a serving endpoint you run. It shows a status chip: live routing on, off or unconfirmed. The tab waits for an AI provider to be connected.

A route can match on environment, application, incoming model, provider, SDK key, tags and team. It can set floors on quality score, latency and savings percentage, and a rollout percentage.

## Create a route

The wizard has five steps, and nothing is created until you confirm the last one.

**1. Traffic**

Routes are default-deny. Only the traffic you describe can move. Pick an environment and an intent (the `x-tc-application` header). You can narrow to one SDK key, tags (every tag must be on `x-tc-tags`) and an incoming model.

**2. Model**

Pick the target model or serving endpoint.

**3. Quality bar**

A minimum quality score from 0 to 1 (blank means no floor), a maximum latency, a minimum savings percentage and a watch sample percentage.

**4. Ramp and safety**

The planned rollout percentage stays at 0 until you switch to Act.

**5. Review**

Finish to open the editor with the draft.

A new route is always on **Watch**. The proxy records what it would have done and passes the call through unchanged. Read those decisions in **Activity › Decisions** and **Proof › Replay**; see [Activity and Proof](https://docs.tensorcost.com/activity-and-proof.md).

## Go live

> [!NOTE]
>
> Going live is available on Scale and Enterprise, and only admins can do it. Finance can create, edit and delete routes while they're on Watch.

An admin switches a route to Act. The route must have:

* A narrow scope: a specific environment (not a wildcard), a specific incoming model, and at least one of application, SDK token, tags or provider.
* At least 30 Watch decisions. With a quality floor it also needs 30 judge samples. Bedrock and Vertex targets skip this proof, and the console says switching to Act is then your judgement.
* Admin consent.

A workspace can have at most three live routes. Rollout starts at 1 or 5 percent and ramps 1, 5, 25, 50, 100, upward only. To lower it, return the route to Watch.

Live traffic only moves when all of these are true:

1. Live routing is on for the workspace, turned on by an admin in the Access & plan section of **Settings**, on a plan that includes it.
2. Routing isn't paused. Admin or finance can pause it, and only an admin can resume it. A safety monitor can also pause it.
3. The published layer for the environment is `steer` or `route`. Publishing either needs an active content-retention grant. See [Control layers](https://docs.tensorcost.com/developers/control-layers.md).

## What happens on a request

If no route matches, the call passes through. If one matches, the proxy checks the pause, the rollout bucket and your floors; a floor with no data passes. If anything fails (an open circuit breaker, a lagging outbox, an unsupported translation, a target error, an unknown endpoint), the call goes to the original provider. You can't configure a fallback chain: the fallback is always the original provider.

A sequential test can flip a live route back to Watch by itself. It notifies by email and, if Slack is connected, in Slack.

## How quality is judged

A judge model scores the target's answer against the original's on correctness, helpfulness, format and safety, with safety as a hard gate, and maps the result to retained quality on a 0 to 1 scale. Developer plans have no platform-paid judging; Scale and Enterprise get monthly sample allowances, and you can bring your own judge on Scale and Enterprise. A per-route sample rate can only lower the plan's rate.

The latency floor uses the endpoint's last probe, not a p95.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.