Skip to main content
Model routes let you decouple your application code from specific provider SKUs. Declare a logical name (e.g. fast-summariser) once in TruLayer, point it at a primary and fallback model, and swap providers without redeploying.

CRUD endpoints

All endpoints require a bearer API key (tl_...).

Create a route

Response (201 Created):

Update a route

Disable temporarily

Set enabled: false via PATCH to short-circuit a route without deleting its history. Handy during incidents when you want to force all callers onto the fallback.

See also