Install
openclaw skills install comfyui-apiConnects to a ComfyUI server to generate images from prompts, auto-detects URLs, translates Chinese prompts, and supports REST and WebSocket APIs.
openclaw skills install comfyui-api自动检测 URL 设置,直接输入提示词即可生成图片。
用户输入包含 URL 时自动设置连接:
设置连接 https://localhost:8188
set url: https://localhost:8188
设置连接后,直接发送提示词:
生成一只可爱的猫
a beautiful sunset over mountains
| 方法 | 端点 | 说明 |
|---|---|---|
| POST | {server}/api/prompt | 提交工作流 |
| GET | {server}/history/{id} | 获取结果 |
| GET | {server}/view?filename=xxx | 获取图像 |
wss://{server}/ws{"prompt": {...}, "client_id": "xxx"}executing, executed, status| 命令 | 说明 |
|---|---|
set_url <url> | 手动设置服务器地址 |
status | 检查服务器状态 |
generate <提示词> | 生成图像 |
自动将中文提示词转换为英文:
# 设置连接 (多种方式)
设置连接 https://localhost:8188
set_url https://localhost:8188
# 直接生成
生成一只可爱的猫
a beautiful sunset over mountains
# 查看状态
status