1.2 入門範本-圖像轉影片

This ComfyUI workflow, titled '1.2 Starter – Image to Video,' is designed to transform a series of static images into a seamless video using the Wan 2.2 model. The workflow leverages several nodes, including LoadImage, MarkdownNote, and a unique node identified by its hash, 5df1f6c5-ddad-49be-a893-fcc0e3d5778e. The process begins with loading individual images, which are then fed into the Create Video node. This node is responsible for stitching the images together into a video format, with a specified frame rate of 16 frames per second (fps). The final output is then linked to a Save Video node, which allows users to save the generated video to their desired location.

Technically, this workflow is beneficial for users looking to create dynamic video content from static images without needing extensive video editing skills. The Wan 2.2 model is particularly adept at handling image-to-video transformations with high noise tolerance, making it suitable for various creative and professional applications. The workflow's simplicity, combined with the robust capabilities of the Wan 2.2 model, makes it a powerful tool for video content creators and digital artists.

API

從程式碼使用此工作流

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

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

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

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

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

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

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

常見問題

常見問題

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