← 返回
未分类 中文

ComfyUI Generator

Generate AI images and perform style transfers via ComfyUI with batch processing and automated workflow management through OpenClaw integration.
在ComfyUI中使用OpenClaw集成生成AI图像和执行风格迁移,支持批量处理和自动化工作流管理。
nl108 nl108 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 353
下载
💾 1
安装
1
版本
#comfyui#generation#image#latest

概述

ComfyUI Generator Skill

Overview

Integration between OpenClaw and ComfyUI for AI media generation.

Features

  • Text-to-image generation
  • Image style transfer
  • Batch processing
  • Automated workflow management
  • File monitoring and archiving

Installation

Prerequisites

  1. ComfyUI installed at C:\ComfyUI
  2. ComfyUI service running on http://127.0.0.1:8188
  3. OpenClaw 2026.4.5+

Setup

# Set environment variables
export COMFY_API_KEY="local_comfyui"
export COMFY_BASE_URL="http://127.0.0.1:8188"

# Copy workflow files
cp -r workflows/*.json "C:\ComfyUI\input\workflows\"

Usage

Generate Image

openclaw comfy generate --prompt "a beautiful landscape" --style cyberpunk

Style Transfer

openclaw comfy style --image "path/to/image.jpg" --style "van gogh"

Batch Processing

openclaw comfy batch --input prompts.txt --output output_dir --iterations 5

Configuration

Environment Variables

COMFY_API_KEY="local_comfyui"
COMFY_BASE_URL="http://127.0.0.1:8188"
COMFY_OUTPUT_DIR="C:\ComfyUI\output"

Workflow Configuration

Place workflow JSON files in:

C:\ComfyUI\input\workflows\

Examples

Basic Image Generation

from comfy_client import ComfyUIClient

client = ComfyUIClient()
result = client.generate_image(
    prompt="a futuristic city at night",
    workflow="image_generation.json"
)

Style Transfer

result = client.style_transfer(
    image_path="input.jpg",
    style="cyberpunk",
    workflow="style_transfer.json"
)

Troubleshooting

Service Not Running

# Check if ComfyUI is running
curl http://127.0.0.1:8188

# Start ComfyUI
python "C:\ComfyUI\main.py" --listen 127.0.0.1 --port 8188

API Connection Issues

  1. Verify firewall allows port 8188
  2. Check ComfyUI logs in C:\ComfyUI\logs\
  3. Ensure API key is set correctly

Generation Quality

  • Use detailed prompts
  • Adjust workflow parameters
  • Try different models

Files

Core Scripts

  • scripts/comfy_client.py - API client
  • scripts/prompt_generator.py - Prompt optimization
  • scripts/file_monitor.py - Output monitoring

Workflow Files

  • workflows/image_generation.json - Basic image generation
  • workflows/style_transfer.json - Style transfer
  • workflows/upscale.json - Image upscaling

Configuration

  • config/settings.yaml - Skill configuration
  • config/prompt_templates.json - Prompt templates

License

MIT License

Support

For issues and questions, please check:

  1. ComfyUI documentation
  2. OpenClaw documentation
  3. Skill logs in C:\Users\LEI\.openclaw\logs\

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 07:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 136 📥 53,183
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 227 📥 48,754
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 435 📥 117,802