---
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
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `getExperimentModelsByFolder` removed and replaced with `getModelsInFolder`
  - added the non-success response with the status `500`
- **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/09a5075587c8/schema)
