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

# List training runs



## OpenAPI

````yaml /api/openapi.json get /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:
    get:
      tags:
        - LoRA training
      summary: List training runs
      parameters:
        - schema:
            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)$
          in: query
          name: characterId
          required: false
        - schema:
            type: string
            enum:
              - queued
              - training
              - completed
              - failed
              - canceled
          in: query
          name: status
          required: false
        - schema:
            default: 50
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    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)$
                        batchId:
                          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'
                        model:
                          type: object
                          properties:
                            slug:
                              type: string
                            label:
                              type: string
                          required:
                            - slug
                            - label
                          additionalProperties: false
                        character:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  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)$
                                name:
                                  type: string
                              required:
                                - id
                                - name
                              additionalProperties: false
                            - type: 'null'
                        name:
                          type: string
                        dataset:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  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)$
                                name:
                                  type: string
                                items:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                              required:
                                - id
                                - name
                                - items
                              additionalProperties: false
                            - type: 'null'
                        preset:
                          anyOf:
                            - type: string
                              enum:
                                - fast
                                - balanced
                                - quality
                            - type: 'null'
                        steps:
                          anyOf:
                            - type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            - type: 'null'
                        status:
                          type: string
                          enum:
                            - queued
                            - training
                            - completed
                            - failed
                            - canceled
                        fraction:
                          anyOf:
                            - type: number
                              minimum: 0
                              maximum: 1
                            - type: 'null'
                        error:
                          type:
                            - string
                            - 'null'
                        credits:
                          type: number
                          minimum: 0
                        refunded:
                          type: boolean
                        createdAt:
                          type: string
                          format: date-time
                          pattern: >-
                            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                        finishedAt:
                          anyOf:
                            - type: string
                              format: date-time
                              pattern: >-
                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                            - type: 'null'
                        durationMin:
                          anyOf:
                            - type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            - type: 'null'
                        hasLora:
                          type: boolean
                        testable:
                          type: boolean
                        triggerWord:
                          type:
                            - string
                            - 'null'
                        outdated:
                          type: boolean
                      required:
                        - runId
                        - batchId
                        - model
                        - character
                        - name
                        - dataset
                        - preset
                        - steps
                        - status
                        - fraction
                        - error
                        - credits
                        - refunded
                        - createdAt
                        - finishedAt
                        - durationMin
                        - hasLora
                        - testable
                        - triggerWord
                        - outdated
                      additionalProperties: false
                  stats:
                    type: object
                    properties:
                      active:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      training:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      queued:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      trained:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      characters:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      credits14d:
                        type: number
                      avgRunMin:
                        anyOf:
                          - type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          - type: 'null'
                      completed:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      failed:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                    required:
                      - active
                      - training
                      - queued
                      - trained
                      - characters
                      - credits14d
                      - avgRunMin
                      - completed
                      - failed
                    additionalProperties: false
                required:
                  - items
                  - stats
                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.