Vidu: Video Extension

The Vidu: Video Extension workflow is designed to seamlessly extend video content while enhancing its resolution to 1080p. This workflow leverages the Vidu Q2 model, which is specifically tailored for video extension tasks. By utilizing nodes such as ViduExtendVideoNode and LoadVideo, users can upload an existing video and extend its duration by up to 7 seconds. The workflow also includes nodes like GetVideoComponents and SaveVideo to dissect and reassemble the video content efficiently. This process is particularly useful for creators looking to enhance short video clips without compromising on quality. Technically, the workflow dissects the video into frames, applies the Vidu model to generate additional frames, and then reconstructs the extended video. The use of ImageFromBatch and GetImageSize nodes ensures that the output maintains a high resolution, making it ideal for professional video projects.

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.

api_vidu_video_extension.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

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

// Run "Vidu: Video Extension" (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("api_vidu_video_extension_api.json");

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

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates