Build a Free Overnight AI Video Pipeline Locally with ComfyUI
Skip per-second cloud video API costs. Learn how a local ComfyUI pipeline with Qwen Image and LTX Video batch-generates clips overnight for free.

What is a local AI image-to-video pipeline, and why build one?
A local image-to-video pipeline is a scripted workflow that runs entirely on your own hardware: it generates a batch of images from prompts, picks the best ones, then feeds them into a video model to produce short clips, all without touching a paid API. The appeal is straightforward. Cloud video generation from providers like Google gets expensive fast when billed per second of output, and that cost multiplies quickly if you’re iterating on dozens or hundreds of variations. Running the same process locally through ComfyUI, using open models like Qwen Image for stills and LTX Video for motion, turns that per-generation cost into zero marginal cost once the hardware is in place.
TL;DR
- A scripted ComfyUI pipeline can mass-produce images overnight using a local machine, then hand off selected frames to a video model, avoiding per-second cloud API billing entirely.
- Qwen Image was used as the still-image generator, producing renders in roughly 19 to 20 seconds each on a mid-range unified-memory AI PC, which made an “overnight” job finish far faster than expected.
- ControlNet pose transfer (canny edge detection, and likely pose-specific ControlNets) lets you copy a reference pose, such as a dancing animal clip, onto a newly generated subject.
- LTX Video and Wan models are open-source options for the video-generation stage, and both benefit from fine-tuning if you want a consistent visual style.
- The workflow depends on large unified memory (128GB in the demo machine) to comfortably run big models like Qwen Image alongside LLMs used to generate prompt variations.
- ComfyUI’s API and developer mode are what make automation possible: instead of clicking through the UI for every image, a script can drive hundreds of generations unattended.
- The technique generalizes: any local GPU or unified-memory system with enough VRAM can run this same pattern, though render times will vary with hardware.
How does the pipeline actually work?
The process breaks into a few discrete steps that can be scripted rather than performed by hand:
- Source a reference. Start with an example you want to imitate, such as a screen-grab from a short-form video showing a subject in a series of poses.
- Generate a base prompt. Feed that reference image to a language model and ask it to describe the scene, producing a usable text prompt.
- Expand into variations. Use the same LLM to generate a batch of prompt variations, each describing a different pose or action (the demo used labels like “disco point,” “spin,” and “hip-hop” for a dancing kitten sequence).
- Render images in bulk. Feed each prompt into Qwen Image through ComfyUI’s API, changing the seed and prompt text programmatically so the system churns through renders without manual input.
- Apply pose transfer with ControlNet. For consistent motion across a sequence, a ControlNet (canny edge detection or a dedicated pose-detection net) can map a reference pose onto the newly generated subject, keeping body position consistent while the style or character changes.
- Select the best frames. Because generation is cheap and fast, you can produce far more candidates than you need and simply keep the best ones.
- Convert to video. Pass the chosen images into a video model like LTX Video (or Wan) to animate them into short clips.
The key enabler is ComfyUI’s developer mode, which exposes an API. Once that’s active, a script can submit generation jobs, poll for completion, and move to the next prompt automatically. That’s what turns a manual, one-image-at-a-time UI workflow into a batch job that runs unattended overnight.
What hardware do you actually need?
The demonstration ran on an AMD Ryzen AI Max Plus 395 system (marketed as “Ryzen AI Halo”), a machine built around unified memory rather than a discrete GPU with separate VRAM. It has 128GB of LPDDR5X memory shared between a 16-core CPU and a Radeon 8060S integrated GPU (roughly 60 teraflops at FP16), plus an NPU rated around 50 TOPS that most current AI software doesn’t yet use. The user can allocate how much of that unified pool goes to the GPU versus the CPU, and for image and video generation workloads, the majority of memory can be handed to the GPU.
This matters because image and video models, especially when run alongside a language model that’s generating prompt variations, need a lot of addressable memory. A discrete GPU with 32GB of VRAM hits a hard ceiling once a model or combination of models exceeds that. Unified memory architectures don’t eliminate the tradeoffs entirely (shared memory bandwidth is a real constraint compared to dedicated VRAM), but they let significantly larger models load at all, which is the difference between a workflow being possible or not.
You don’t need this specific machine to build the pipeline. Any local system with a capable GPU and enough memory to hold Qwen Image, an LLM for prompting, and a video model like LTX Video can run the same pattern. The unified-memory approach just raises the ceiling on how big those models can be without offloading to slower system RAM.
Is this actually cheaper than cloud video generation?
Yes, in terms of marginal cost. Once the hardware is purchased and the models are downloaded, there’s no per-image or per-second charge. Proprietary cloud video models charge based on output length or resolution, and that adds up quickly when you’re generating dozens of variations to find one usable clip. A local pipeline shifts the cost structure entirely to a one-time hardware investment plus electricity.
The tradeoff is speed and quality ceiling. In the demonstrated setup, Qwen Image renders took about 19 to 20 seconds each, which sounds slow per-image but adds up to a large batch of usable output over a few hours, not necessarily overnight as originally planned. Proprietary models may still lead on raw video fidelity, coherence, and length, especially for anything beyond a few seconds. Open models like LTX Video and Wan have closed much of that gap, and fine-tuning them on a specific style can improve results further, but they’re not a drop-in replacement for every use case.
What models are involved, and what does each one do?
- Qwen Image: the still-image generator in this workflow. It handles the bulk image production step, turning text prompts (and ControlNet pose data) into rendered frames.
- LTX Video: an open-source video generation model that can animate still images or generate short clips, used here as one of the candidates for the animation stage.
- Wan: another open video model mentioned as an alternative to LTX, also benefiting from fine-tuning for consistent style.
- ControlNet (canny edge / pose detection): not a generative model itself, but a conditioning mechanism that lets a reference image’s structure (edges, or a detected pose) guide the output of the image model, which is how pose transfer between subjects becomes possible.
- A general-purpose LLM: used outside the image pipeline itself, to read a reference screenshot, write an initial prompt, and generate the batch of prompt variations that drive the mass-production step.
Together these form a chain: LLM writes prompts, Qwen Image renders stills guided by ControlNet, and a video model animates the selected results.
Frequently Asked Questions
Do I need ComfyUI specifically for this kind of pipeline?
ComfyUI is convenient because it exposes a node-based workflow and an API for automation, and it comes pre-integrated with ROCm and PyTorch on some AI PC platforms. Other UIs and custom scripts built directly against model libraries could achieve the same result, but ComfyUI’s ecosystem of pre-built ControlNet and video workflows makes it the more common starting point.
How much VRAM or memory do I actually need?
It depends on model size and quantization, but running Qwen Image, a ControlNet, and a video model like LTX Video together comfortably benefits from having significantly more than 32GB of addressable memory, especially if you’re also running an LLM for prompt generation at the same time. Unified memory systems with 64GB or more give more headroom than discrete GPUs capped at 32GB or less.
Other agents start typing. Remy starts asking.
Scoping, trade-offs, edge cases — the real work. Before a line of code.
Can this pipeline run without any cloud services at all?
Yes. The described setup runs the language model, image model, ControlNet, and video model entirely locally, with no API calls to external services. The only “cost” is the electricity and time to run the hardware.
Is the output quality comparable to proprietary video models?
Open models like LTX Video and Wan have improved substantially and can produce usable short clips, particularly with fine-tuning toward a specific style. They’re not necessarily matching top proprietary models on every metric, but for iterative, high-volume experimentation where you’re generating many variations to find good ones, the cost savings often outweigh the quality gap.
What’s the practical bottleneck in a batch pipeline like this?
Render time per image or clip is the main constraint. At roughly 19 to 20 seconds per image on the hardware described, a batch of a few hundred images takes a few hours, not the full overnight window originally planned. Video generation steps typically take longer per output than still images, so that stage is usually the slower part of the pipeline.
