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

> How many of your files fall in each bucket, under the type, tag, and search filters you pass. Bucket filters (`sources`, `favoritesOnly`) are what is being counted, so they are ignored here.



## OpenAPI

````yaml /platform-openapi.json get /files/facets
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/facets:
    get:
      summary: Get File Facets
      description: >-
        How many of your files fall in each bucket, under the type, tag, and
        search filters you pass. Bucket filters (`sources`, `favoritesOnly`) are
        what is being counted, so they are ignored here.
      parameters:
        - 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: 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/`.
      responses:
        '200':
          description: Counts per bucket.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileFacets'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    FileFacets:
      type: object
      description: Counts per asset bucket under the active type/tag/search filters.
      properties:
        all:
          type: integer
        favorites:
          type: integer
        uploads:
          type: integer
        outputs:
          type: integer
        inputs:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        request_id:
          type: string
          description: Correlation id for support.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use the format: Key modelrunner_key'

````