> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplismart.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Start a new Flux Training Job

> Submit a new Flux training job with the specified configuration, training data, and metadata.



## OpenAPI

````yaml openapi-specs/playground/flux-training.yaml POST /api/flux/train/
openapi: 3.1.0
info:
  title: Flux Training API
  description: >-
    API endpoints for training, monitoring, and managing Flux models (AI image
    models)
  version: 1.0.0
servers:
  - url: https://training-suite.simplismart.ai
    description: Training Suite Production Server
security:
  - BearerAuth: []
tags:
  - name: Flux Training
    description: Flux model training endpoints
paths:
  /api/flux/train/:
    post:
      tags:
        - Flux Training
      summary: Start a new Flux training job
      description: >-
        Submit a new Flux training job with the specified configuration,
        training data, and metadata.
      operationId: startFluxTrainingJob
      parameters:
        - in: header
          name: Authorization
          schema:
            type: string
          required: true
          description: Bearer token for authentication and authorization.
          example: Bearer <ACCESS_TOKEN>
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                trigger_word:
                  type: string
                  description: The trigger word to be associated with generated images.
                  example: portrait of a person
                rank:
                  type: string
                  description: The rank parameter for training.
                  example: '128'
                steps:
                  type: string
                  description: Number of training steps.
                  example: '1000'
                lr:
                  type: string
                  description: Learning rate for training.
                  example: '0.0001'
                optimizers:
                  type: string
                  description: Optimizer to use for training.
                  example: Adam
                high_resolution_mode:
                  type: string
                  description: Whether to enable high resolution mode.
                  example: 'false'
                org:
                  type: string
                  description: Organization ID associated with the training job.
                  example: 0bf00b43-430a-4ca3-a8b3-b13cc8dc6d4d
                dataset_file:
                  type: string
                  format: binary
                  description: Dataset file containing training images.
                name:
                  type: string
                  description: Name assigned to the Flux training job.
                  example: my_first_flux_job
              required:
                - trigger_word
                - dataset_file
                - org
                - name
      responses:
        '200':
          description: Flux training job submitted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FluxTrainingJobResponse'
components:
  schemas:
    FluxTrainingJobResponse:
      type: object
      properties:
        lora_id:
          type: string
          description: Unique identifier for the Flux training job
        status:
          type: string
          description: Initial status of the training job
        message:
          type: string
          description: Additional information about the job submission
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token for authentication

````