Train Model

Upload a few image samples, and train a new model. Training usually takes 20-40 minutes. To be notified when the model completes training you must provide a webhookUrl in the training request, or check for completion by calling Get a Single Model. After training completes, you can use the model to generate images with Generate Images. For businesses trialing the endpoint, please reach out to [email protected] to inquire about test credits.

Body Params
string

Provide a name so you can more easily identify the model.

string

This is the keyword you will use during image generation to trigger your custom subject. For example "a photo of @me".

string
Defaults to person

The subject type - a short description, usually a noun, that describes what the underlying model is learning. For example: person, man, woman, cat, dog, icon, style. Defaults to "person".

string

An optional webhook URL that will be called with a POST request when the model completes training or fails.

imageSampleUrls
array of strings

An array of strings containing the URLs of the images to upload. Either this or imageSampleFiles is required, but not both.

imageSampleUrls
imageSampleFiles
array of files

An array of files containing the images to upload. Either this or imageSampleUrls is required, but not both.

imageSampleFiles
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json