Connect to ComfyUI's REST API to execute workflows, monitor progress, and retrieve outputs.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioncomfyui-apiExecute the skills CLI command in your project's root directory to begin installation:
Fetches comfyui-api from mckruz/comfyui-expert and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate comfyui-api. Access via /comfyui-api in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
3
total installs
3
this week
35
GitHub stars
0
upvotes
Run in your terminal
3
installs
3
this week
35
stars
Connect to ComfyUI's REST API to execute workflows, monitor progress, and retrieve outputs.
http://127.0.0.1:8188Full API access. Preferred mode for interactive work.
GET /system_statscomfyui-inventory skillPOST /promptGET /history/{prompt_id} every 5 secondsGET /view?filename=...Export workflow JSON for manual loading in ComfyUI.
projects/{project}/workflows/{name}.jsoncurl http://127.0.0.1:8188/system_stats
Response fields:
system.os: Operating systemsystem.comfyui_version: Version stringdevices[0].name: GPU namedevices[0].vram_total: Total VRAM bytesdevices[0].vram_free: Free VRAM bytescurl -X POST http://127.0.0.1:8188/prompt \
-H "Content-Type: application/json" \
-d '{"prompt": WORKFLOW_JSON, "client_id": "video-agent"}'
WORKFLOW_JSON format:
{
"1": {
"class_type": "LoadCheckpoint",
"inputs": {
"ckpt_name": "flux1-dev.safetensors"
}
},
"2": {
"class_type": "CLIPTextEncode",
"inputs": {
"text": "photorealistic portrait...",
"clip": ["1", 1]
}
}
}
Each node is keyed by a string ID. Inputs reference other nodes as ["{node_id}", {output_index}].
Response:
{"prompt_id": "abc-123-def", "number": 1}
curl http://127.0.0.1:8188/history/abc-123-def
Incomplete: Returns {} (empty object)
Complete: Returns execution data with outputs:
{
"abc-123-def": {
"outputs": {
"9": {
"images": [{"filename": "ComfyUI_00001.png", "subfolder": "", "type": "output"}]
}
},
"status": {"completed": true}
}
}
curl "http://127.0.0.1:8188/view?filename=ComfyUI_00001.png&subfolder=&type=output" -o output.png
curl -X POST http://127.0.0.1:8188/upload/image \
-F "[email protected]" \
-F "subfolder=input" \
-F "type=input"
curl -X POST http://127.0.0.1:8188/interrupt
curl -X POST http://127.0.0.1:8188/free \
-H "Content-Type: application/json" \
-d '{"unload_models": true}'
ComfyUI doesn't support WebSocket in CLI context. Use REST polling:
POST /prompt → get prompt_idGET /history/{prompt_id} every 5 secondsstatus.completedcompleted: true, extract outputscomfyui-troubleshooterTimeout: Warn user after 10 minutes of polling. Video generation (Wan 14B) can take 15-30 minutes.
Before queuing any workflow:
state/inventory.json (via comfyui-inventory)class_type exists in installed nodesComfyUI-Manager install commandreferences/models.md| Error | Cause | Action |
|---|---|---|
| Connection refused | ComfyUI not running | Switch to offline mode, save JSON |
| 400 Bad Request | Invalid workflow JSON | Validate node connections |
| 500 Internal Error | ComfyUI crash | Suggest restart, check logs |
| Timeout (no response) | Server overloaded | Wait and retry once |
Full API documentation: foundation/api-quick-ref.md
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
leonxlnx/taste-skill
sickn33/antigravity-awesome-skills
erichowens/some_claude_skills
Keeps context tight: comfyui-api is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for comfyui-api matched our evaluation — installs cleanly and behaves as described in the markdown.
We added comfyui-api from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
I recommend comfyui-api for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
comfyui-api reduced setup friction for our internal harness; good balance of opinion and flexibility.
comfyui-api has been reliable in day-to-day use. Documentation quality is above average for community skills.
I recommend comfyui-api for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
comfyui-api fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added comfyui-api from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in comfyui-api — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 41