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.
GET https://comfy.org/workflows/download/fa9731c2000f.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "AIrt MAchIne" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("templates_mjm_airt_machIne_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("94", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("161"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














