This ComfyUI tutorial workflow shows how to extend an existing video in coherent, story-aware chunks using the GeminiVideoOmniV2 node (Gemini Omni 1.1 Flash). It loads your clip with LoadVideo, extracts the final moments as context via Video Slice, and asks Gemini to continue the scene for up to 10 seconds per run. The model reads the last 10 seconds of visual context so characters, motion, camera framing, and scene layout carry forward naturally instead of restarting from scratch. SaveVideo then exports the extended result as a new clip.

Technically, the pipeline is a loop-friendly chain: LoadVideo → Video Slice (tail window) → GeminiVideoOmniV2 (prompted continuation) → SaveVideo. You can iterate this up to four times to build a 40-second story, or branch at any step by changing the prompt. The GeminiVideoOmniV2 node also supports optional image references, which you can attach mid-story to introduce new characters or props while maintaining continuity with the previous scene. The included MarkdownNote explains the required input asset path and tips for best results.

API

استخدم سير العمل هذا من الكود

كل سير عمل في Comfy هو رسم بياني بصيغة JSON. الحمولة أدناه هي هذا سير العمل بالضبط كما يشغله ComfyUI — يمكنك جلبه من الرابط، حفظه في نظام التحكم بالإصدارات، أو تحميله في ComfyUI وتشغيله عقدة تلو الأخرى.

e2ceec4fc610.json
جاري جلب JSON لسير العمل…

شغّله من TypeScript أو Python باستخدام Comfy SDK. نفس الكود يعمل على Comfy Cloud أو ComfyUI الذي تستضيفه بنفسك — فقط عنوان 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