Model routes let you decouple your application code from specific provider SKUs. Declare a logical name (e.g.Documentation Index
Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
fast-summariser) once in TruLayer, point it at a primary and fallback model, and swap providers without redeploying.
CRUD endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /v1/model-routes | List routes for the tenant (paginated via cursor). |
POST | /v1/model-routes | Create a route. |
PATCH | /v1/model-routes/{id} | Partial update. |
DELETE | /v1/model-routes/{id} | Remove a route. |
tl_...).
Create a route
201 Created):
Update a route
Disable temporarily
Setenabled: 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
- Control loop — dashboard view of active routes and recent failovers.
- API reference — model-routes