제품 광고 비디오
최대 3장의 제품 참조 이미지를 업로드하세요 원클릭으로 시네마틱 제품 광고 비디오를 제작하는 워크플로입니다. 제품 이미지를 최대 3장, 지속 시간, 컷/샷 개수, 그리고(선택 사항) 커스텀 지시사항을 입력하세요. LLM이 모든 입력을 처리해 MiniMax H3에 일관된 브랜드 제품 비디오 생성을 위한 구조화된 프롬프트를 만듭니다.
정보
이 ComfyUI 워크플로는 최대 3장의 참조 이미지를 활용해 시네마틱 멀티샷 제품 광고 비디오를 만듭니다. Inputs 그룹에서 Image 1은 히어로/환경 참조(모든 샷에 일관된 장면을 유지), Image 2–3은 제품 디테일 참조로 사용합니다. PrimitiveInt 노드로 전체 지속 시간과 고유 샷 개수를 설정하고, 브랜드/스타일 가이드는 PrimitiveStringMultiline 입력에 작성할 수 있습니다. LLM Prompt Generation 그룹은 GeminiNodeV2를 사용해 입력값을 MiniMax H3가 이해할 수 있는 단일 타임코드 프롬프트로 변환합니다(예: 0–3초 Shot 1, 3–6초 Shot 2 등). 구조화된 프롬프트와 참조 이미지는 MiniMax H3 노드로 전달되어 일관된 브랜드 비디오를 생성합니다.
이 워크플로의 효율성은 원프롬프트 멀티샷 설계에 있습니다. MiniMax H3는 모든 샷과 시간 구간이 포함된 단일 프롬프트를 요구하므로, GeminiNodeV2가 카메라 이동, 전환, 제품 강조가 포함된 깔끔한 샷 리스트를 만듭니다. PreviewAny와 MarkdownNote로 샷 스크립트를 미리 확인할 수 있습니다. 만족스러우면 최종 스크립트를 Edit Prompt? 그룹에 붙여넣어 LLM 단계를 건너뛰고 반복 생성 속도를 높일 수 있습니다. Generate and Save Video 그룹에서 광고를 렌더링하고 SaveVideo로 디스크에 저장해, 일관된 제품 광고를 빠르게 제작할 수 있는 파이프라인을 제공합니다.
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 모든 항목이 로드된 Comfy Cloud에서 열거나, 자체 ComfyUI에서 사용하려면 다운로드하세요.
Cloud에서 사용해 보기워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview이 워크플로의 파일
- 작성자
- Rob
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
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({
"4": {
"class_type": "LoadImage",
"inputs": {
"image": "c8696e8418db0e28c85df8c77d45ccead226c715bdef0a31829d27dbc882d999.png"
},
"_meta": {
"title": "Load Start Frame Image"
}
},
"8": {
"class_type": "LoadImage",
"inputs": {
"image": "13666a63b947d427aeb28f03fddfc28e268253f0c57346147525a32ebda49f8a.png"
},
"_meta": {
"title": "Load Product Image 1"
}
},
"12": {
"class_type": "LoadImage",
"inputs": {
"image": "554988911d94eb13700712629e48101e44456bc2bafb52cd8ca347a49cb25371.png"
},
"_meta": {
"title": "Load Product Image 2"
}
},
"22": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 10
},
"_meta": {
"title": "Total Seconds (4-15)"
}
},
"23": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 5
},
"_meta": {
"title": "Number of Shots"
}
},
"164": {
"class_type": "GeminiNodeV2",
"inputs": {
"model": "Gemini 3.1 Pro",
"model.images.image_1": [
"4",
0
],
"model.images.image_2": [
"8",
0
],
"model.images.image_3": [
"12",
0
],
"model.max_output_tokens": 32768,
"model.temperature": 1,
"model.thinking_level": "HIGH",
"model.top_p": 0.95,
"prompt": [
"81:85",
0
],
"seed": 111111,
"system_prompt": [
"309",
0
]
},
"_meta": {
"title": "Google Gemini"
}
},
"165": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": ""
},
"_meta": {
"title": "Prompt Input (copy/paste prompt here to make edits)"
}
},
"166": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"164",
0
]
},
"_meta": {
"title": "Preview Generated Prompt"
}
},
"200": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": ""
},
"_meta": {
"title": "User Story / Creative Direction (optional)"
}
},
"309": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "You are a creative director and video prompt specialist for high-end product ads. Your job is to analyze the provided product reference images and write ONE complete multi-shot video prompt (a reference-to-video model), in the sleek, editorial style of luxury product advertising (think Aesop, Dior, etc.).\n\n---\n\n## INPUT\nYou will receive:\n- Reference images. <Picture 1> is the hero/environment reference — its scene, surface, lighting, and atmosphere are the locked environment for the entire film. Any additional images are product detail references (label, texture, materials).\n- {N_SHOTS}: the number of distinct shots (1-8)\n- {N_SECONDS}: the total video duration in seconds (5-15). This is a hard constraint.\n- {USER_STORY}: optional creative direction. If provided, it overrides or augments your inferred vibe. If empty, rely entirely on your image analysis.\n\n---\n\n## STEP 1 — ANALYZE THE IMAGES\nBefore writing anything, internally assess from <Picture 1> (cross-referencing detail images):\n- Product type, shape, color, material, and finish\n- Existing lighting mood (hard/soft, warm/cool, dramatic/flat)\n- Background environment — describe it precisely and literally: surface type, color, texture, depth, atmosphere. This becomes a locked constant for all shots.\n- Implied brand positioning (luxury, minimal, bold, clinical, artisanal, etc.)\n\n## STEP 2 — DEFINE THE STYLE FRAME\nDerive a set of locked style constants in the editorial product-film idiom:\n1. **One palette.** A single monochromatic or duotone color world derived from the product and <Picture 1> (e.g. warm amber on near-black; sepia charcoal; cool blue-black). Every shot lives inside it.\n2. **One light.** A single motivated key light with deep, soft shadow falloff — chiaroscuro, not flat e-commerce lighting. Light can move, bloom, or sweep; it never multiplies.\n3. **One environment.** The scene from image 1, held constant. Seamless backdrop or minimal studio void. Never introduce new rooms, floors, or locations.\n4. **One material motif.** A single tactile material drawn from the product's story (its ingredient, texture, or context — e.g. wood shavings, stone, water, leather, silk, metal filings). It may appear as a macro landscape, as suspended fragments, or as a surface the product rests on — but it is ONE motif, reused, not a new prop per shot.\n5. **Suspended physics.** Levitation, slow rotation, fragments frozen or drifting mid-air, ultra-slow-motion — deliberate, weightless, controlled.\n\n## STEP 3 — ASSIGN A SHOT SEQUENCE\nMap {N_SHOTS} to an ad narrative arc:\n\n| Shot Role | Purpose |\n|---------------|----------------------------------------------------------|\n| Hero (Shot 1) | Product reveal — slow, confident, emerging from darkness |\n| Detail | Extreme macro of texture, material, label, or motif |\n| Feature | Product interacting with the material motif or light |\n| Lifestyle | Product in a wider, styled composition of its world |\n| Outro | Pull back, final beauty angle, settle into stillness |\n\n- 1-2 shots: Hero + Outro only\n- 3 shots: Hero, Detail (or Feature), Outro\n- 4 shots: Hero, Detail, Feature, Outro\n- 5 shots: Hero, Detail, Feature, Lifestyle, Outro\n- 6 shots: Hero, Detail, Detail, Feature, Lifestyle, Outro\n\n## STEP 4 — ALLOCATE TIME\nSplit {N_SECONDS} across the shots as contiguous time segments starting at 0.0s:\n- Use increments of 0.5 seconds; segments must sum EXACTLY to {N_SECONDS}\n- No shot shorter than 1.0s\n- Luxury/cinematic vibe: favor a longer Hero and Outro, compress middle shots\n- Energetic/bold vibe: distribute evenly, keep every shot punchy\n\n## STEP 5 — WRITE THE PROMPT\nProduce one continuous prompt with this structure:\n1. An opening global-style paragraph: film type, the product (as \"the product from <Picture 1>\"), the locked palette, light, environment, and material motif, and the note that the environment from <Picture 1> is constant throughout.\n2. One time-cued line per shot in the form `SHOT # [start s - end s] - `, beginning every shot after the first with \"Cut to\". Describe: camera angle and motion, subject action, how the light behaves, and how the motif participates. 25-60 words per shot.\n3. A final `Audio:` line - minimal ambient bed, subtle whoosh on cuts, delicate foley tied to the material motif, and a restrained musical gesture that resolves on the last shot. No voiceover, no lyrics.\n\nPrompt writing rules:\n- Present tense, descriptive and directive; lead with the most important visual element of each shot\n- Ground identity in the references: say \"the product from <Picture 1>\"; when a detail matters, cite its source (e.g. \"the label exactly as in <Picture 2>\")\n- Shot 1 opens on (or quickly reveals) the composition of <Picture 1> before the camera begins to move\n- Vary angle, distance, and motion meaningfully between shots - at least one extreme macro when {N_SHOTS} >= 3\n- Camera vocabulary: slow push-in, glide, orbit, top-down descent, tilt reveal, drift back. One camera idea per shot.\n- No on-screen text, no logos, no titles, no graphics, no UI. No people unless {USER_STORY} asks for them.\n- The environment is a locked constant, not a creative variable. Never introduce new settings or weather.\n\n---\n\n## OUTPUT FORMAT\nOutput ONLY the final prompt text - no preamble, no explanation, no markdown fences, no quotes.\n\n---\n\n## EXAMPLES\nThese show the required structure, pacing, and quality bar. Do NOT copy their content - derive everything from the actual input images.\n\nExample (3 shots, 7 seconds, warm apothecary product):\n\nEditorial luxury product film. The dark amber glass bottle from <Picture 1> in its original scene: a matte near-black surface fading into a warm brown void, one warm spotlight from upper left, fine atmospheric haze, deep soft shadows. Monochromatic amber-on-black palette. Material motif: dried cedar shavings. The environment from image 1 is constant throughout.\nSHOT 1 [0.0s - 2.5s] - The scene opens exactly on <Picture 1>, the bottle standing centered in near-darkness; the spotlight slowly blooms brighter as the camera pushes in from a low angle; thin curls of cedar shaving drift weightlessly around the bottle.\nSHOT 2 [2.5s - 4.5s] - Cut to an extreme macro: the camera glides low across a backlit landscape of cedar shavings, shallow depth of field, warm rim light tracing every curled edge, the blurred silhouette of the bottle rising in the background.\nSHOT 3 [4.5s - 7.0s] - Cut to a slow orbit: the bottle levitates a few centimeters above the surface, rotating gently, shavings frozen mid-air around it; the light sweeps once across the glass, the camera drifts back, and everything settles into stillness.\nAudio: low warm room tone, a soft airy whoosh on each cut, delicate dry rustle of cedar shavings, a single swelling ambient chord that resolves to silence on the final settle.\n\nExample (4 shots, 10 seconds, matte black tech product):\n\nEditorial tech product film. The matte black over-ear headphones from <Picture 1> in their original scene: a charcoal studio void, one hard key light from camera right with long falloff, sepia-toned monochrome palette. Material motif: fine leather grain. The environment from <Picture 1> is constant throughout.\nSHOT 1 [0.0s - 3.0s] - The scene opens on <Picture 1> in heavy shadow; a blade of light sweeps slowly across the earcup, revealing the silhouette; the camera pushes in with almost imperceptible slowness.\nSHOT 2 [3.0s - 5.5s] - Cut to an extreme macro of the leather earpad grain from <Picture 2>, the texture rolling like dunes under raking sepia light, focus breathing gently across the stitching.\nSHOT 3 [5.5s - 8.0s] - Cut to an exploded view: the earcup components separate and float apart in ultra-slow motion, each part catching the key light in turn, suspended in the void.\nSHOT 4 [8.0s - 10.0s] - Cut to the fully assembled headphones levitating, a slow thirty-degree orbit as the parts settle home; the light dims until only the rim highlight remains.\nAudio: near-silent dark ambience, soft mechanical clicks as components separate and reseat, an airy whoosh on each cut, one low resonant synth swell that fades on the final rim light.\n\nExample (5 shots, 10 seconds, clear glass tech earbuds)\nEditorial tech film. The clear earbuds from <Picture 1> in an infinite black void. High-contrast monochrome palette with neon cyan accents. Stark studio light, sharp reflections. Material motif: glossy obsidian. Environment is a locked constant.\nSHOT 1 [0.0s - 2.5s] - The scene opens exactly on <Picture 1>. The clear case lid glides open. The earbuds rest in the white base as their blue rings ignite.\nSHOT 2 [2.5s - 4.5s] - Cut to extreme macro. Camera tracks down the transparent outer shell. The blue ring pulses brightly, casting a crisp cyan lens flare.\nSHOT 3 [4.5s - 6.5s] - Cut to slow push-in. The earbud levitates weightlessly toward the sleek, glossy black mannequin ear from <Picture 2>.\nSHOT 4 [6.5s - 8.0s] - Cut to tight profile. The earbud seats precisely into the ear. A vivid blue light pulse instantly washes down the glossy black neck.\nSHOT 5 [8.0s - 10.0s] - Cut to wide beauty orbit. Both earbuds levitate above the open case in the black void, pulsing in unison before the light fades.\nAudio: Deep room tone, sleek mechanical whoosh, a heavy digital bass pulse on connection, fading synth echo."
},
"_meta": {
"title": "System Prompt"
}
},
"327": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/MiniMax_H3",
"format": "auto",
"format.codec": "auto",
"video": [
"328:326",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"115:111": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"165",
0
],
"on_true": [
"166",
0
],
"switch": [
"115:112",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"115:112": {
"class_type": "StringCompare",
"inputs": {
"case_sensitive": False,
"mode": "Equal",
"string_a": [
"165",
0
],
"string_b": [
"115:113",
0
]
},
"_meta": {
"title": "Compare Text"
}
},
"115:113": {
"class_type": "PrimitiveString",
"inputs": {
"value": ""
},
"_meta": {
"title": "Empty String"
}
},
"328:311": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17",
"values.a": [
"22",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"328:313": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 1,
"multiple": 32
},
"_meta": {
"title": "Resolution Selector (Size)"
}
},
"328:314": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_audio_vae_fp32.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"328:315": {
"class_type": "MiniMaxH3ReferenceToVideo",
"inputs": {
"audio_vae": [
"328:314",
0
],
"clip": [
"328:317",
0
],
"height": [
"328:313",
1
],
"length": [
"328:311",
1
],
"prompt": [
"115:111",
0
],
"ref_image_size": "match",
"ref_images.ref_image_0": [
"4",
0
],
"ref_images.ref_image_1": [
"8",
0
],
"ref_images.ref_image_2": [
"12",
0
],
"vae": [
"328:316",
0
],
"width": [
"328:313",
0
]
},
"_meta": {
"title": "MiniMax H3 Reference to Video"
}
},
"328:316": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_video_vae_fp16.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"328:317": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
"device": "default",
"type": "minimax"
},
"_meta": {
"title": "Load CLIP"
}
},
"328:318": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "res_multistep"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"328:319": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"328:321",
0
],
"scheduler": "simple",
"steps": 20
},
"_meta": {
"title": "BasicScheduler"
}
},
"328:320": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"328:315",
0
],
"model": [
"328:321",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"328:321": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"328:322": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 873821824241961
},
"_meta": {
"title": "RandomNoise"
}
},
"328:323": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"328:320",
0
],
"latent_image": [
"328:315",
1
],
"noise": [
"328:322",
0
],
"sampler": [
"328:318",
0
],
"sigmas": [
"328:319",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"328:324": {
"class_type": "VAEDecodeAudio",
"inputs": {
"samples": [
"328:323",
0
],
"vae": [
"328:314",
0
]
},
"_meta": {
"title": "VAE Decode Audio"
}
},
"328:325": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"328:323",
0
],
"vae": [
"328:316",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"328:326": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"328:324",
0
],
"bit_depth": 8,
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"328:325",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"81:303": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Using the attached reference images (image 1 is the hero/environment reference; any additional images are product detail references), create one multi-shot video prompt with {N_SHOTS} distinct shots. The total video duration is exactly {N_SECONDS} seconds.\n\nCreative direction from the user (may be empty): {USER_STORY}"
},
"_meta": {
"title": "Template User Prompt"
}
},
"81:76": {
"class_type": "SomethingToString",
"inputs": {
"input": [
"23",
0
],
"prefix": "",
"suffix": ""
},
"_meta": {
"title": "Something To String"
}
},
"81:77": {
"class_type": "SomethingToString",
"inputs": {
"input": [
"22",
0
],
"prefix": "",
"suffix": ""
},
"_meta": {
"title": "Something To String"
}
},
"81:78": {
"class_type": "RegexReplace",
"inputs": {
"case_insensitive": True,
"count": 0,
"dotall": False,
"multiline": False,
"regex_pattern": "{N_SHOTS}",
"replace": [
"81:76",
0
],
"string": [
"81:303",
0
]
},
"_meta": {
"title": "Replace Text (Regex)"
}
},
"81:79": {
"class_type": "RegexReplace",
"inputs": {
"case_insensitive": True,
"count": 0,
"dotall": False,
"multiline": False,
"regex_pattern": "{N_SECONDS}",
"replace": [
"81:77",
0
],
"string": [
"81:78",
0
]
},
"_meta": {
"title": "Replace Text (Regex)"
}
},
"81:85": {
"class_type": "RegexReplace",
"inputs": {
"case_insensitive": True,
"count": 0,
"dotall": False,
"multiline": False,
"regex_pattern": "{USER_STORY}",
"replace": [
"200",
0
],
"string": [
"81:79",
0
]
},
"_meta": {
"title": "Replace Text (Regex)"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)질문과 답변
MiniMax H3는 모든 샷과 명확한 시간 범위(예: 0–3초, 3–6초)가 포함된 단일 프롬프트를 요구합니다. GeminiNodeV2가 이 타임코드 샷 리스트를 만들어 H3가 하나의 구조화된 프롬프트로 여러 컷을 렌더링할 수 있게 합니다.
브랜드에 맞는 강한 Image 1을 히어로/환경 참조로 사용하세요. 워크플로는 모든 샷에 이 장면을 고정합니다. 일관성을 원한다면 프롬프트 중간에 장소가 급격히 바뀌는 지시사항은 피하세요.
네. 기본 템플릿은 최대 3장을 지원하지만, 추가 LoadImage 노드를 연결해 동일한 프롬프트 및 생성기 입력에 더 많은 이미지를 넣을 수 있습니다.
GeminiNodeV2와 MiniMax H3는 외부 서비스를 호출할 수 있습니다. 노드 설정에 따라 유효한 API 키와 네트워크 연결이 필요할 수 있습니다. 각 노드의 설정과 ComfyUI 콘솔을 확인하세요.
관련 워크플로
- Qwen-Image-Edit
Change a material
- Qwen-Image-Edit
See your subject from a new angle
- Flux.2 Dev, Flux
Create a product mockup
- Nano Banana Pro
Try an outfit on a character
- Seedream
Put your product in a new scene
- Seedream, MiniMax
Turn a product photo into a video
- Nano Banana Pro
Sharpen a product photo
- Nano Banana Pro, Google
1.3 스타터 - 제품 사진
- Flux.2 Klein
1.3 스타터 – 제품 사진 촬영
- Nano Banana Pro, Google
3x3 광고 이미지 생성
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
3x3 브랜드 아이콘 자산 그리드
- 파파트너 노드
Comfy 광고용 - 무드보드 제작