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
- 201
- 400
- 401
- 403
- 409
- 500
Model route created successfully
Bad request (invalid targets, attempt cap exceeded, unknown provider)
Unauthorized
Forbidden
A model route with this name already exists in the project
Internal server error