360 Secure SkillHub
360 安全技能中心

Comfyui anfrage

通过 bin/cli.js 读取环境变量或 .env 中的 ComfyUI 连接配置,把 workflow JSON POST 到 http://{host}:{port}/run,并返回含 image 字段(图片 URL 或 base64)的响应 JSON;依赖 node 与 curl。

xtopher86
xtopher86
热度 98.34
最近更新 2026-05-11 15:50:52
分类:创作依赖:代码执行 / 第三方 API应用场景:图像生成 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add comfyui-request
Metadata
name
comfyui-request
description
Send a workflow request to ComfyUI and return image results.
metadata
{"clawdbot":{"emoji":"🧩","requires":{"bins":["node","curl"]},"entry":"bin/cli.js"}}

comfyui-request

Purpose

Send a workflow request to a running ComfyUI instance and return the generated image URL or base64 data.

Configuration

  • COMFYUI_HOST: Host/IP of the ComfyUI server (default 192.168.179.111).
  • COMFYUI_PORT: Port of the ComfyUI server (default 28188).
  • COMFYUI_USER: Optional username for basic auth.
  • COMFYUI_PASS: Optional password for basic auth.

These can be set via environment variables or a .env file in the skill directory.

Usage

{
  "action": "run",
  "workflow": { ... }   // JSON workflow object
}

The skill will POST to http://{host}:{port}/run and return the response JSON.

Example

{
  "action": "run",
  "workflow": {
    "nodes": [ ... ],
    "edges": [ ... ]
  }
}

Notes

The skill expects the ComfyUI server to expose the /run endpoint and return a JSON object containing an image field with a URL or base64 string.