ComfyUI
Submit image-generation workflows to a ComfyUI instance and retrieve results.
ComfyUI
ComfyUI is a node-based UI and server for Stable Diffusion and related generative image models. The AACFlow block talks directly to a running ComfyUI instance via its HTTP API.
Official documentation: https://docs.comfy.org/
Setup
- Start a ComfyUI instance (local or remote). By default it listens on
http://localhost:8188. - If the instance requires authentication, obtain an API key from its settings.
- In AACFlow, add a ComfyUI block, set the Base URL to your instance address, and optionally enter the API key.
No sign-up or cloud account is needed for a local instance.
Operations
| Operation | Description |
|---|---|
comfyui_prompt | Submit a ComfyUI workflow JSON to the queue and return the assigned prompt ID. |
comfyui_history | Retrieve the history and output images for a previously submitted prompt ID. |
comfyui_status | Return system statistics (queue length, memory, loaded models) from the instance. |
Example workflow
Send a JSON workflow definition to comfyui_prompt, poll comfyui_history with a Wait block until images are ready, then pass the output file paths to a downstream block for storage or delivery.
Links
- Official API docs: https://docs.comfy.org/
- ComfyUI GitHub: https://github.com/comfyanonymous/ComfyUI
- Block source: apps/aacflow/blocks/blocks/comfyui.ts

