
Comfyui Api
This connects Claude to a running ComfyUI instance so you can queue workflows, poll for completion, and grab the outputs without leaving the terminal. It hits the REST API endpoints for prompt submission, history checking, and file retrieval, with a fallback to JSON export mode when the server isn't running. The polling strategy is straightforward: POST your workflow, then GET the history endpoint every 5 seconds until you see results. It includes validation against your installed nodes and models before queuing anything. Useful when you're orchestrating image or video generation from ComfyUI as part of a larger automated pipeline and don't want to touch the web UI.
- skills.sh installs
- 2.1K
- GitHub stars
- 94
- last updated
- Jul 14, 2026
Install
$ npx -y skills add mckruz/comfyui-expert --skill comfyui-api --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/mckruz/comfyui-expert
- Categories
- Backend & APIs, Generative Media
- First seen
- Apr 16, 2026