Overview
This node integrates with ComfyUI to manage its workflow queue and model resources. It supports operations for queue management such as retrieving recent history, checking queue status, clearing the queue, interrupting execution, and managing history records. It also supports model management operations like listing all models, filtering models by type, and retrieving lists of samplers, schedulers, extensions, and embeddings. This node is useful for automating and monitoring ComfyUI workflows and resources within an n8n automation environment.
Use Case Examples
- Automate clearing the ComfyUI task queue before starting a new batch of tasks.
- Retrieve the latest 5 history records from ComfyUI to analyze recent workflow executions.
- Get a list of all available models or filter models by specific types like checkpoints or LoRA models.
- Interrupt currently running tasks in ComfyUI to quickly stop processing when needed.
Properties
| Name | Meaning |
|---|---|
| Operation Category | Selects the category of operation to execute, either queue management or model management. |
| Queue Operation | Specifies the queue-related operation to perform, such as getting recent history, queue status, clearing queue, interrupting execution, clearing history, deleting a history item, or getting system information. |
| Prompt ID | The identifier of the history record item to delete. Required when deleting a specific history item. |
| Model Operation | Specifies the model-related operation to perform, such as getting all models, models by type, samplers, schedulers, extensions, or embeddings. |
| Model Type | Specifies the type of model to retrieve when filtering models by type, such as checkpoints, VAE, LoRA, ControlNet, CLIP, CLIP Vision, Diffusers, regularization images, or upscalers. |
Output
JSON
json- The JSON output contains the response data from the ComfyUI API for the selected operation. This can include queue status, history records, model lists, system information, or success messages for actions like clearing the queue or deleting history items.
Dependencies
- Requires an API URL and an API key credential for authenticating requests to the ComfyUI server.
Troubleshooting
- Common errors include 403 Forbidden (check server running status, URL correctness, access restrictions, firewall settings), 404 Not Found (API endpoint issues or outdated ComfyUI version), 500 Internal Server Error (server issues, check logs and restart), connection refused (server not running or network issues), and request timeouts (network or server load issues).
- Error messages provide suggestions for resolving issues such as verifying server status, URL, network connectivity, and server resource usage.
Links
- ComfyUI GitHub Repository - Official repository for ComfyUI, useful for understanding API capabilities and server setup.