LTX-2 文生影片(蒸餾版)

LTX-2 Text to Video(Distilled)工作流程用於將文字提示詞轉成高品質影片,並讓音訊與影像元素同步。此工作流程採用 LTX-2 distilled 模型,針對更快的影片生成做了最佳化,同時維持較高的品質。它包含具表現力的唇形同步與更有動態的動作生成,適合用於製作更具吸引力的影片內容。工作流程使用 SaveVideo 與 9b0e709c-82c7-46c0-a2e4-5e96b6f16090 等節點來處理與渲染最終影片輸出。由 Lightricks 開發的 LTX-2 模型可透過 Hugging Face 與 GitHub 取得,作為此工作流程的基礎。

API

從程式碼使用此工作流

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

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

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

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

// Run "LTX-2 文生影片(蒸餾版)" (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_t2v_distilled_api.json");

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

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

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

常見問題

常見問題

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