원클릭으로
generate-with-comfyui
Invoke ComfyUI workflows to generate images, video, audio, or other content
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Invoke ComfyUI workflows to generate images, video, audio, or other content
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | generate-with-comfyui |
| description | Invoke ComfyUI workflows to generate images, video, audio, or other content |
Programmatically invoke ComfyUI workflows to generate content. Modify prompts, queue workflows, wait for completion, and retrieve results.
Use this skill when:
http://127.0.0.1:8188D:\ComfyUI7\ComfyUI\user\default\workflows\Invoke-RestMethod -Uri "http://127.0.0.1:8188/system_stats" -Method Get
D:\ComfyUI7\python_embeded\python.exe ".agent\skills\generate-with-comfyui\scripts\comfyui_client.py" --help
$response = Invoke-RestMethod -Uri "http://127.0.0.1:8188/system_stats" -Method Get -ErrorAction SilentlyContinue
if ($response) { "ComfyUI is running" } else { "ComfyUI is NOT running" }
Load the workflow from D:\ComfyUI7\ComfyUI\user\default\workflows\. Example workflow for quick image generation:
movie 1 - zimage-quick-frame-production.jsonFind the prompt node (typically CLIPTextEncode) and modify widgets_values[0]:
import json
# Load workflow
with open(workflow_path) as f:
workflow = json.load(f)
# Find and modify prompt node
for node in workflow["nodes"]:
if node["type"] == "CLIPTextEncode":
node["widgets_values"][0] = "Your new prompt here"
break
POST the workflow to /prompt:
import requests
import json
# Convert workflow to API format (nodes by ID)
prompt = {}
for node in workflow["nodes"]:
prompt[str(node["id"])] = {
"class_type": node["type"],
"inputs": {} # Map inputs from links
}
response = requests.post(
"http://127.0.0.1:8188/prompt",
json={"prompt": prompt}
)
prompt_id = response.json()["prompt_id"]
Poll /history/{prompt_id} or use WebSocket at /ws:
import time
while True:
history = requests.get(f"http://127.0.0.1:8188/history/{prompt_id}").json()
if prompt_id in history:
break
time.sleep(1)
Get output files from history:
outputs = history[prompt_id]["outputs"]
for node_id, output in outputs.items():
if "images" in output:
for img in output["images"]:
filename = img["filename"]
subfolder = img.get("subfolder", "")
# File at: D:\ComfyUI7\ComfyUI\output\{subfolder}\{filename}
When the workflow completes, the helper script will provide absolute paths to the generated files. You MUST present these to the USER as follows:
[Download Video](file:///D:/ComfyUI7/ComfyUI/output/example.mp4)To use this skill, follow these steps:
D:\ComfyUI7\python_embeded\python.exe ".agent\skills\generate-with-comfyui\scripts\comfyui_client.py" --list-workflows
D:\ComfyUI7\python_embeded\python.exe ".agent\skills\generate-with-comfyui\scripts\comfyui_client.py" --workflow "workflow_name.json" --prompt "your detailed prompt"
| Endpoint | Method | Purpose |
|---|---|---|
/system_stats | GET | Check server status |
/prompt | POST | Queue workflow execution |
/queue | GET | Check queue status |
/history/{prompt_id} | GET | Get execution results |
/view?filename=X&subfolder=Y | GET | Retrieve output files |
/ws | WebSocket | Real-time execution updates |
Connect to ws://127.0.0.1:8188/ws for real-time updates:
status - System status updatesexecution_start - Prompt execution beginsexecuting - Node execution updatesprogress - Progress for long operationsexecuted - Node completed| Workflow | Purpose |
|---|---|
movie 1 - zimage-quick-frame-production.json | Quick image generation with Z-Image Turbo |
video_ltx2_t2v.json | Text-to-video with LTX2 |
video_ltx2_i2v.json | Image-to-video with LTX2 |
Generated files saved to: D:\ComfyUI7\ComfyUI\output\