comfyui-api
通过 HTTP API 与 ComfyUI 服务交互,支持工作流提交与执行、队列管理、文件上传和能力探测;自动检测视频工作流并使用合适超时;简洁输出执行结果;当用户需要使用 ComfyUI 生成图像、视频、音频或管理服务时使用
Why use this skill?
Learn how to use the ComfyUI API skill for OpenClaw to automate image, video, and audio generation via HTTP. Manage queues, workflows, and uploads seamlessly.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chsengni/comfyui-api-skillWhat This Skill Does
The ComfyUI API skill enables the OpenClaw AI agent to interface directly with a ComfyUI server instance via HTTP/WebSockets. It serves as a comprehensive bridge for automating complex generative workflows, including image, video, and audio production. The skill provides full control over the execution lifecycle: submitting JSON-formatted workflows, managing the server's task queue, uploading necessary assets (like reference images, models, or source audio), and performing capability probes to ensure the server is configured correctly. It features intelligent, automated timeout management—differentiating between lightweight image generation and heavy video rendering tasks—and simplifies the retrieval of complex outputs by handling file downloads automatically into your local directories.
Installation
To integrate this skill, use the ClawHub CLI tool in your environment:
clawhub install openclaw/skills/skills/chsengni/comfyui-api-skill
Ensure your system meets the requirements (Python 3.8+, requests, websocket-client, Pillow, and pyyaml). The skill assumes a default local connection at http://127.0.0.1:8188, though you can override this via the --server-url parameter if your ComfyUI instance is running on a remote GPU cluster.
Use Cases
This skill is perfect for automating batch image generation, converting static assets into animated video clips, processing audio-to-waveform visualizers, or managing long-running AI pipelines. Developers can use it to integrate ComfyUI into larger LLM-driven applications, allowing the agent to manage the state of the rendering queue without human intervention, while designers can leverage the workflow_manager to iterate through stored project configurations.
Example Prompts
- "Run the image generation workflow 'fantasy_landscape.json' and save the result to my downloads folder."
- "Check the current ComfyUI queue; if there are more than 5 tasks pending, let me know before starting a new video render."
- "Upload 'character_sketch.png' as an input image and trigger the 'img2img_style_transfer' workflow using it."
Tips & Limitations
To get the most out of this skill, organize your workflows/ directory logically, as this allows the agent to recall and execute them by name instantly. If you are dealing with complex video animations (e.g., AnimateDiff or FrameInterpolation), allow for longer timeout periods. Note that the skill relies on the stability of your ComfyUI backend; ensure your custom nodes are installed on the server side prior to execution, as the skill merely facilitates the communication layer and does not install missing backend dependencies automatically.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chsengni-comfyui-api-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution
Related Skills
xiangongyun-api
仙宫云GPU云服务平台API集成工具,支持实例管理、私有镜像管理、账号管理等全量操作;当用户需要查询或管理仙宫云GPU实例、操作私有镜像、查询账户余额或充值时使用
skills-update-manager
管理已安装技能的注册、版本跟踪与自动更新检查;当用户安装新技能、检查技能更新或配置更新策略时使用。
compshare-api
管理优云智算CompShare平台的GPU实例全生命周期,包括创建、查询、启动、停止、重启、重置密码和删除实例;当用户需要创建GPU云服务器、查询实例状态、管理实例启停、重置实例密码或删除实例时使用