This ComfyUI workflow, titled 'Squish Anything with LTX-2 I2V and LoRA', enables users to transform static images into dynamic, squished animations. Leveraging the LTX-2 I2V model, this workflow takes an uploaded image and applies the Squish It LoRA effect to create a unique animated sequence. The workflow is designed to be intuitive, utilizing nodes such as LoadImage for importing images and SaveVideo for exporting the final animation. The b7c2d337-c38d-4c04-922b-2d638449d13e node plays a crucial role in managing the transformation process, ensuring that the animation maintains a smooth and consistent flow.

Technically, the workflow operates by first loading an image using the LoadImage node. The image is then processed through a subgraph node, which applies the Squish It LoRA effect. This effect is particularly effective at creating exaggerated, cartoon-like animations that can be both entertaining and visually striking. The LTX-2 I2V model is pivotal in this process, as it interprets the image data and generates a video sequence that reflects the squished effect. The final video is saved using the SaveVideo node, allowing for easy sharing and further editing if needed. This workflow is particularly useful for artists and content creators looking to add a playful, animated twist to their images.

API

從程式碼使用此工作流

每個 Comfy 工作流都是一個 JSON 圖。下方的 payload 就是此工作流,與 ComfyUI 執行時完全相同 — 你可以從此 URL 取得、放入版本控制,或在 ComfyUI 載入並逐節點執行。

video_ltx2_i2v_lora.json
正在取得工作流 JSON…

使用 Comfy SDK 以 TypeScript 或 Python 執行。相同程式碼可用於 Comfy Cloud 或你自架的 ComfyUI — 只需更改 base URL。

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

// Run "使用LTX-2 I2V和LoRA壓縮一切" (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("video_ltx2_i2v_lora_api.json");

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

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

SDK 需使用 API 格式的工作流:請在 ComfyUI 開啟此工作流,並使用 檔案 → 匯出工作流(API)。

Comfy Cloud API 存取需有 API 金鑰的方案。

常見問題

常見問題

查看所有工作流
Showing 30 of 30 templates