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

# Get File

> One file with every request it is linked to, as input or output.



## OpenAPI

````yaml /platform-openapi.json get /files/{fileId}
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/{fileId}:
    get:
      summary: Get File
      description: One file with every request it is linked to, as input or output.
      parameters:
        - name: fileId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The file and its request linkages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileWithRequests'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: >-
            No such file, or it belongs to another account — the two are
            deliberately indistinguishable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    FileWithRequests:
      type: object
      description: A file plus its request linkages.
      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.
        requests:
          type: array
          items:
            $ref: '#/components/schemas/FileRequestLink'
          description: Every request this file is linked to, as input or output.
    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
    FileRequestLink:
      type: object
      description: A link between a file and a request that used or produced it.
      properties:
        requestId:
          type: string
        role:
          type: string
          enum:
            - input
            - output
            - thumbnail
          description: >-
            `input` — the file was passed into the request; `output` — the
            request produced it.
        position:
          type: integer
          description: Index within that role, for multi-file requests.
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use the format: Key modelrunner_key'

````