POST
/
models
/
{model_id}
/
train

Request

model_id
string
required

The model ID to train. This is the ID of the model you created in a pending state.

epochs
integer
required

The number of epochs to train the model. The minimum value is 100. The allowed range is 1 to 100,000. More epochs will result in a better model, but will take longer to train.

Response

status
string

The status of the training task. Possible values are: training, completed, failed.

model_id
string

The ID of the model being trained. This is the same as the model_id in the request URL.

current_epoch
integer

The current epoch of the training task. This value will be 0 if the training task has not started yet.