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

# Get a node



## OpenAPI

````yaml /api/openapi.json get /api/v1/nodes/{nodeId}
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/nodes/{nodeId}:
    get:
      tags:
        - node
      summary: Get a node
      operationId: node.get
      parameters:
        - in: path
          name: nodeId
          schema:
            type: string
            format: uuid
          required: true
        - in: query
          name: canvasId
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  nodeType:
                    type: string
                    enum:
                      - text
                      - image
                      - img-angle
                      - video
                      - audio
                      - file
                      - group
                      - custom_text
                      - pdf
                      - composite
                      - stitch
                      - magic_resize
                      - element
                      - linked_output
                      - router
                  title:
                    type: string
                  geometry:
                    type: object
                    properties:
                      x:
                        type: number
                      'y':
                        type: number
                      w:
                        type: number
                      h:
                        type: number
                      zIndex:
                        type: number
                    required:
                      - x
                      - 'y'
                      - w
                      - h
                  groupId:
                    type: string
                    nullable: true
                    format: uuid
                  autoModel:
                    type: boolean
                    nullable: true
                  fastModel:
                    type: boolean
                    nullable: true
                  activeVersionId:
                    type: string
                    nullable: true
                    format: uuid
                  generatedText:
                    type: string
                    nullable: true
                  textView:
                    type: string
                    nullable: true
                    enum:
                      - raw
                      - markdown
                      - null
                  textPrompt:
                    type: string
                    nullable: true
                  generationType:
                    type: string
                    enum:
                      - generated
                      - custom
                  textContentHeight:
                    type: number
                    minimum: 0
                    exclusiveMinimum: true
                  modelConfig:
                    type: object
                    nullable: true
                    properties:
                      imageAngle:
                        type: object
                        properties:
                          rotationDeg:
                            type: integer
                            minimum: -180
                            maximum: 180
                          tiltDeg:
                            type: integer
                            minimum: -30
                            maximum: 90
                        required:
                          - rotationDeg
                          - tiltDeg
                        additionalProperties: false
                      videoEditMode:
                        type: string
                        enum:
                          - replacement
                      model:
                        type: string
                      variant:
                        type: string
                      tier:
                        type: string
                        nullable: true
                      quality:
                        type: string
                        minLength: 1
                        maxLength: 64
                      background:
                        type: string
                        enum:
                          - auto
                          - opaque
                          - transparent
                      preciseEdit:
                        type: boolean
                      cameraMove:
                        oneOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - preset
                              preset:
                                type: string
                                enum:
                                  - truck_left
                                  - truck_right
                                  - pedestal_up
                                  - pedestal_down
                                  - dolly_in
                                  - dolly_out
                                  - pan_left
                                  - pan_right
                                  - tilt_up
                                  - tilt_down
                                  - roll_left
                                  - roll_right
                                  - s_curve_forward
                            required:
                              - type
                              - preset
                            additionalProperties: false
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - path
                              keyframes:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    time:
                                      type: number
                                      minimum: 0
                                      maximum: 1
                                    azimuth:
                                      type: number
                                    elevation:
                                      type: number
                                      minimum: -90
                                      maximum: 90
                                    distance:
                                      type: number
                                      minimum: 0
                                      exclusiveMinimum: true
                                  required:
                                    - time
                                    - azimuth
                                    - elevation
                                    - distance
                                  additionalProperties: false
                                minItems: 2
                                maxItems: 12
                            required:
                              - type
                              - keyframes
                            additionalProperties: false
                      gifSettings:
                        type: object
                        properties:
                          frameCount:
                            type: integer
                            minimum: 0
                            exclusiveMinimum: true
                          frameDurationMs:
                            type: integer
                            minimum: 0
                            exclusiveMinimum: true
                      thinkingLevel:
                        type: string
                        enum:
                          - 'off'
                          - 'on'
                          - minimal
                          - low
                          - medium
                          - high
                          - xhigh
                          - max
                      heygenAvatar:
                        type: string
                      heygenSettings:
                        type: object
                        properties:
                          backgroundColor:
                            type: string
                            pattern: ^#[0-9a-f]{6}$
                          removeBackground:
                            type: boolean
                          fit:
                            type: string
                            enum:
                              - cover
                              - contain
                          caption:
                            type: boolean
                          voice:
                            type: string
                            minLength: 1
                      ratios:
                        type: array
                        items:
                          type: string
                      resolution:
                        type: string
                      voiceId:
                        type: string
                      customVoiceId:
                        type: string
                        format: uuid
                      usesProviderDefaultVoice:
                        type: boolean
                        enum:
                          - true
                      font:
                        type: object
                        properties:
                          source:
                            type: string
                            enum:
                              - custom
                              - google
                          familyName:
                            type: string
                        required:
                          - source
                          - familyName
                      loras:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            weight:
                              type: number
                          required:
                            - id
                            - name
                            - weight
                      draftVersionId:
                        type: string
                        format: uuid
                      draftBilling:
                        type: object
                        properties:
                          mode:
                            type: string
                          outputSeconds:
                            type: number
                          inputVideoSeconds:
                            type: number
                        required:
                          - mode
                          - outputSeconds
                          - inputVideoSeconds
                      steps:
                        type: number
                      guidanceScale:
                        type: number
                      colors:
                        type: array
                        items:
                          type: object
                          properties:
                            r:
                              type: integer
                              minimum: 0
                              maximum: 255
                            g:
                              type: integer
                              minimum: 0
                              maximum: 255
                            b:
                              type: integer
                              minimum: 0
                              maximum: 255
                          required:
                            - r
                            - g
                            - b
                      backgroundColor:
                        type: object
                        properties:
                          r:
                            type: integer
                            minimum: 0
                            maximum: 255
                          g:
                            type: integer
                            minimum: 0
                            maximum: 255
                          b:
                            type: integer
                            minimum: 0
                            maximum: 255
                        required:
                          - r
                          - g
                          - b
                    required:
                      - model
                      - variant
                  modelPortMode:
                    type: object
                    nullable: true
                    properties:
                      model:
                        type: string
                      mode:
                        type: string
                    required:
                      - model
                      - mode
                  outputAspectRatio:
                    type: string
                    nullable: true
                    enum:
                      - '21:9'
                      - '20:9'
                      - 19.5:9
                      - '2:1'
                      - '16:9'
                      - '3:2'
                      - '4:3'
                      - '5:4'
                      - '1:1'
                      - '4:5'
                      - '3:4'
                      - '2:3'
                      - '9:16'
                      - '1:2'
                      - '9:19.5'
                      - '9:20'
                      - '9:21'
                      - null
                  outputDuration:
                    type: integer
                    nullable: true
                    minimum: 0
                    exclusiveMinimum: true
                  outputResolution:
                    oneOf:
                      - type: string
                        enum:
                          - 360p
                          - 480p
                          - 540p
                          - 580p
                          - 720p
                          - 480P
                          - 768P
                          - 1080P
                          - 1080p
                          - 1440p
                          - 2160p
                          - 4k
                          - 0.5K
                          - 1K
                          - 2K
                          - 4K
                          - 1k
                          - 2k
                      - type: string
                  seed:
                    type: integer
                    nullable: true
                    minimum: 0
                    maximum: 2147483647
                  numVariations:
                    type: integer
                    nullable: true
                    minimum: 1
                    maximum: 10
                  generateAudio:
                    type: boolean
                    nullable: true
                  modelSupportsEndImage:
                    type: boolean
                    nullable: true
                  modelSupportsReferenceImage:
                    type: boolean
                    nullable: true
                  modelSupportsOptionalStartImage:
                    type: boolean
                    nullable: true
                  modelSupportsAudioInput:
                    type: boolean
                    nullable: true
                  modelGeneratesAudio:
                    type: boolean
                    nullable: true
                  voiceId:
                    type: string
                    nullable: true
                  customVoiceId:
                    type: string
                    nullable: true
                  negativePrompt:
                    type: string
                    nullable: true
                  supportedInputs:
                    type: array
                    nullable: true
                    items:
                      type: string
                      enum:
                        - image
                        - video
                  stitchClipOrder:
                    type: array
                    nullable: true
                    items:
                      type: string
                  stitchScaleFit:
                    type: string
                    nullable: true
                    enum:
                      - fit
                      - stretch
                      - null
                  stitchMuteSourceAudio:
                    type: boolean
                    nullable: true
                  stitchAudioOverlays:
                    type: array
                    nullable: true
                    items:
                      type: object
                      properties:
                        nodeId:
                          type: string
                        startTimeSeconds:
                          type: number
                          minimum: 0
                        trimStartMs:
                          type: integer
                          minimum: 0
                        trimEndMs:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                      required:
                        - nodeId
                        - startTimeSeconds
                  stitchClipTrims:
                    type: object
                    nullable: true
                    additionalProperties:
                      type: object
                      properties:
                        trimStartMs:
                          type: integer
                          minimum: 0
                        trimEndMs:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                  groupType:
                    type: string
                    nullable: true
                    enum:
                      - default
                      - unified
                      - template
                      - null
                  groupColor:
                    type: string
                    nullable: true
                    enum:
                      - default
                      - amber
                      - blue
                      - purple
                      - olive
                      - red
                      - pink
                      - green
                      - yellow
                      - null
                  groupPadding:
                    type: number
                    nullable: true
                    minimum: 0
                  templatePorts:
                    type: array
                    nullable: true
                    items:
                      oneOf:
                        - type: object
                          properties:
                            direction:
                              type: string
                              enum:
                                - input
                            required:
                              type: boolean
                            maxConnections:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                            locked:
                              type: boolean
                            internalTargets:
                              type: array
                              items:
                                type: object
                                properties:
                                  nodeId:
                                    type: string
                                    format: uuid
                                  internalHandle:
                                    type: string
                                    nullable: true
                                required:
                                  - nodeId
                                  - internalHandle
                            connectedSourceIds:
                              type: array
                              items:
                                type: string
                            sourcePosition:
                              type: object
                              properties:
                                x:
                                  type: number
                                'y':
                                  type: number
                              required:
                                - x
                                - 'y'
                            sourceNodeKey:
                              type: string
                            portId:
                              type: string
                            label:
                              type: string
                            handleType:
                              type: string
                            nodeId:
                              type: string
                              format: uuid
                            internalHandle:
                              type: string
                              nullable: true
                            top:
                              type: string
                          required:
                            - direction
                            - portId
                            - label
                            - handleType
                            - nodeId
                            - internalHandle
                        - type: object
                          properties:
                            direction:
                              type: string
                              enum:
                                - output
                            layerIndex:
                              type: integer
                              nullable: true
                              minimum: 0
                            portId:
                              type: string
                            label:
                              type: string
                            handleType:
                              type: string
                            nodeId:
                              type: string
                              format: uuid
                            internalHandle:
                              type: string
                              nullable: true
                            top:
                              type: string
                          required:
                            - direction
                            - portId
                            - label
                            - handleType
                            - nodeId
                            - internalHandle
                  templateId:
                    type: string
                    nullable: true
                    format: uuid
                  isExpandable:
                    type: boolean
                    nullable: true
                  childNodeIds:
                    type: array
                    items:
                      type: string
                      format: uuid
                  magicResizeOutputs:
                    type: array
                    nullable: true
                    items:
                      type: object
                      properties:
                        durationInMs:
                          type: number
                          minimum: 0
                        mediaType:
                          type: string
                          enum:
                            - image
                            - video
                        layerIndex:
                          type: integer
                        ratio:
                          type: string
                        assetId:
                          type: string
                          nullable: true
                        assetUrl:
                          type: string
                          nullable: true
                        previewUrl:
                          type: string
                          nullable: true
                        failed:
                          type: boolean
                        errorMessage:
                          type: string
                          nullable: true
                        errorSeverity:
                          type: string
                          nullable: true
                          enum:
                            - error
                            - warning
                            - null
                      required:
                        - layerIndex
                        - ratio
                        - assetId
                        - assetUrl
                        - previewUrl
                  createdByUserId:
                    type: string
                    nullable: true
                    format: uuid
                  upload:
                    type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - uploading
                          - failed
                      attemptId:
                        type: string
                      startedAt:
                        type: number
                      heartbeatAt:
                        type: number
                      failure:
                        type: string
                        nullable: true
                    required:
                      - status
                      - startedAt
                      - heartbeatAt
                  versions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        title:
                          type: string
                        modelConfig:
                          type: object
                          nullable: true
                          properties:
                            imageAngle:
                              type: object
                              properties:
                                rotationDeg:
                                  type: integer
                                  minimum: -180
                                  maximum: 180
                                tiltDeg:
                                  type: integer
                                  minimum: -30
                                  maximum: 90
                              required:
                                - rotationDeg
                                - tiltDeg
                              additionalProperties: false
                            videoEditMode:
                              type: string
                              enum:
                                - replacement
                            model:
                              type: string
                            variant:
                              type: string
                            tier:
                              type: string
                              nullable: true
                            quality:
                              type: string
                              minLength: 1
                              maxLength: 64
                            background:
                              type: string
                              enum:
                                - auto
                                - opaque
                                - transparent
                            preciseEdit:
                              type: boolean
                            cameraMove:
                              oneOf:
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - preset
                                    preset:
                                      type: string
                                      enum:
                                        - truck_left
                                        - truck_right
                                        - pedestal_up
                                        - pedestal_down
                                        - dolly_in
                                        - dolly_out
                                        - pan_left
                                        - pan_right
                                        - tilt_up
                                        - tilt_down
                                        - roll_left
                                        - roll_right
                                        - s_curve_forward
                                  required:
                                    - type
                                    - preset
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - path
                                    keyframes:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          time:
                                            type: number
                                            minimum: 0
                                            maximum: 1
                                          azimuth:
                                            type: number
                                          elevation:
                                            type: number
                                            minimum: -90
                                            maximum: 90
                                          distance:
                                            type: number
                                            minimum: 0
                                            exclusiveMinimum: true
                                        required:
                                          - time
                                          - azimuth
                                          - elevation
                                          - distance
                                        additionalProperties: false
                                      minItems: 2
                                      maxItems: 12
                                  required:
                                    - type
                                    - keyframes
                                  additionalProperties: false
                            gifSettings:
                              type: object
                              properties:
                                frameCount:
                                  type: integer
                                  minimum: 0
                                  exclusiveMinimum: true
                                frameDurationMs:
                                  type: integer
                                  minimum: 0
                                  exclusiveMinimum: true
                            thinkingLevel:
                              type: string
                              enum:
                                - 'off'
                                - 'on'
                                - minimal
                                - low
                                - medium
                                - high
                                - xhigh
                                - max
                            heygenAvatar:
                              type: string
                            heygenSettings:
                              type: object
                              properties:
                                backgroundColor:
                                  type: string
                                  pattern: ^#[0-9a-f]{6}$
                                removeBackground:
                                  type: boolean
                                fit:
                                  type: string
                                  enum:
                                    - cover
                                    - contain
                                caption:
                                  type: boolean
                                voice:
                                  type: string
                                  minLength: 1
                            ratios:
                              type: array
                              items:
                                type: string
                            resolution:
                              type: string
                            voiceId:
                              type: string
                            customVoiceId:
                              type: string
                              format: uuid
                            usesProviderDefaultVoice:
                              type: boolean
                              enum:
                                - true
                            font:
                              type: object
                              properties:
                                source:
                                  type: string
                                  enum:
                                    - custom
                                    - google
                                familyName:
                                  type: string
                              required:
                                - source
                                - familyName
                            loras:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  name:
                                    type: string
                                  weight:
                                    type: number
                                required:
                                  - id
                                  - name
                                  - weight
                            draftVersionId:
                              type: string
                              format: uuid
                            draftBilling:
                              type: object
                              properties:
                                mode:
                                  type: string
                                outputSeconds:
                                  type: number
                                inputVideoSeconds:
                                  type: number
                              required:
                                - mode
                                - outputSeconds
                                - inputVideoSeconds
                            steps:
                              type: number
                            guidanceScale:
                              type: number
                            colors:
                              type: array
                              items:
                                type: object
                                properties:
                                  r:
                                    type: integer
                                    minimum: 0
                                    maximum: 255
                                  g:
                                    type: integer
                                    minimum: 0
                                    maximum: 255
                                  b:
                                    type: integer
                                    minimum: 0
                                    maximum: 255
                                required:
                                  - r
                                  - g
                                  - b
                            backgroundColor:
                              type: object
                              properties:
                                r:
                                  type: integer
                                  minimum: 0
                                  maximum: 255
                                g:
                                  type: integer
                                  minimum: 0
                                  maximum: 255
                                b:
                                  type: integer
                                  minimum: 0
                                  maximum: 255
                              required:
                                - r
                                - g
                                - b
                          required:
                            - model
                            - variant
                        sourceToolName:
                          type: string
                          nullable: true
                        seed:
                          type: integer
                          nullable: true
                          minimum: 0
                          maximum: 2147483647
                        usedSeed:
                          type: integer
                          nullable: true
                          minimum: 0
                          maximum: 2147483647
                        generateAudio:
                          type: boolean
                          nullable: true
                        negativePrompt:
                          type: string
                          nullable: true
                        outputAspectRatio:
                          type: string
                          nullable: true
                          enum:
                            - '21:9'
                            - '20:9'
                            - 19.5:9
                            - '2:1'
                            - '16:9'
                            - '3:2'
                            - '4:3'
                            - '5:4'
                            - '1:1'
                            - '4:5'
                            - '3:4'
                            - '2:3'
                            - '9:16'
                            - '1:2'
                            - '9:19.5'
                            - '9:20'
                            - '9:21'
                            - null
                        outputDuration:
                          type: integer
                          nullable: true
                          minimum: 0
                          exclusiveMinimum: true
                        outputResolution:
                          oneOf:
                            - type: string
                              enum:
                                - 360p
                                - 480p
                                - 540p
                                - 580p
                                - 720p
                                - 480P
                                - 768P
                                - 1080P
                                - 1080p
                                - 1440p
                                - 2160p
                                - 4k
                                - 0.5K
                                - 1K
                                - 2K
                                - 4K
                                - 1k
                                - 2k
                            - type: string
                        textPrompt:
                          type: string
                          nullable: true
                        generatedText:
                          type: string
                          nullable: true
                        textView:
                          type: string
                          nullable: true
                          enum:
                            - raw
                            - markdown
                            - null
                        generatedTextAt:
                          type: string
                          format: date-time
                        modelDisplayName:
                          type: string
                          nullable: true
                        asset:
                          type: object
                          nullable: true
                          properties:
                            assetId:
                              type: string
                              format: uuid
                            displayName:
                              type: string
                              nullable: true
                            url:
                              type: string
                              nullable: true
                            originalUrl:
                              type: string
                              nullable: true
                            previewUrl:
                              type: string
                              nullable: true
                            previewExtraLowResolutionUrl:
                              type: string
                              nullable: true
                            previewLowResolutionUrl:
                              type: string
                              nullable: true
                            previewHighResolutionUrl:
                              type: string
                              nullable: true
                            thumbnailUrl:
                              type: string
                              nullable: true
                            mediaType:
                              type: string
                              nullable: true
                              enum:
                                - image
                                - video
                                - audio
                                - pdf
                                - null
                            assetSummary:
                              type: string
                              nullable: true
                            assetSummaryDetails:
                              type: object
                              nullable: true
                              properties:
                                subject:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                summary:
                                  type: string
                              required:
                                - subject
                                - action
                                - summary
                            fileType:
                              type: string
                              nullable: true
                            fileSizeInKb:
                              type: integer
                              nullable: true
                              minimum: 0
                            originalWidth:
                              type: integer
                              nullable: true
                              minimum: 0
                            originalHeight:
                              type: integer
                              nullable: true
                              minimum: 0
                            durationInMs:
                              type: integer
                              nullable: true
                              minimum: 0
                          required:
                            - url
                            - originalUrl
                            - previewUrl
                            - mediaType
                            - fileType
                            - fileSizeInKb
                            - originalWidth
                            - originalHeight
                            - durationInMs
                        lastFrameUrl:
                          type: string
                          nullable: true
                        toolInputAsset:
                          type: object
                          nullable: true
                          properties:
                            assetId:
                              type: string
                              format: uuid
                            displayName:
                              type: string
                              nullable: true
                            url:
                              type: string
                              nullable: true
                            originalUrl:
                              type: string
                              nullable: true
                            previewUrl:
                              type: string
                              nullable: true
                            previewExtraLowResolutionUrl:
                              type: string
                              nullable: true
                            previewLowResolutionUrl:
                              type: string
                              nullable: true
                            previewHighResolutionUrl:
                              type: string
                              nullable: true
                            thumbnailUrl:
                              type: string
                              nullable: true
                            mediaType:
                              type: string
                              nullable: true
                              enum:
                                - image
                                - video
                                - audio
                                - pdf
                                - null
                            assetSummary:
                              type: string
                              nullable: true
                            assetSummaryDetails:
                              type: object
                              nullable: true
                              properties:
                                subject:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                summary:
                                  type: string
                              required:
                                - subject
                                - action
                                - summary
                            fileType:
                              type: string
                              nullable: true
                            fileSizeInKb:
                              type: integer
                              nullable: true
                              minimum: 0
                            originalWidth:
                              type: integer
                              nullable: true
                              minimum: 0
                            originalHeight:
                              type: integer
                              nullable: true
                              minimum: 0
                            durationInMs:
                              type: integer
                              nullable: true
                              minimum: 0
                          required:
                            - url
                            - originalUrl
                            - previewUrl
                            - mediaType
                            - fileType
                            - fileSizeInKb
                            - originalWidth
                            - originalHeight
                            - durationInMs
                        pdfExtraction:
                          type: object
                          nullable: true
                          properties:
                            summaryText:
                              type: string
                            extractedImages:
                              type: array
                              items:
                                type: object
                                properties:
                                  assetId:
                                    type: string
                                    format: uuid
                                  url:
                                    type: string
                                  pageIndex:
                                    type: integer
                                    minimum: 0
                                  imageIndex:
                                    type: integer
                                    minimum: 0
                                required:
                                  - assetId
                                  - url
                                  - pageIndex
                                  - imageIndex
                            extractedImageUrls:
                              type: array
                              items:
                                type: string
                            extractedImageCount:
                              type: integer
                          required:
                            - summaryText
                            - extractedImages
                            - extractedImageUrls
                            - extractedImageCount
                        nodeRunId:
                          type: string
                          nullable: true
                          format: uuid
                        elementVersionId:
                          type: string
                          nullable: true
                          format: uuid
                        producedBy:
                          type: object
                          nullable: true
                          properties:
                            runId:
                              type: string
                              format: uuid
                            inputs:
                              type: array
                              nullable: true
                              items:
                                type: object
                                properties:
                                  srcNodeId:
                                    type: string
                                    nullable: true
                                    format: uuid
                                  srcNodeVersionId:
                                    type: string
                                    nullable: true
                                    format: uuid
                                  assetId:
                                    type: string
                                    nullable: true
                                    format: uuid
                                  label:
                                    type: string
                                  role:
                                    type: string
                                    enum:
                                      - image
                                      - end_image
                                      - reference_image
                                      - video
                                      - audio
                                      - text
                                  dstHandle:
                                    type: string
                                    nullable: true
                                  position:
                                    type: integer
                                    minimum: 0
                                required:
                                  - srcNodeId
                                  - srcNodeVersionId
                                  - assetId
                                  - label
                                  - role
                                  - dstHandle
                                  - position
                          required:
                            - runId
                            - inputs
                        layerCount:
                          type: integer
                          minimum: 0
                        errorMessage:
                          type: string
                          nullable: true
                        errorSeverity:
                          type: string
                          nullable: true
                          enum:
                            - error
                            - warning
                            - null
                        errorRetryable:
                          type: boolean
                          nullable: true
                        textRecovery:
                          type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - providers_exhausted
                            model:
                              type: string
                          required:
                            - kind
                            - model
                        favoritedByUserId:
                          type: string
                          nullable: true
                          format: uuid
                        createdAt:
                          type: string
                          format: date-time
                        updatedAt:
                          type: string
                          format: date-time
                      required:
                        - id
                        - title
                        - modelConfig
                        - sourceToolName
                        - seed
                        - generateAudio
                        - negativePrompt
                        - outputAspectRatio
                        - outputDuration
                        - outputResolution
                        - textPrompt
                        - generatedText
                        - asset
                        - layerCount
                        - errorMessage
                        - errorSeverity
                        - favoritedByUserId
                        - createdAt
                        - updatedAt
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - nodeType
                  - geometry
                  - groupId
                  - activeVersionId
                  - generatedText
                  - versions
                  - createdAt
                  - updatedAt
        '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: The API key's user is not a member of the requested team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - statusCode
                  - message
        '404':
          description: '404'
          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.