Skip to main content
POST
Start a new Flux training job

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