圖生影片
這是我爆火的韋斯·安德森風格Instagram影片背後的基礎工作流程。它展示瞭如何從一個簡單的提示詞開始,使用電影級圖像模型產生韋斯·安德森風格的圖像,然後透過Nanobanana增強紋理和詳情,最後使用當前最好的影片模型Kling 3.0將其轉化為影片。
關於
此 ComfyUI 工作流程「圖片轉影片」設計用於將簡單文字提示轉換為具 Wes Anderson 風格的影片。流程首先用專用模型 Z-Image-Turbo 生成電影感圖片,捕捉 Wes Anderson 電影的獨特美學。接著用 Nano Banana Pro 模型增強圖片質感與細節,達到精緻效果。最後,經增強的圖片以 Kling 3.0 模型轉為影片,該模型以優異的影片生成能力著稱。流程運用 SaveImage 節點儲存中間成果,並以 KlingImageToVideoWithAudio 節點產出最終影片,確保從圖片到影片的無縫轉換。
技術上,流程由一系列互連節點組成,自動化圖片生成、增強與影片製作。GeminiImage2Node 負責將文字提示轉為初始圖片,f2fdebf6-dfaf-43b6-9eb2-7f70613cfdc1 節點則應用 Nano Banana Pro 模型進行增強。KlingImageToVideoWithAudio 節點可將音訊整合進影片,提升層次與吸引力。此流程特別適合內容創作者,能以最少手動操作產出高品質、風格獨特的影片。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview需要自訂節點
- 正在讀取工作流程
從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
需要付費 Cloud 方案與點數。
# 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({
"9": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "NBP",
"images": [
"64",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"63": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/Kling2.6_i2v",
"format": "auto",
"format.codec": "auto",
"video": [
"65",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"64": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "9:16",
"images": [
"57:8",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": "Use the attached image and add some typical plane numberings and logos to the plane.",
"resolution": "2K",
"response_modalities": "IMAGE",
"seed": 1079943371682559,
"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)"
}
},
"65": {
"class_type": "KlingImageToVideoWithAudio",
"inputs": {
"duration": 5,
"generate_audio": True,
"mode": "pro",
"model_name": "kling-v2-6",
"prompt": "Handheld camera. An airplane moves forward while the camera slowly tracks along with it. No Cuts. No Talking. Ambient Sounds.",
"start_frame": [
"64",
0
]
},
"_meta": {
"title": "Kling 2.6 Image(First Frame) to Video with Audio"
}
},
"66": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "z-image-turbo",
"images": [
"57:8",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"57:11": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"57:28",
0
],
"sampling": "flow",
"shift": 3
},
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"57:13": {
"class_type": "EmptySD3LatentImage",
"inputs": {
"batch_size": 1,
"height": 1920,
"width": 1088
},
"_meta": {
"title": "EmptySD3LatentImage"
}
},
"57:27": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"57:30",
0
],
"text": "On a snowy plateau framed by jagged white peaks, a small plane sits in the foreground, its bright red tail fin rising like a flag against the ice. Stripes of yellow, blue, and orange stretch across its fuselage, injecting bands of saturated color into the otherwise monochrome world. Its skis rest gently on the snow, anchoring it in stillness while the mountains loom behind, their ridges casting pale blue shadows that carve geometric patterns across the surface. The sky is a flawless ultramarine, creating stark contrast between peak and void. Every line--the fuselage, the wings, the slope of the mountains--appears arranged with geometric precision, balancing color against emptiness. The lighting is sharp, crisp, and shadowless, heightening the sense of clarity and frozen perfection. The tableau has the quiet tension of waiting: a machine poised in nature’s immensity, reduced to a prop in a carefully staged spectacle of scale and color."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"57:28": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "z_image_turbo_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"57:29": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"57:3": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"57:13",
0
],
"model": [
"57:11",
0
],
"negative": [
"57:33",
0
],
"positive": [
"57:27",
0
],
"sampler_name": "res_multistep",
"scheduler": "simple",
"seed": 928035730101586,
"steps": 8
},
"_meta": {
"title": "KSampler"
}
},
"57:30": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_3_4b.safetensors",
"device": "default",
"type": "lumina2"
},
"_meta": {
"title": "Load CLIP"
}
},
"57:33": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"57:27",
0
]
},
"_meta": {
"title": "Conditioning Zero Out"
}
},
"57:8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"57:3",
0
],
"vae": [
"57:29",
0
]
},
"_meta": {
"title": "VAE Decode"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
Wes Anderson 風格以對稱構圖、鮮明色彩與細膩細節著稱,這些特點皆由 Z-Image-Turbo 模型於流程中捕捉。
可以,雖然本流程針對 Wes Anderson 風格最佳化,你也可嘗試不同模型與設定,產生其他風格。
會,KlingImageToVideoWithAudio 節點會將音訊整合進影片,提升觀賞體驗。
建議配備高效能 GPU 與充足記憶體,因影片生成較為耗資源。