1 imagem de entrada Split Stack - Nano Banana 2 + Kling 3.0
Envie 1 imagem de entrada e gere 5 ângulos alternativos para serem usados como quadros iniciais com Kling 3.0. Cada vídeo é empilhado horizontalmente em um vídeo final 9x16.
Sobre
Este fluxo de trabalho tutorial do ComfyUI pega uma única imagem de referência e gera cinco ângulos de câmera alternativos para usar como quadros iniciais no Kling 3.0 imagem-para-vídeo. Um conjunto de nós utilitários (incluindo Reroute e PrimitiveNode) distribui sua entrada do LoadImage em cinco ramificações, onde um grupo pré-configurado "Nano Banana 2" de síntese de ângulos produz diferentes pontos de vista do mesmo assunto. Cada quadro inicial é salvo via SaveImage para que você possa verificar o enquadramento e a integridade do assunto antes da geração do vídeo.
Cada um dos cinco quadros é então enviado para o KlingVideoNode para criar pequenos clipes de movimento guiados pelo seu prompt (por exemplo, órbita, panorâmica, dolly). Por fim, os clipes são organizados em uma única saída vertical usando CreateVideo e salvos com SaveVideo. O empilhador usa um layout de faixa horizontal dentro de uma tela 9:16, permitindo comparar todos os cinco ângulos em um vídeo compartilhável. O GeminiImage2Node opcional pode gerar legendas automáticas para a imagem de entrada para complementar seu prompt de movimento; se não for usado, o fluxo de trabalho utiliza texto manual de um PrimitiveNode. Esta configuração é prática quando você precisa de quadros iniciais consistentes e multiângulo para o Kling 3.0 sem criar variações separadas manualmente.
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
- Rob
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
- Seus arquivos
- Enviados pelo código a partir de suas URLs
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({
"41": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"758": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"1222:1219",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"759": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/splitstack_final",
"format": "auto",
"format.codec": "auto",
"video": [
"758",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"1189": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"41",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Wide shot, the subject is in view",
"resolution": "2K",
"response_modalities": "IMAGE+TEXT",
"seed": 0,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"1192": {
"class_type": "KlingVideoNode",
"inputs": {
"generate_audio": False,
"model": "kling-v3",
"model.aspect_ratio": "16:9",
"model.resolution": "720p",
"multi_shot": "disabled",
"multi_shot.duration": 8,
"multi_shot.negative_prompt": "",
"multi_shot.prompt": "Static camera, the subject moves across the shot",
"seed": 484688321,
"start_frame": [
"1189",
0
]
},
"_meta": {
"title": "Kling 3.0 Video"
}
},
"1196": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/stack1_kling",
"format": "auto",
"format.codec": "auto",
"video": [
"1192",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"1200": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"41",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Extreme close up on the subjects eye",
"resolution": "2K",
"response_modalities": "IMAGE+TEXT",
"seed": 995219765575705,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"1201": {
"class_type": "KlingVideoNode",
"inputs": {
"generate_audio": False,
"model": "kling-v3",
"model.aspect_ratio": "16:9",
"model.resolution": "720p",
"multi_shot": "disabled",
"multi_shot.duration": 8,
"multi_shot.negative_prompt": "",
"multi_shot.prompt": "Dolly in on the subjects eye, extreme detail",
"seed": 947661511,
"start_frame": [
"1200",
0
]
},
"_meta": {
"title": "Kling 3.0 Video"
}
},
"1202": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/stack2_kling",
"format": "auto",
"format.codec": "auto",
"video": [
"1201",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"1208": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"41",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Side profile of the subject",
"resolution": "2K",
"response_modalities": "IMAGE+TEXT",
"seed": 451280254241378,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"1209": {
"class_type": "KlingVideoNode",
"inputs": {
"generate_audio": False,
"model": "kling-v3",
"model.aspect_ratio": "16:9",
"model.resolution": "720p",
"multi_shot": "disabled",
"multi_shot.duration": 8,
"multi_shot.negative_prompt": "",
"multi_shot.prompt": "The camera pans right",
"seed": 1237402778,
"start_frame": [
"1208",
0
]
},
"_meta": {
"title": "Kling 3.0 Video"
}
},
"1210": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/stack3_kling",
"format": "auto",
"format.codec": "auto",
"video": [
"1209",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"1216": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"41",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Medium shot of the subject",
"resolution": "2K",
"response_modalities": "IMAGE+TEXT",
"seed": 1064378156241404,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"1217": {
"class_type": "KlingVideoNode",
"inputs": {
"generate_audio": False,
"model": "kling-v3",
"model.aspect_ratio": "16:9",
"model.resolution": "720p",
"multi_shot": "disabled",
"multi_shot.duration": 8,
"multi_shot.negative_prompt": "",
"multi_shot.prompt": "The camera dollies out ",
"seed": 1618448800,
"start_frame": [
"1216",
0
]
},
"_meta": {
"title": "Kling 3.0 Video"
}
},
"1218": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/stack4_kling",
"format": "auto",
"format.codec": "auto",
"video": [
"1217",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"1224": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"41",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": "Overhead aerial drone shot, looking down from a top perspective of the subject",
"resolution": "2K",
"response_modalities": "IMAGE+TEXT",
"seed": 540450878401556,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"1225": {
"class_type": "KlingVideoNode",
"inputs": {
"generate_audio": False,
"model": "kling-v3",
"model.aspect_ratio": "16:9",
"model.resolution": "720p",
"multi_shot": "disabled",
"multi_shot.duration": 8,
"multi_shot.negative_prompt": "",
"multi_shot.prompt": "Dolly out and orbit as the subject remains static.",
"seed": 1154249775,
"start_frame": [
"1224",
0
]
},
"_meta": {
"title": "Kling 3.0 Video"
}
},
"1226": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/stack5_kling",
"format": "auto",
"format.codec": "auto",
"video": [
"1225",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"1228": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "stack1_nb",
"images": [
"1189",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"1229": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "stack2_nb",
"images": [
"1200",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"1231": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "stack3_nb",
"images": [
"1208",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"1233": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "stack4_nb",
"images": [
"1216",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"1235": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "stack5_nb",
"images": [
"1224",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"1206:1203": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"927:912",
0
],
"image2": [
"1206:1205",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "Stitch Images"
}
},
"1206:1204": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1209",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"1206:1205": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": 384,
"image": [
"1206:1204",
0
],
"keep_proportion": "crop",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": 1080
},
"_meta": {
"title": "Resize Image v2"
}
},
"1214:1211": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"1206:1203",
0
],
"image2": [
"1214:1213",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "Stitch Images"
}
},
"1214:1212": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1217",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"1214:1213": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": 384,
"image": [
"1214:1212",
0
],
"keep_proportion": "crop",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": 1080
},
"_meta": {
"title": "Resize Image v2"
}
},
"1222:1219": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"1214:1211",
0
],
"image2": [
"1222:1221",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "Stitch Images"
}
},
"1222:1220": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1225",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"1222:1221": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": 384,
"image": [
"1222:1220",
0
],
"keep_proportion": "crop",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": 1080
},
"_meta": {
"title": "Resize Image v2"
}
},
"925:1197": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": 384,
"image": [
"925:903",
0
],
"keep_proportion": "crop",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": 1080
},
"_meta": {
"title": "Resize Image v2"
}
},
"925:903": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1192",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"927:1198": {
"class_type": "ImageResizeKJv2",
"inputs": {
"crop_position": "center",
"device": "cpu",
"divisible_by": 2,
"height": 384,
"image": [
"927:904",
0
],
"keep_proportion": "crop",
"pad_color": "0, 0, 0",
"upscale_method": "lanczos",
"width": 1080
},
"_meta": {
"title": "Resize Image v2"
}
},
"927:904": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1201",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"927:912": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"925:1197",
0
],
"image2": [
"927:1198",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "Stitch Images"
}
}
})
# Replace each example.com URL with a public URL of your file.
workflow.set_input("41", "image", client.assets.from_url("https://example.com/replace-with-a-url/image"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)Perguntas e respostas
Sim. O KlingVideoNode exige credenciais válidas. Insira sua chave de API ou token de sessão nas configurações do nó (ou ambiente, se suportado pela sua instalação) antes de executar a etapa de vídeo.
É um grupo pré-configurado de síntese de ângulos que pega sua imagem de entrada única e produz cinco pontos de vista alternativos para usar como quadros iniciais no Kling 3.0. Isso ajuda a visualizar diferentes ângulos sem criar entradas separadas manualmente.
Sim. O fluxo de trabalho está configurado para cinco ramificações por padrão. Você pode duplicar ou remover uma ramificação após o Reroute, depois atualizar as entradas de empilhamento no CreateVideo para que o composto corresponda à nova quantidade. Os controles de espaçamento dos ângulos (se expostos) ficam dentro do grupo Nano Banana 2.
O compositor organiza as cinco saídas do Kling em uma tela vertical para visualização em dispositivos móveis/redes sociais. Se preferir paisagem, altere o aspecto/tamanho no nó CreateVideo (os presets do autor incluem 720p/2K/16:9). Certifique-se de que todos os ramos alimentem o compositor na mesma resolução.
Workflows relacionados
- Nano Banana Pro, Gemini3 Pro Image Preview, Google
Create a character turnaround
- Qwen-Image-Edit
See your subject from a new angle
- Qwen-Image-Edit, Wan2.2
1 entrada de imagem Pilha Dividida - Qwen Multiângulo + Wan 2.2
- Kling 3.0, Nano Banana 2
3.1 Avançado: Vídeo Multi-Shot
- Seedance 2.0
4K Seedance 2.0 - Referência para Vídeo
- NNó parceiro
Comfy para Publicidade - Criação de Storyboard
- Wan2.2
Costura de Vídeo Multi-Keyframe
- Nano Banana Pro
De uma única imagem para múltiplas tomadas consistentes
- Qwen-Image-Edit
Gerar múltiplos ângulos com o nó de câmera 3D
- Nó parceiro
Ideação Rápida para Storyboard e Vídeo Animado (GPT Image 2 + Seedance 2.0)
- Kling 3.0
Kling 3.0: Multishot com 1 Clique
- Nó parceiro
Storyboard para Vídeo - Seedance 2.0