The 'Looped Restyler' workflow in ComfyUI is designed to transform a static image into a dynamic looping video. By utilizing advanced AI models like Nano Banana, Google Gemini, and Wan2.2, this workflow seamlessly transitions from the first frame of an image to the last, creating a continuous loop. The process begins with loading an initial image and its corresponding prompt, which guides the transformation process. The workflow employs nodes such as LoadImage to import the starting image, and SaveVideo to compile the frames into a video format. The node identified by 3313ce14-acfd-4a9c-9f0c-a1b01147e934 plays a crucial role in generating intermediate frames that ensure a smooth transition between the start and end of the sequence. PreviewImage is used to monitor the progress and make necessary adjustments before finalizing the output.
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/ad8614720882.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 "Looped Restyler" (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_looped_restyler_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("4", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("80"): # SaveVideo
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














