Kandinsky 5.0 影片精簡版 圖生影片

The 'Kandinsky 5.0 Video Lite Image to Video' workflow is designed to transform static images into dynamic video sequences using the Kandinsky model. This workflow leverages a lightweight 2B model capable of generating high-quality videos from prompts in both English and Russian. It uses a series of nodes, including SaveVideo, LoadImage, and MarkdownNote, to streamline the process from image input to video output. The workflow is particularly optimized for generating videos with dimensions of 768x512, ensuring that the width and height are divisible by 128 for optimal performance in longer sequences. This attention to detail in resolution ensures that the resulting video maintains a high visual quality while remaining computationally efficient.

Technically, this workflow operates by first loading an image using the LoadImage node. The image is then processed through the Kandinsky model, which interprets the visual data and any accompanying text prompts to create a cohesive video narrative. The SaveVideo node is used to compile the generated frames into a video file. This workflow is especially useful for artists and content creators looking to add motion to their static images, providing a seamless method to enhance visual storytelling with minimal setup.

API

從程式碼使用此工作流

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

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

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

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

// Run "Kandinsky 5.0 影片精簡版 圖生影片" (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_kandinsky5_i2v_api.json");

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

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

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

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

常見問題

常見問題

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