Test a saved BYOM record
Test a saved BYOM record. Defaults to the stored base_url / upstream_model_id / encrypted api_key, but any of those can be overridden via the request body so the UI can test in-flight edits before saving. Used by the 'Test connection' button in edit mode.
Personal access token scope: models:write.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
model_id*stringSuccess
curl -X POST 'http://localhost:7091/api/user/models/string/test'POST /api/user/models/test POST
Test an arbitrary BYOM payload (display_name / model id / base_url / api_key) without saving. Used by the UI's 'Test connection' button so the user can validate before they Save. Uses the selected API protocol with the same SSRF guard and 5s timeout as the by-id variant. [Personal access token](/API/personal-access-tokens) scope: `models:write`.
Register a new BYOM custom model POST
Register a new BYOM custom model. [Personal access token](/API/personal-access-tokens) scope: `models:write`.