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

# List Files

> Your asset library, newest first — every file you uploaded plus every output a model produced for you. Always scoped to the authenticated account.

Files reach this library from three places: [uploads](/guides/file-uploads), request outputs at finalization, and inputs you pass to a request (which links the upload you already own). URLs pasted from elsewhere are not recorded.



## OpenAPI

````yaml /platform-openapi.json get /files
openapi: 3.1.0
info:
  title: ModelRunner Platform API
  version: 1.0.0
  description: >-
    Platform APIs: model catalog, search and collections; model pricing rate
    cards; the Serverless GPU catalog and deployment templates; file uploads and
    your asset library; account balance and usage; and webhook delivery
    management. Catalog reads are public; account-scoped routes authenticate
    with your API key (`Authorization: Key <MODELRUNNER_KEY>`). Request
    lifecycle endpoints (submit/status/result and the request list) live on the
    queue host — see the Queue API reference.
servers:
  - url: https://api.modelrunner.run
security: []
paths:
  /files:
    get:
      summary: List Files
      description: >-
        Your asset library, newest first — every file you uploaded plus every
        output a model produced for you. Always scoped to the authenticated
        account.


        Files reach this library from three places:
        [uploads](/guides/file-uploads), request outputs at finalization, and
        inputs you pass to a request (which links the upload you already own).
        URLs pasted from elsewhere are not recorded.
      parameters:
        - name: sources
          in: query
          schema:
            type: array
            items:
              type: string
              enum:
                - upload
                - output
                - input
                - external
          style: form
          explode: true
          description: >-
            Repeat to union buckets. `upload` — files you uploaded; `output` —
            files a model produced for you; `input` — your uploads that a
            request consumed. `external` rows are excluded unless you ask for
            them explicitly.
        - name: tagIds
          in: query
          schema:
            type: array
            items:
              type: string
              format: uuid
          style: form
          explode: true
          description: Repeat for multiple tags.
        - name: tagRule
          in: query
          schema:
            type: string
            enum:
              - any
              - all
            default: any
          description: How multiple `tagIds` combine.
        - name: favoritesOnly
          in: query
          schema:
            type: boolean
        - name: q
          in: query
          schema:
            type: string
          description: Substring match over the storage key and URL.
        - name: mimeTypePrefix
          in: query
          schema:
            type: string
          description: e.g. `image/`, `video/`, `audio/`.
        - name: requestId
          in: query
          schema:
            type: string
          description: Only files linked to this request.
        - name: role
          in: query
          schema:
            type: string
            enum:
              - input
              - output
              - thumbnail
          description: Only files linked in this role.
        - name: source
          in: query
          schema:
            type: string
            enum:
              - upload
              - request_output
              - external
          description: >-
            Filter on the stored `source` column. Prefer `sources`, which
            matches the buckets in File Facets.
        - name: order
          in: query
          schema:
            type: string
            enum:
              - newest
              - oldest
            default: newest
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
      responses:
        '200':
          description: One page of files.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/File'
                  pagination:
                    $ref: '#/components/schemas/PaginationMeta'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    File:
      type: object
      description: >-
        One asset in your library — a file you uploaded or an output a model
        produced for you.
      properties:
        id:
          type: string
          format: uuid
        url:
          type: string
          description: >-
            Canonical public URL on the media domain. Pass this to any model
            input that accepts a file.
        thumbnailUrl:
          type:
            - string
            - 'null'
          description: >-
            Lightweight generated preview (`.webp` image / `.webm` motion
            preview) for request outputs. Null for uploads, audio, and older
            rows — fall back to `url`.
        userId:
          type:
            - string
            - 'null'
        mimeType:
          type:
            - string
            - 'null'
        sizeBytes:
          type:
            - integer
            - 'null'
        storageKey:
          type:
            - string
            - 'null'
        source:
          type: string
          enum:
            - upload
            - request_output
            - external
          description: >-
            How the row was created: `upload` (you uploaded it),
            `request_output` (a model produced it), `external` (a URL recorded
            from elsewhere).
        createdAt:
          type: string
          format: date-time
        isFavorited:
          type: boolean
          description: Whether you have favorited this file.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: Tags you have applied to this file.
    PaginationMeta:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
          description: Total matching rows across all pages.
        totalPages:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        request_id:
          type: string
          description: Correlation id for support.
    Tag:
      type: object
      description: >-
        A tag in your personal tag collection. Tags are per-account and never
        shared.
      properties:
        id:
          type: string
          format: uuid
        userId:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use the format: Key modelrunner_key'

````