Passes de VFX para Vídeo
Transforme uma imagem de referência em um keyframe de VFX com aberração cromática, glow, lens flare, acabamento de filme e gere um vídeo cinematográfico Seedance 2.0.
Sobre
Este fluxo de trabalho do ComfyUI transforma uma única imagem de referência em um keyframe de VFX em camadas e depois usa esse keyframe para gerar um vídeo cinematográfico Seedance 2.0. No grupo Generated VFX Passes, as camadas de efeito são criadas como passes separados — aberração cromática, glow/bloom, lens flare e acabamento de filme — e depois compostas com nós ImageBlend. O glow é criado com ImageBlur e misturado com Screen; lens flare é uma sobreposição de fundo preto misturada com Screen; a aberração cromática é aplicada como um passe de quadro inteiro misturado com Normal. As intensidades dos blends são ajustadas via nós PrimitiveFloat, e você pode pré-visualizar qualquer estágio com PreviewAny ou salvar stills com SaveImage.
Quando o keyframe composto estiver pronto, ele é enviado para o ByteDance2ReferenceNode no grupo Seedance 2.0 Output para gerar um clipe em movimento que herda o visual do keyframe. GeminiImage2Node e GeminiNode são usados no grafo para construir e refinar os passes baseados em imagem, enquanto ImageBlend controla como cada passe é empilhado. Por fim, SaveVideo grava a saída Seedance 2.0 no disco. Esta configuração é útil porque permite ajustar o visual cinematográfico de forma não destrutiva em uma still, testar cada passe isoladamente e obter um visual consistente e blendável no vídeo — tudo a partir de um único frame de referência.
O que você fornece
- Lendo o fluxo de trabalho
É executado no ComfyUI. Este fluxo de trabalho não pode ser executado nesta página. Abra-o no Comfy Cloud com tudo carregado ou baixe-o para usar no seu próprio ComfyUI.
Experimentar no CloudDentro do workflow
Uma prévia somente leitura do gráfico de nós. Abra-o no Comfy Cloud ou faça o download para editar os nós.
Loading the graph
Open full-size workflow preview- Autor
- ComfyUI
Requer nós personalizados
- Lendo o fluxo de trabalho
Use este fluxo de trabalho a partir do código
Gerado a partir do grafo e das entradas do fluxo de trabalho quando possível; caso contrário, são exibidos exemplos armazenados. Revise as credenciais e os endpoints antes de executar o código, pois isso pode gerar cobranças.
What you need
- Runs on
- Comfy Cloud
- Chave
- COMFY_API_KEY
Requer um plano pago do Cloud e créditos.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"1": {
"class_type": "LoadImage",
"inputs": {
"image": "0a7de162b039a84850dfbff6b319c67bea78a97aaff0c1d2fc979d68914586f8.png"
},
"_meta": {
"title": "Input reference image"
}
},
"2": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"1",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Using the uploaded image as a strict reference, create a full-frame chromatic aberration pass. Preserve the exact subject, composition, lighting, geometry, identity, colors, and aspect ratio. Add only subtle optical RGB edge separation, prism fringing on high-contrast edges, slight red/cyan fringe near the image borders, and restrained glass dispersion. Do not add text, logos, watermarks, new objects, duplicate subjects, or change the scene.",
"resolution": "2K",
"response_modalities": "IMAGE",
"seed": 947627340135294,
"system_prompt": "You are a precise VFX image-pass generator. Preserve the input image exactly except for the requested optical effect. Return an image only."
},
"_meta": {
"title": "Pass 1 - Chromatic aberration"
}
},
"3": {
"class_type": "ImageBlur",
"inputs": {
"blur_radius": 19,
"image": [
"1",
0
],
"sigma": 5
},
"_meta": {
"title": "Pass 2 - Bloom blur source"
}
},
"4": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"1",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Create a same-aspect-ratio black-background lens flare overlay matched to the uploaded reference image. The output should mostly be pure black with only realistic optical elements: soft anamorphic streaks, highlight glints, flare ghosts, subtle halation around existing bright light directions, and a few faint dust/sensor sparkle artifacts. Do not reproduce the scene itself. Do not add text, logos, UI, captions, or new objects. This will be blended with Screen/Add mode over the original image.",
"resolution": "2K",
"response_modalities": "IMAGE",
"seed": 148534497297643,
"system_prompt": "You generate optical overlay passes for compositing. Keep non-flare areas black so the pass can be screen-blended."
},
"_meta": {
"title": "Pass 3 - Lens flare overlay"
}
},
"5": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"1",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Using the uploaded image as a strict reference, create a film finishing pass version of the same frame. Preserve all content, identity, framing, and object layout exactly. Add subtle highlight rolloff, soft halation, restrained film grain, very mild vignette, faint gate texture, and a cinematic color finish. Do not add text, logos, captions, watermarks, new people, new props, or change the scene.",
"resolution": "2K",
"response_modalities": "IMAGE",
"seed": 685209943797967,
"system_prompt": "You are a finishing artist producing a restrained full-frame grade pass. Preserve scene content exactly and return an image only."
},
"_meta": {
"title": "Pass 4 - Film finish"
}
},
"6": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 0.18
},
"_meta": {
"title": "Chromatic strength"
}
},
"7": {
"class_type": "ImageBlend",
"inputs": {
"blend_factor": [
"6",
0
],
"blend_mode": "normal",
"image1": [
"1",
0
],
"image2": [
"2",
0
]
},
"_meta": {
"title": "Blend chromatic"
}
},
"8": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 0.28
},
"_meta": {
"title": "Glow strength"
}
},
"9": {
"class_type": "ImageBlend",
"inputs": {
"blend_factor": [
"8",
0
],
"blend_mode": "screen",
"image1": [
"7",
0
],
"image2": [
"3",
0
]
},
"_meta": {
"title": "Blend bloom/glow"
}
},
"10": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 0.6
},
"_meta": {
"title": "Lens flare strength"
}
},
"11": {
"class_type": "ImageBlend",
"inputs": {
"blend_factor": [
"10",
0
],
"blend_mode": "screen",
"image1": [
"9",
0
],
"image2": [
"4",
0
]
},
"_meta": {
"title": "Blend lens flare"
}
},
"12": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 0.25
},
"_meta": {
"title": "Film finish strength"
}
},
"13": {
"class_type": "ImageBlend",
"inputs": {
"blend_factor": [
"12",
0
],
"blend_mode": "soft_light",
"image1": [
"11",
0
],
"image2": [
"5",
0
]
},
"_meta": {
"title": "Final VFX composite"
}
},
"14": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "vfx_passes_seedance2/final_vfx_reference",
"images": [
"13",
0
]
},
"_meta": {
"title": "Save final reference"
}
},
"16": {
"class_type": "GeminiNode",
"inputs": {
"images": [
"13",
0
],
"model": "gemini-3-1-flash-lite",
"prompt": "Analyze the final VFX reference image and write one vivid Seedance 2.0 reference-to-video motion prompt that makes the shot feel cinematic, dimensional, and high contrast rather than flat. Preserve the exact subject, identity, composition, object layout, and baked VFX look, including chromatic aberration, bloom/glow, lens flare glints, halation, film grain, vignette, and polished cinematic color. Infer the strongest scene-appropriate camera move and describe it with concrete film language: foreground/background parallax, dolly or orbital movement, slight roll or tilt where useful, rack focus, lens compression, motion blur, volumetric light, shadow sweeps, highlight pulses, atmospheric particles, and layered depth. Add purposeful movement in the scene elements so the frame has scale and energy, but avoid chaotic motion. Include strict constraints against text, logo changes, object morphing, extra subjects, warped geometry, scene redesign, and washed-out low-contrast lighting. Return only one 80-120 word prompt.",
"seed": 824781862334978,
"system_prompt": "You are a senior cinematic motion prompt writer for Seedance 2.0. Convert a still VFX reference into a film-trailer-quality video direction with strong depth, lighting contrast, camera motivation, and layered motion while preserving the reference frame exactly. Do not write generic or flat motion such as only subtle drift; choose a controlled cinematic move that reveals scale and parallax. Return exactly one prompt with no markdown."
},
"_meta": {
"title": "Write Seedance motion prompt"
}
},
"17": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"16",
0
]
},
"_meta": {
"title": "Review generated prompt"
}
},
"20": {
"class_type": "ByteDance2ReferenceNode",
"inputs": {
"model": "Seedance 2.0",
"model.auto_downscale": False,
"model.auto_upscale": False,
"model.duration": 6,
"model.generate_audio": True,
"model.prompt": [
"17",
0
],
"model.ratio": "adaptive",
"model.reference_images.image_1": [
"13",
0
],
"model.reference_images.image_2": [
"1",
0
],
"model.resolution": "720p",
"seed": 20481295,
"watermark": False
},
"_meta": {
"title": "Seedance 2.0 reference to video"
}
},
"21": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/vfx_passes_seedance2",
"format": "mp4",
"format.codec": "h264",
"video": [
"20",
0
]
},
"_meta": {
"title": "Save Seedance MP4"
}
},
"23": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "vfx_passes_seedance2/chromatic_aberration_pass",
"images": [
"2",
0
]
},
"_meta": {
"title": "Save chromatic pass"
}
},
"24": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "vfx_passes_seedance2/glow_blur_pass",
"images": [
"3",
0
]
},
"_meta": {
"title": "Save glow pass"
}
},
"25": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "vfx_passes_seedance2/lens_flare_overlay_pass",
"images": [
"4",
0
]
},
"_meta": {
"title": "Save lens flare pass"
}
},
"26": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "vfx_passes_seedance2/film_finish_pass",
"images": [
"5",
0
]
},
"_meta": {
"title": "Save film finish pass"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)Perguntas e respostas
Defina a intensidade do PrimitiveFloat desse passe para 0 ou coloque o alpha do ImageBlend correspondente em 0. Você também pode desconectar temporariamente a entrada do passe no ImageBlend.
Blends do tipo Screen podem facilmente estourar regiões claras. Reduza o valor do PrimitiveFloat do glow no ImageBlend, diminua o raio do ImageBlur para um bloom mais contido e pré-visualize em 100% para avaliar o roll-off dos highlights.
Diminua a intensidade do passe de aberração cromática (PrimitiveFloat) e mantenha o modo de blend em Normal. Valores baixos geralmente vendem o efeito sem bordas distrativas.
Finalize primeiro o keyframe composto (use SaveImage e PreviewAny), depois envie exatamente essa saída para o ByteDance2ReferenceNode. Mantenha as intensidades dos efeitos moderadas e consistentes; rode SaveVideo novamente se ajustar os blends.