v4

latestOpenAPI 3.0.22026-08-02109239415.7 KB
datasets

Train a model from a dataset

Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status.

post/datasets/{dataset_id}/train_model

Path parameters

dataset_idstring required

Request body

model_namestring required

Name for the trained model. Must be 5-30 characters, alphanumeric with spaces and hyphens allowed.

Example request

{
  "model_name": "my-custom-model"
}

Response

Training started successfully

model_idstring required

Unique identifier of the created model.

dataset_idstring required

Identifier of the dataset used for training.

training_statusstring required

Current training status of the model.

model_namestring required

Name of the model.

Example response

{
  "training_status": "training_status",
  "model_name": "model_name",
  "dataset_id": "dataset_id",
  "model_id": "model_id"
}