comfyui

Generate images, video, and audio by executing ComfyUI diffusion workflows via REST and WebSocket APIs.

Updated Sep 10, 2026
One-click install
npx skills add https://github.com/loteiron/ZeusAgent --skill comfyui-loteiron
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: comfyui
Source: https://github.com/loteiron/ZeusAgent/tree/main/optional-skills/creative/comfyui
Command: npx skills add https://github.com/loteiron/ZeusAgent --skill comfyui-loteiron

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires comfy-cli, websocket-client, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve? Setting up ComfyUI and running diffusion workflows programmatically requires juggling hardware checks, comfy-cli lifecycle commands, API-format workflow JSON, dependency resolution, and output downloads, which is error-prone when done manually. ## Core Features & Use Cases - Guided Setup: Hardware probing (GPU/VRAM/disk) routes users to local install via comfy-cli or Comfy Cloud, with automated install, launch, and health verification. - Workflow Execution: Inject parameters into API-format workflow JSON, submit jobs, monitor progress over WebSocket, and download outputs locally or from Comfy Cloud. - Dependency Management: Extract controllable parameters from a workflow, check required custom nodes and models against a running server, and auto-install missing pieces. - Use Case: A user asks for eight variations of an SDXL image with random seeds; the skill checks dependencies, runs the batch in parallel, and returns the generated files. ## Quick Start Use the comfyui skill to generate an image of a sunset over mountains with the SDXL text-to-image workflow.

Frequently Asked Questions about comfyui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a ComfyUI workflow from the command line?▼

Use run_workflow.py with an API-format workflow JSON and a parameter payload, for example passing prompt, seed, and steps via --args. The script submits the job to the server, monitors execution, and downloads outputs to your chosen directory.

How do I install ComfyUI locally with comfy-cli?▼

Run the comfyui_setup.sh script, which checks your hardware, installs comfy-cli via pipx or uvx, installs ComfyUI with the right GPU flag, and launches the server on port 8188. It refuses local installs when hardware is insufficient and suggests Comfy Cloud instead.

What hardware do I need to run ComfyUI locally?▼

Local ComfyUI needs an NVIDIA GPU with at least 6 GB VRAM (8 GB for SDXL, 12 GB or more for Flux and video), an AMD GPU with ROCm on Linux, or an Apple Silicon Mac with 16 GB unified memory. Intel Macs and GPU-less machines should use Comfy Cloud.

Can I use Comfy Cloud instead of installing ComfyUI locally?▼

Yes, Comfy Cloud runs hosted workflows with an API key from platform.comfy.org, set via the COMFY_CLOUD_API_KEY environment variable. Note that the free tier cannot run workflows through the API; a paid subscription is required for prompt execution and uploads.

Why does my ComfyUI workflow fail with class_type not found?▼

This error means a required custom node is not installed on the server. Run check_deps.py against the workflow to identify missing nodes and models, then auto_fix_deps.py to install them via comfy node install, followed by a server restart.

What is the difference between editor format and API format workflows?▼

API format workflows have top-level node IDs each containing a class_type field and are directly executable via the REST API. Editor format has top-level nodes and links arrays and must be re-exported from the ComfyUI web UI using Export (API) before scripts can run it.