Skip to main content

Create a model route

POST 

/api/v1/model-routes

Creates a project-scoped model route: a named, ordered list of provider+model targets tried in array order. Every target must reference an AI provider in the same project (400 otherwise), and the total attempt budget — the sum of 1 + max_retries over all targets — may not exceed 10 (400 naming the computed total). A duplicate name in the project is rejected with 409.

Request

Responses

Model route created successfully