---
title: "Import predictions"
method: POST
path: "/api/projects/{id}/import/predictions"
tags: ["Import"]
---

# Import predictions

`POST /api/projects/{id}/import/predictions`

Import model predictions for tasks in the specified project.

## Path parameters

- `id` integer, required

## Request body

- PredictionRequest[]
  - `cluster` integer, nullable — Cluster for the current prediction
  - `mislabeling` number, double — Related task mislabeling score
  - `model` integer, nullable — An ML Backend instance that created the prediction.
  - `model_run` integer, nullable — A run of a ModelVersion that created the prediction.
  - `model_version` string — 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
  - `neighbors` unknown
  - `project` integer, nullable
  - `result` object[], required — List of prediction results for the task
  - `score` number, double, nullable — Prediction score
  - `task` integer, required

## Response `201`

Predictions successfully imported

- object — Import result
  - `created` integer — Number of predictions created

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.net/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/versions/1b113b8df950/schema)
