generate-with-comfyui

Invoke ComfyUI workflows to generate images, video, or audio via the local API.

3|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/erosDiffusion/ComfyUI-Erosdiffusion-LTX2 --skill generate-with-comfyui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-with-comfyui
Source: https://github.com/erosDiffusion/ComfyUI-Erosdiffusion-LTX2/tree/main/.agent/skills/generate-with-comfyui
Command: npx skills add https://github.com/erosDiffusion/ComfyUI-Erosdiffusion-LTX2 --skill generate-with-comfyui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill enables programmatic invocation of ComfyUI workflows to generate images, video, audio, or other content, reducing manual steps and accelerating production.

Core Features & Use Cases

  • Prototype-driven automation: Invoke ComfyUI workflows, modify prompts, queue tasks, and monitor progress from code.
  • Output retrieval: Retrieve and surface the generated file paths (images, videos) once a workflow finishes.
  • Versatile workflows: Works with local workflow JSONs and can handle both API-formatted and UI-formatted workflows by converting to API format as needed.

Quick Start

Run the provided comfyui_client.py with a workflow and prompt to generate outputs from ComfyUI and return the produced file paths.

Frequently Asked Questions about generate-with-comfyui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate ComfyUI workflow generation via API?

To automate ComfyUI workflow generation via API, load local workflow JSONs, modify prompts, queue tasks, and monitor progress programmatically. The client handles both API-formatted and UI-formatted workflows by converting them as needed, returning generated file paths upon completion.

Can I use UI-formatted workflows to generate content through the ComfyUI API?

Yes, you can use UI-formatted workflows to generate content. The skill automatically converts UI-formatted workflows into the API format required to queue tasks and retrieve generated images, videos, or audio outputs.

How do I modify prompts in a ComfyUI workflow programmatically?

You can modify prompts in a ComfyUI workflow programmatically by loading the workflow JSON and updating the prompt parameters before queuing the task. This allows dynamic content generation and automated workflow orchestration.

How do I retrieve generated images and videos after queuing a ComfyUI task?

To retrieve generated images and videos after queuing a ComfyUI task, the client waits for the workflow to finish execution and then surfaces the produced file paths. This ensures you receive the exact local locations of all generated outputs.

Does ComfyUI API automation support generating audio content?

Yes, ComfyUI API automation supports generating audio content alongside images and videos. By loading the respective workflow and queuing it via the local API, you can automate the creation and retrieval of audio file outputs.

What are the limitations of automating ComfyUI workflows locally?

Automating ComfyUI workflows locally requires a running local ComfyUI instance and valid workflow JSON files. The skill relies on the local API to queue tasks and retrieve outputs, meaning network disruptions or missing dependencies can halt the automation process.