The AIrt MAchIne workflow in ComfyUI is designed to transform a static image into a dynamic, looping AI-generated video. This process begins with the user uploading an image, which serves as the foundation for the video. The workflow utilizes a language model to generate five unique prompts based on the initial image, ensuring that each video iteration is distinct and creative. These prompts guide the generation of images and short video clips, which are then seamlessly stitched together to form a continuous loop. This is achieved through a series of nodes, including the ImageResizeKJv2 for resizing images, and the VHS_VideoCombine for merging clips into a cohesive video.

Technically, the workflow leverages models like Wan2.2 and Z-Image-Turbo, which are known for their efficient image and video generation capabilities. Custom nodes such as comfyui-kjnodes and comfyui-videohelpersuite are employed to enhance the workflow's functionality, allowing for sophisticated video editing and prompt generation. The integration of these components makes the workflow particularly useful for artists and content creators looking to produce unique, AI-driven video content from static images. Additionally, users have the option to bypass certain nodes, such as the 'Save frames' and 'Save videos' groups, if they only wish to output the final combined video, offering flexibility in the workflow's application.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

templates_mjm_airt_machIne.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "AIrt MAchIne" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("templates_mjm_airt_machIne_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("94", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("161")[0].toFile("output.png"); // SaveImage

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

常見問題

常見問題

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates