> ## 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.

# Estimate a training run



## OpenAPI

````yaml /api/openapi.json post /v1/training/estimate
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/estimate:
    post:
      tags:
        - LoRA training
      summary: Estimate a training run
      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
              required:
                - models
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                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
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.