v4

latestOpenAPI 3.0.22026-08-02109239415.7 KB
models

Train a custom Ideogram v4 model

Start training a custom Ideogram v4 model from a dataset using default hyperparameters. The dataset must contain at least 15 images and a maximum of 100 images.

post/v1/ideogram-v4/train-model

Request body

dataset_idstring required

ID of the dataset to train the model from.

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",
  "dataset_id": "abc123"
}

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"
}