Files
comfyuiattic-989-ComfyUI-Ex…/api_spec.yaml
ComfyUI Attic af0e346fbe Initial Commit
ComfyUI External LoRA Loader

A ComfyUI custom node that lets you load LoRA files from **any path on any mounted drive** — no server restarts, no manual config edits, no symlinks.
2026-04-14 13:44:51 -04:00

53 lines
1.4 KiB
YAML

openapi: 3.0.0
info:
title: External LoRA Loader API
version: 1.0.0
description: Bridge between ComfyUI web interface and local filesystem.
paths:
/external_lora/list_files:
post:
summary: Scans a directory for LoRA files.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
drive:
type: string
example: "D:/"
path:
type: string
example: "AI/Models/Loras"
responses:
200:
description: List of valid model files found.
content:
application/json:
schema:
type: object
properties:
files:
type: array
items:
type: string
example: ["anime_style.safetensors", "detailer.ckpt"]
404:
description: Directory not found or inaccessible.
/external_lora/clear_cache:
post:
summary: Flushes the LORA_CACHE dictionary in System RAM.
responses:
200:
description: Cache cleared successfully.
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "cleared"