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

# List Ditto models



## OpenAPI

````yaml /api/openapi.json get /api/v1/ditto/models
openapi: 3.0.2
info:
  title: Melius API
  version: '1'
  description: >-
    The Melius REST API. Authenticate with an API key as a bearer token
    (`Authorization: Bearer mel_...`) and select the team to act on with the
    `x-team-id` header. Generations run through the same node + run pipeline as
    the app: create a node on a canvas, start a run, poll the run, then read the
    resulting version asset.
servers:
  - url: https://api.melius.com
security:
  - apiKey: []
    teamId: []
paths:
  /api/v1/ditto/models:
    get:
      tags:
        - ditto
      summary: List Ditto models
      operationId: ditto.listModels
      parameters: []
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  models:
                    type: array
                    items:
                      type: object
                      properties:
                        modelId:
                          type: string
                        label:
                          type: string
                        eligible:
                          type: boolean
                        reasons:
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                              message:
                                type: string
                              measured:
                                type: number
                              minimum:
                                type: number
                              maximum:
                                type: number
                            required:
                              - code
                              - message
                        resolutions:
                          type: array
                          items:
                            type: string
                        sourceDurationLimits:
                          type: object
                          properties:
                            minimumMs:
                              type: number
                              nullable: true
                              minimum: 0
                            maximumMs:
                              type: number
                              minimum: 0
                              exclusiveMinimum: true
                          required:
                            - minimumMs
                            - maximumMs
                        defaultResolution:
                          type: string
                          nullable: true
                          enum:
                            - 480p
                            - 720p
                            - 1080p
                            - 480P
                            - 768P
                            - 1080P
                            - null
                      required:
                        - modelId
                        - label
                        - eligible
                        - reasons
                        - resolutions
                        - defaultResolution
                  styleTransferModels:
                    type: array
                    items:
                      type: object
                      properties:
                        modelId:
                          type: string
                        label:
                          type: string
                        eligible:
                          type: boolean
                        reasons:
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                              message:
                                type: string
                              measured:
                                type: number
                              minimum:
                                type: number
                              maximum:
                                type: number
                            required:
                              - code
                              - message
                        resolutions:
                          type: array
                          items:
                            type: string
                        sourceDurationLimits:
                          type: object
                          properties:
                            minimumMs:
                              type: number
                              nullable: true
                              minimum: 0
                            maximumMs:
                              type: number
                              minimum: 0
                              exclusiveMinimum: true
                          required:
                            - minimumMs
                            - maximumMs
                        defaultResolution:
                          type: string
                          nullable: true
                          enum:
                            - 480p
                            - 720p
                            - 1080p
                            - 480P
                            - 768P
                            - 1080P
                            - null
                      required:
                        - modelId
                        - label
                        - eligible
                        - reasons
                        - resolutions
                        - defaultResolution
                required:
                  - models
        '401':
          description: Missing, invalid, expired, or revoked API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - statusCode
                  - message
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '429':
          description: Rate limit reached — retry after the `Retry-After` header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  retryAfterSeconds:
                    type: integer
                required:
                  - statusCode
                  - message
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'A Melius API key (`mel_...`), sent as `Authorization: Bearer <key>`.'
    teamId:
      type: apiKey
      in: header
      name: x-team-id
      description: The team (workspace) to act on. Defaults to the key's team when omitted.

````

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