Routing policies
Write cost, latency and quality rules in YAML.
One API key, one endpoint, and an SDK for the languages your developers already use.
Open the console, create a workspace key and store it as TORELLINE_KEY.
Call /v1/route with a policy name. The default policy balances cost and latency.
Every call returns a trace ID. Open it to see the model, cost, latency and eval scores.
curl https://api.torelline.example/v1/route \
-H "Authorization: Bearer $TORELLINE_KEY" \
-d '{"policy":"default","input":"Summarise this ticket"}'from torelline import Torelline
client = Torelline(api_key=os.environ["TORELLINE_KEY"])
res = client.route(policy="default", input="Summarise this ticket")
print(res.model, res.output)import { Torelline } from "@torelline/sdk"
const client = Torelline.connect({ apiKey: process.env.TORELLINE_KEY })
const res = await client.route({ policy: "default", input: "Summarise this ticket" })
console.log(res.model, res.output)Write cost, latency and quality rules in YAML.
Build golden sets and graders that gate releases.
Strip sensitive fields before a prompt leaves your network.
Set caps per team and get alerts before they hit.
Use your existing provider contracts through Torelline.
Register a model running on your own cluster.
/v1/routeRoute a request through a policy and return the output./v1/traces/{id}Fetch the full trace for a call./v1/evals/runRun an eval suite against a model or policy./v1/policiesList routing policies in a workspace./v1/policies/{name}Create or update a routing policy./v1/usageRead usage and spend for the current period.Latency policies can now use rolling 1, 5 or 15 minute windows.
Run a candidate model on live traffic without serving its output.
Bundle redaction and routing rules and apply them per workspace.
One API key, one endpoint, and an SDK for the languages your developers already use.
Open the console, create a workspace key and store it as TORELLINE_KEY.
Call /v1/route with a policy name. The default policy balances cost and latency.
Every call returns a trace ID. Open it to see the model, cost, latency and eval scores.
curl https://api.torelline.example/v1/route \
-H "Authorization: Bearer $TORELLINE_KEY" \
-d '{"policy":"default","input":"Summarise this ticket"}'from torelline import Torelline
client = Torelline(api_key=os.environ["TORELLINE_KEY"])
res = client.route(policy="default", input="Summarise this ticket")
print(res.model, res.output)import { Torelline } from "@torelline/sdk"
const client = Torelline.connect({ apiKey: process.env.TORELLINE_KEY })
const res = await client.route({ policy: "default", input: "Summarise this ticket" })
console.log(res.model, res.output)Write cost, latency and quality rules in YAML.
Build golden sets and graders that gate releases.
Strip sensitive fields before a prompt leaves your network.
Set caps per team and get alerts before they hit.
Use your existing provider contracts through Torelline.
Register a model running on your own cluster.
/v1/routeRoute a request through a policy and return the output./v1/traces/{id}Fetch the full trace for a call./v1/evals/runRun an eval suite against a model or policy./v1/policiesList routing policies in a workspace./v1/policies/{name}Create or update a routing policy./v1/usageRead usage and spend for the current period.Latency policies can now use rolling 1, 5 or 15 minute windows.
Run a candidate model on live traffic without serving its output.
Bundle redaction and routing rules and apply them per workspace.
One API key, one endpoint, and an SDK for the languages your developers already use.
Open the console, create a workspace key and store it as TORELLINE_KEY.
Call /v1/route with a policy name. The default policy balances cost and latency.
Every call returns a trace ID. Open it to see the model, cost, latency and eval scores.
curl https://api.torelline.example/v1/route \
-H "Authorization: Bearer $TORELLINE_KEY" \
-d '{"policy":"default","input":"Summarise this ticket"}'from torelline import Torelline
client = Torelline(api_key=os.environ["TORELLINE_KEY"])
res = client.route(policy="default", input="Summarise this ticket")
print(res.model, res.output)import { Torelline } from "@torelline/sdk"
const client = Torelline.connect({ apiKey: process.env.TORELLINE_KEY })
const res = await client.route({ policy: "default", input: "Summarise this ticket" })
console.log(res.model, res.output)Write cost, latency and quality rules in YAML.
Build golden sets and graders that gate releases.
Strip sensitive fields before a prompt leaves your network.
Set caps per team and get alerts before they hit.
Use your existing provider contracts through Torelline.
Register a model running on your own cluster.
/v1/routeRoute a request through a policy and return the output./v1/traces/{id}Fetch the full trace for a call./v1/evals/runRun an eval suite against a model or policy./v1/policiesList routing policies in a workspace./v1/policies/{name}Create or update a routing policy./v1/usageRead usage and spend for the current period.Latency policies can now use rolling 1, 5 or 15 minute windows.
Run a candidate model on live traffic without serving its output.
Bundle redaction and routing rules and apply them per workspace.