
Comfyui Api
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
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_typeand 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 -yInstalls 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.
- Test connection:
GET /system_stats - Discover capabilities: Use
comfyui-inventoryskill - Queue workflow:
POST /prompt - Poll for results:
GET /history/{prompt_id}every 5 seconds - Retrieve outputs:
GET /view?filename=...
Offline Mode (No Server)
Export workflow JSON for manual loading in ComfyUI.
- Generate workflow JSON following ComfyUI's format
- Save to
projects/{project}/workflows/{name}.json - 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 10Similar to Comfyui Api
More AI Image, Video & Voice
Comfyui McpMCP serverartokun946 starsLocal and remote ComfyUI control: generate images, run workflows, and manage models and VRAM.
cli-anything-comfyuiSkillhkuds/cli-anything600 installsCommand-line control of ComfyUI's REST API for queuing workflows, managing models, and downloading images.
comfyui-inventorySkillmckruz/comfyui-expert623 installsCatalog-ready inventory of installed ComfyUI models, custom nodes, and GPU capacity, queried live or scanned offline.
Comfy McpMCP servercomfy-org367 starsDrives a local ComfyUI install: runs workflows, generates images, monitors jobs, and previews media.
comfyui-workflow-builderSkillmckruz/comfyui-expert2.3K installsGenerates validated ComfyUI workflow JSON from natural language, covering txt2img, inpainting, ControlNet, and upscaling pipelines.
viewcomfy-api-rulesSkillmindrally/skills698 installsIntegration guidance for calling the ViewComfy API from Python web apps, covering workflow deployment through output handling.