Seedance 2.0 - Extend Video is a ComfyUI workflow that continues an input clip by generating follow-on frames and trimming to the most seamless handoff point. It uses LoadVideo and GetVideoComponents to ingest your source, extract frames, FPS, and audio, and then feeds a follow-up text prompt into the Seedance 2.0 generator (ByteDance2ReferenceNode). The prompt describes what happens immediately after the last frame of your input, and the model predicts a continuation as a batch of new frames. PrimitiveStringMultiline and StringConcatenate are used to assemble the final conditioning text you send into the generator.
Because model-generated continuations won’t perfectly match your last real frame, the workflow includes an automatic cut-point aid. The Preview Images Difference node (f1f7c973-e50b-4ec7-84c5-0ef2eef1fc84) compares each generated frame to the last input frame and visualizes color difference; the darkest preview indicates the closest visual match. You select that index and trim the generated batch starting from that frame with ImageFromBatch+, then concatenate original frames with the trimmed continuation via BatchImagesNode. CreateVideo rebuilds a new clip at the source FPS, AudioConcat preserves or stitches audio as needed, and SaveVideo writes the final extended video. PreviewImage nodes are included to quickly inspect the last source frame and candidate match frames before committing to render.
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.
GET https://comfy.org/workflows/download/fe773d7d7377.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run this workflow (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














