The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
ComfyUI lets you design and execute advanced Stable Diffusion pipelines using a node-based graph interface. It supports a wide range of models including SD 1.5, SDXL, Flux, Hunyuan Video, Wan Video, LTX Video, Mochi, and more.
- Click Install to set up ComfyUI and its dependencies.
- Click Start to launch the server.
- Once started, click Open Web UI to open the ComfyUI interface in your browser.
- Use the Download Models menu to fetch checkpoints and LoRAs.
- Use the Download Mix menu to install model bundles for specific workflows (Wan Video, Hunyuan Video, LTX, Flux Tools, Mochi).
- Click Update to pull the latest ComfyUI code and dependencies.
- Click Reset to wipe the installation and start fresh.
ComfyUI exposes a REST API at http://127.0.0.1:<PORT> (the port is shown in the launcher after start).
JavaScript
const response = await fetch("http://127.0.0.1:8188/prompt", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
prompt: { /* your workflow JSON here */ },
client_id: "my-client"
})
})
const data = await response.json()
console.log(data.prompt_id)Python
import requests, json
url = "http://127.0.0.1:8188/prompt"
payload = {
"prompt": {}, # your workflow JSON here
"client_id": "my-client"
}
response = requests.post(url, json=payload)
print(response.json())cURL
curl -X POST http://127.0.0.1:8188/prompt \
-H "Content-Type: application/json" \
-d '{"prompt": {}, "client_id": "my-client"}'curl http://127.0.0.1:8188/queuecurl http://127.0.0.1:8188/historycurl http://127.0.0.1:8188/object_info