API ReferencePredictions

List predictions

GET

Get a list of all predictions. You can optionally filter these by task or by project. If you want to filter, you will need the project ID and/or task ID. Both of these can be found in the Label Studio URL when viewing a task, or you can use List all projects and Get tasks list.

The terms “predictions” and pre-annotations” are used interchangeably.

Predictions can be imported directly into Label Studio or generated by a connected ML backend.

To import predictions via the API, see Create prediction.

Query parameters

taskintegerOptional
Filter predictions by task ID
projectintegerOptional
Filter predictions by project ID

Response

This endpoint returns a list of objects
result
list of maps from strings to any
List of prediction results for the task
task
integer
id
integerOptional
model_version
stringOptional
Model version - tag for predictions that can be used to filter tasks in Data Manager, as well as select specific model version for showing preannotations in the labeling interface
created_ago
stringOptionalDefaults to
Delta time from creation time
score
doubleOptional
Prediction score
cluster
integerOptional
Cluster for the current prediction
neighbors
map from strings to anyOptional
Array of task IDs of the closest neighbors
mislabeling
doubleOptional
Related task mislabeling score
created_at
datetimeOptional
updated_at
datetimeOptional
model
integerOptional
An ML Backend instance that created the prediction.
model_run
integerOptional
A run of a ModelVersion that created the prediction.
project
integerOptional