models-files

List Local Model Files

Changed on

Retrieves paginated list of GGUF model files available in the local HuggingFace cache directory with metadata including repository, filename, snapshot ID, and file size. Requires any authenticated user (User level permissions or higher).

get/bodhi/v1/models/files

Request

  • Base URL: http://localhost:1135
  • URL: http://localhost:1135/bodhi/v1/models/files
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback, scopes: resource_user)

Query parameters

pageinteger

Page number (1-based indexing)

page_sizeinteger

Number of items to return per page (maximum 100)

sortstring

Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at

sort_orderstring

Sort order: 'asc' for ascending, 'desc' for descending

Response

Local model files retrieved successfully from cache

totalinteger required
pageinteger required
page_sizeinteger required

Changes

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status