---
title: "Train"
method: POST
path: "/api/ml/{id}/train"
tags: ["Machine Learning"]
---

# Train

`POST /api/ml/{id}/train`

After you add an ML backend, call this API with the ML backend ID to start training with 
        already-labeled tasks. 
        
        Get the ML backend ID by [listing the ML backends for a project](api:GET/api/ml/).

## Path parameters

- `id` integer, required

## Request body

- MLBackendTrainRequestRequest
  - `use_ground_truth` boolean — Whether to include ground truth annotations in training

## Response `200`

Training has successfully started.

## Other responses

- `500` — Training error

---

[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/revisions/1d13f90af57a/schema)
