> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# List the model directories a model may be placed in

> The vetted set of ComfyUI model directories (checkpoints, loras, vae, ...) a build's model may target, so the create/edit flow can offer them as a placement dropdown. Sorted, static, and identical for every caller; it is the same allow-list the builder validates a model's type against.




## OpenAPI

````yaml /openapi-builder.yaml get /v1/model-directories
openapi: 3.0.3
info:
  title: Comfy Builder API
  version: 0.1.0
  description: >
    Builder owns builds (editable environment definitions) and cuts immutable,
    deployable releases that Deploy later runs.
servers:
  - url: https://platformapi.comfy.org/builder
    description: Comfy Developer Platform
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /v1/model-directories:
    get:
      summary: List the model directories a model may be placed in
      description: >
        The vetted set of ComfyUI model directories (checkpoints, loras, vae,
        ...) a build's model may target, so the create/edit flow can offer them
        as a placement dropdown. Sorted, static, and identical for every caller;
        it is the same allow-list the builder validates a model's type against.
      operationId: listModelDirectories
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelDirectoryList'
components:
  schemas:
    ModelDirectoryList:
      type: object
      required:
        - directories
      properties:
        directories:
          type: array
          description: Sorted model directory names a model's type may be set to.
          items:
            type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        A workspace-scoped Cloud JWT. A missing or invalid token is 401
        UNAUTHORIZED in the Error body.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        A workspace API key, sent alone. The service checks it on every request
        and acts as the key's user in the key's workspace. A request carrying a
        key and a Bearer token is 400 INVALID_REQUEST, and a value that is not a
        key's shape is 401 UNAUTHORIZED. A refused key answers 401
        (UNAUTHORIZED), 403 (FORBIDDEN), 404 (NOT_FOUND) or 429 (RATE_LIMITED)
        with its message and Retry-After; a 503 (SERVICE_UNAVAILABLE) means the
        key could not be checked right now, so retry. Each refusal answers the
        Error body.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.