API ReferenceML

Add ML backend

POST

Add an ML backend to a project. For more information about what you need to configure when adding an ML backend, see Connect the model to Label studio.

If you are using Docker Compose, you may need to adjust your ML backend URL. See localhost and Docker containers.
If you are using files that are located in the cloud, local storage, or uploaded to Label Studio, you must configure your environment variables to allow the ML backend to interact with those files. See Allow the ML backend to access Label Studio.

Request

This endpoint expects an object.
url
stringOptional
ML backend URL
project
integerOptional
Project ID
is_interactive
booleanOptional
Is interactive
title
stringOptional
Title
description
stringOptional
Description
auth_method
enumOptional
Auth method
Allowed values: NONEBASIC_AUTH
basic_auth_user
stringOptional
Basic auth user
basic_auth_pass
stringOptional
Basic auth password
extra_params
map from strings to anyOptional
Extra parameters
timeout
integerOptional
Response model timeout

Response

This endpoint returns an object
url
stringOptional
ML backend URL
project
integerOptional
Project ID
is_interactive
booleanOptional
Is interactive
title
stringOptional
Title
description
stringOptional
Description
auth_method
enumOptional
Auth method
Allowed values: NONEBASIC_AUTH
basic_auth_user
stringOptional
Basic auth user
basic_auth_pass
stringOptional
Basic auth password
extra_params
map from strings to anyOptional
Extra parameters
timeout
integerOptional
Response model timeout