New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Connects to a running ComfyUI server to queue workflows, poll progress, and fetch outputs over REST.

skills.sh installs
2.1K
GitHub stars
95
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers online mode over the REST API and offline mode, which exports workflow JSON for manual loading in ComfyUI
  • Includes endpoints for /system_stats, /prompt, /history/{prompt_id}, /view, /upload/image, /interrupt, and /free
  • Validates each node's class_type and each model reference against the installed inventory before queuing a workflow
  • Designed for agent-driven image and video generation on a local ComfyUI instance, with REST polling every 5 seconds

Install

$ npx -y skills add mckruz/comfyui-expert --skill comfyui-api -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ComfyUI API Skill

Connect to ComfyUI's REST API to execute workflows, monitor progress, and retrieve outputs.

Configuration

  • Default URL: http://127.0.0.1:8188
  • Custom URL: Set in project manifest or pass as parameter
  • Timeout: 30s for API calls, no timeout for generation polling

Two Modes

Online Mode (ComfyUI Running)

Full API access. Preferred mode for interactive work.

  1. Test connection: GET /system_stats
  2. Discover capabilities: Use comfyui-inventory skill
  3. Queue workflow: POST /prompt
  4. Poll for results: GET /history/{prompt_id} every 5 seconds
  5. Retrieve outputs: GET /view?filename=...

Offline Mode (No Server)

Export workflow JSON for manual loading in ComfyUI.

  1. Generate workflow JSON following ComfyUI's format
  2. Save to projects/{project}/workflows/{name}.json
  3. Instruct user to drag-drop into ComfyUI

API Operations

Check Server Status

curl http://127.0.0.1:8188/system_stats

Details

Repository
github.com/mckruz/comfyui-expert
Categories
AI Image, Video & Voice, AI Agents & LLM Apps
First seen
Apr 16, 2026

More from mckruz/comfyui-expert

All 10

Similar to Comfyui Api

More AI Image, Video & Voice