---
title: "Get models in a specific folder"
method: GET
path: "/api/experiment/models/{folder}"
tags: ["file"]
---

# Get models in a specific folder

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

Returns a list of models available in the specified folder.
This is an experimental endpoint that provides enhanced model information.
Accepted folder identifiers are those returned by /api/experiment/models for the same
caller. That vocabulary is request-scoped, so list folders and fetch a folder's models
with the same credentials — a name obtained anonymously may not resolve when
authenticated, and vice versa.

## Path parameters

- `folder` string, required

## Response `200`

Success - List of models in the folder

- ModelFile[]
  - `name` string, required — The filename of the model
  - `pathIndex` integer, required — Index of the path where this model is located

## Other responses

- `404` — Folder not found or no models in folder
- `500` — Internal server error

## Changes

- **2026-08-13** `da017caf56f1` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was added to the API
- **2026-06-03** `8560879e6188` — 3 warning, 4 info
  - removed the optional property `items/created` from the response with the `200` status
  - removed the optional property `items/modified` from the response with the `200` status
  - removed the optional property `items/size` from the response with the `200` status
  - api tag `file` added
  - …3 more
- **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/da017caf56f1/schema)
