a2454c39e73c52eb8474ccc461f50379040c04eb
Love API? Me too. Added a robust API for model and image handling, sprinkled in Prometheus metrics for fun graphs, and tossed in colorful logging because why not? Pretty sure I even taught it to make coffee (spoiler: it doesn’t). All aboard the functionality express! 🚂
ComfyUI API Tools
Add some extra endpoints to ComfyUI to manage / monitor remotely.
Get started
- go to custom_nodes
cd custom_nodes - clone the repository
git clone https://github.com/brantje/ComfyUI-api-tools cd ComfyUI-api-tools
API Endpoints
| Endpoint | Method | Description | Parameters |
|---|---|---|---|
/api-tools/v1/models |
GET | List all model folders | None |
/api-tools/v1/models/{folder} |
GET | Get all models in the folder | None |
/api-tools/v1/models/{folder}/refresh |
POST | Refresh the list of models and return the updated list | None |
/api-tools/v1/models/{folder}/{model} |
DELETE | Remove a model from the file system | None |
/api-tools/v1/images/output |
GET | List all the output images | temp: (boolean) When true, only lists temporary output images generated by the PreviewImage node |
/api-tools/v1/images/output/{filename} |
DELETE | Delete the output image with the given filename | temp: (boolean) When true, only deletes temporary output images generated by the PreviewImage node |
/api-tools/v1/images/input |
GET | List all the input images | |
/api-tools/v1/images/input/{filename} |
DELETE | Delete the input image with the given filename | None |
/api-tools/v1/metrics |
GET | Prometheus metrics | None |
Languages
Python
100%