POST /api/user/models/test
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 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).
Success
curl -X POST 'http://localhost:7091/api/user/models/test'Update a BYOM custom model (partial) PATCH
Update a BYOM custom model (partial) [Personal access token](/API/personal-access-tokens) scope: `models:write`.
Test a saved BYOM record POST
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](/API/personal-access-tokens) scope: `models:write`.