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

# Start training



## OpenAPI

````yaml /api/openapi.json post /v1/training
openapi: 3.1.0
info:
  title: Omnichar API
  version: 0.1.0
  description: Characters, licenses, public license verification and signed webhooks.
servers:
  - url: https://api.omnichar.org
security:
  - bearer: []
paths:
  /v1/training:
    post:
      tags:
        - LoRA training
      summary: Start training
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                models:
                  minItems: 1
                  maxItems: 4
                  type: array
                  items:
                    type: string
                    pattern: ^train-lora-[a-z0-9-]+$
                preset:
                  default: balanced
                  type: string
                  enum:
                    - fast
                    - balanced
                    - quality
                settings:
                  default: {}
                  type: object
                  properties:
                    steps:
                      type: integer
                      minimum: 100
                      maximum: 10000
                    resolution:
                      type: integer
                      minimum: 256
                      maximum: 2048
                      multipleOf: 64
                    rank:
                      type: integer
                      minimum: 1
                      maximum: 256
                    alpha:
                      type: integer
                      minimum: 1
                      maximum: 256
                    learningRate:
                      type: number
                      exclusiveMinimum: 0
                      maximum: 0.01
                    batchSize:
                      type: integer
                      minimum: 1
                      maximum: 16
                    saveEvery:
                      type: integer
                      minimum: 1
                      maximum: 10000
                    captionDropout:
                      type: number
                      minimum: 0
                      maximum: 1
                    flipAugment:
                      type: boolean
                    loraScope:
                      type: string
                      enum:
                        - full
                        - attention
                datasetId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                characterId:
                  default: null
                  anyOf:
                    - type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    - type: 'null'
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                notifyEmail:
                  default: true
                  type: boolean
                exportCheckpoints:
                  default: false
                  type: boolean
              required:
                - models
                - datasetId
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  batchId:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  runs:
                    type: array
                    items:
                      type: object
                      properties:
                        runId:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        model:
                          type: string
                      required:
                        - runId
                        - model
                      additionalProperties: false
                  refused:
                    type: array
                    items:
                      type: object
                      properties:
                        model:
                          type: string
                        message:
                          type: string
                      required:
                        - model
                        - message
                      additionalProperties: false
                  estimate:
                    type: object
                    properties:
                      etaMin:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      credits:
                        type: number
                        minimum: 0
                      lines:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                            etaMin:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            credits:
                              type: number
                              minimum: 0
                            parallel:
                              type: boolean
                          required:
                            - label
                            - etaMin
                            - credits
                            - parallel
                          additionalProperties: false
                    required:
                      - etaMin
                      - credits
                      - lines
                    additionalProperties: false
                required:
                  - batchId
                  - runs
                  - refused
                  - estimate
                additionalProperties: false
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: 'A team key: sk_test_ for sandbox, sk_live_ for production.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.