POST
/
api
/
flux
/
train
curl --request POST \
  --url https://training-suite.simplismart.ai/api/flux/train/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'trigger_word=portrait of a person' \
  --form rank=128 \
  --form steps=1000 \
  --form lr=0.0001 \
  --form optimizers=Adam \
  --form high_resolution_mode=false \
  --form org=0bf00b43-430a-4ca3-a8b3-b13cc8dc6d4d \
  --form name=my_first_flux_job
{
  "lora_id": "<string>",
  "status": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token for authentication

Headers

Authorization
string
required

Bearer token for authentication and authorization.

Body

multipart/form-data
trigger_word
string
required

The trigger word to be associated with generated images.

Example:

"portrait of a person"

org
string
required

Organization ID associated with the training job.

Example:

"0bf00b43-430a-4ca3-a8b3-b13cc8dc6d4d"

dataset_file
file
required

Dataset file containing training images.

name
string
required

Name assigned to the Flux training job.

Example:

"my_first_flux_job"

rank
string

The rank parameter for training.

Example:

"128"

steps
string

Number of training steps.

Example:

"1000"

lr
string

Learning rate for training.

Example:

"0.0001"

optimizers
string

Optimizer to use for training.

Example:

"Adam"

high_resolution_mode
string

Whether to enable high resolution mode.

Example:

"false"

Response

200 - application/json
Flux training job submitted successfully.
lora_id
string

Unique identifier for the Flux training job

status
string

Initial status of the training job

message
string

Additional information about the job submission