comfy-gen

Execute ComfyUI image and video workflows on RunPod serverless GPUs via a JSON-output CLI.

27|8|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Hearmeman24/ComfyGen --skill comfy-gen-hearmeman24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comfy-gen
Source: https://github.com/Hearmeman24/ComfyGen
Command: npx skills add https://github.com/Hearmeman24/ComfyGen --skill comfy-gen-hearmeman24

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3.

What problem does it solve? Running ComfyUI workflows remotely requires manually provisioning GPU infrastructure, uploading models, and polling job status. This Skill automates the entire pipeline: it analyzes your workflow JSON, finds and downloads the required models to a RunPod network volume, submits the workflow to a serverless endpoint, and returns structured JSON with output URLs. ## Core Features & Use Cases - Workflow Analysis & Model Resolution: Scans ComfyUI API-format workflows for model references (checkpoints, LoRAs, VAEs, CLIP encoders), searches HuggingFace and CivitAI for download URLs, and downloads everything to the network volume before submission. - Serverless Execution: Submits workflows with parameter overrides (--override 7.seed=42) and input file mapping (--input 193=photo.jpg), polls with real-time progress, and returns pre-signed S3 output URLs with model hashes. - Infrastructure & Model Management: Sets up RunPod endpoints via comfy-gen init, lists installed models, queries available samplers/schedulers, and cancels or checks job status. - Use Case: A user shares a Wan 2.2 video workflow. The Skill identifies five required models, locates them on HuggingFace, batch-downloads them to the volume, then submits the workflow with a 900-second timeout and returns the video URL. ## Quick Start Ask the agent to analyze your ComfyUI workflow JSON, download any missing models to the RunPod volume, and submit it for generation.

Frequently Asked Questions about comfy-gen

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

FAQPage Schema
How do I run a ComfyUI workflow on RunPod serverless?

Run comfy-gen submit workflow.json with a ComfyUI API-format workflow file. The CLI uploads input files to S3, submits the job to your RunPod endpoint, polls for completion, and returns a JSON result with the output URL.

How do I download models to a RunPod network volume?

Use comfy-gen download with either a CivitAI version ID or a direct HuggingFace URL, plus a --dest subfolder like loras or checkpoints. Files land at /runpod-volume/ComfyUI/models/<dest>/ via a serverless job.

What workflow format does comfy-gen require?

Workflows must be in ComfyUI API format, the node-ID-keyed JSON with class_type and inputs fields. Export it from the ComfyUI interface using Save (API Format), not the standard UI save format.

Does comfy-gen work with Cloudflare R2 or Backblaze B2 storage?

Yes, any S3-compatible storage works. Set s3_endpoint_url to your provider's endpoint (for R2 use region auto), along with access key, secret key, and bucket name in the config.

Why does my ComfyUI serverless job time out on video workflows?

Video generation often exceeds the default 600-second timeout. Pass --timeout 900 or higher when submitting, and note the RunPod endpoint's executionTimeoutMs may also need increasing for very large model downloads.

How do I override seeds or parameters in a submitted workflow?

Use the repeatable --override flag with node_id.param=value syntax, such as --override 7.seed=42 --override 7.denoise=0.8. Numeric values are auto-coerced to integers or floats.