---
title: "List model files with metadata"
method: GET
path: "/api/experiment/models/{folder}"
tags: ["model"]
---

# List model files with metadata

`GET /api/experiment/models/{folder}`

Returns the model files in the given folder with richer metadata (path index, mtime, size) than the legacy `/api/models/{folder}` endpoint.

## Path parameters

- `folder` string, required

## Response `200`

Model files with metadata

- ModelFile[]
  - `name` string, required — Model filename
  - `pathIndex` integer, required — Index into the folder's paths array
  - `modified` number — File modification timestamp
  - `created` number — File creation timestamp
  - `size` integer — File size in bytes

## Other responses

- `404` — Unknown folder type

## Changes

- **2026-04-24** `a66055fa384e` — 1 breaking, 7 info
  - removed the media type `application/json` for the response with the status `404`
  - api operation id `getModelsInFolder` removed and replaced with `getExperimentModelsByFolder`
  - api tag `model` added
  - api tag `file` removed
  - …4 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/experiment/models/:folder/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/a66055fa384e/schema)
