Pika H3 Flex: 레퍼런스 기반 비디오 생성
Pika H3 Flex를 사용하여 참조 이미지에서 동기화된 오디오가 포함된 비디오를 생성하며, 프롬프트가 스토리를 전달하는 동안 참조 이미지의 정체성, 의상 및 외형을 유지합니다. 두 개의 이미지 입력이 Picture 1과 Picture 2로 연결되고, Pika 어댑터는 강도...
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
Loading the graph
Open full-size workflow preview코드에서 이 모델 호출하기
아래 요청은 Playground와 동일하게 준비된 그래프와 설정을 사용합니다. 제출할 때마다 유료 실행이 시작될 수 있으므로 결과를 알 수 없는 제출을 자동으로 재시도하지 마세요.
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
- 내 파일
- 코드가 해당 URL에서 업로드
유료 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({
"92": {
"class_type": "SaveVideo",
"inputs": {
"codec": "auto",
"filename_prefix": "video/Pika_H3_Flex_REF2V",
"format": "auto",
"format.codec": "auto",
"video": [
"152",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"115": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 0.98,
"multiple": 32
},
"_meta": {
"title": "Resolution Selector (Size)"
}
},
"119": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_video_vae_int8_convrot.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"120": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_audio_vae_fp32.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"121": {
"class_type": "VAEDecodeAudio",
"inputs": {
"samples": [
"125",
0
],
"vae": [
"120",
0
]
},
"_meta": {
"title": "VAE Decode Audio"
}
},
"122": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"125",
0
],
"vae": [
"119",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"123": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "lcm"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"125": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"126",
0
],
"latent_image": [
"136",
1
],
"noise": [
"129",
0
],
"sampler": [
"123",
0
],
"sigmas": [
"147",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"126": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"136",
0
],
"model": [
"145",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"127": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"128": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"device": "default",
"type": "minimax"
},
"_meta": {
"title": "Load CLIP"
}
},
"129": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 261662374822964
},
"_meta": {
"title": "RandomNoise"
}
},
"131": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17",
"values.a": [
"132",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"132": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5
},
"_meta": {
"title": "Float (Duration)"
}
},
"136": {
"class_type": "MiniMaxH3ReferenceToVideo",
"inputs": {
"audio_vae": [
"120",
0
],
"clip": [
"128",
0
],
"height": [
"115",
1
],
"length": [
"131",
1
],
"prompt": [
"138",
0
],
"ref_image_size": "match",
"ref_images.ref_image_0": [
"149",
0
],
"ref_images.ref_image_1": [
"150",
0
],
"vae": [
"119",
0
],
"width": [
"115",
0
]
},
"_meta": {
"title": "MiniMax H3 Reference to Video"
}
},
"138": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "subject_definitions:\n<Subject 1> is the station exterior in <Picture 2>. Reference role: form and material anchor. Features to follow exactly: a wide white saucer-shaped upper hull with visible panel seams and small antennas on top, a lit yellow-orange window band running around the rim, a cluster of white cylindrical modules hanging beneath the saucer with thin antenna spars at the bottom, weathered white paint with dark seams between plates, and the blue limb of a planet with white cloud bands behind it.\n<Subject 2> is the pilot in <Picture 1>. Reference role: identity and gear anchor. Features to follow exactly: a dark matte flight helmet with a wide glossy black visor, one thin orange glowing ring on the left side of the visor and two horizontal orange glowing bars on the right side, a segmented metal collar ring under the jaw, and a bulky dark flight suit with a soft padded cowl. Do not carry over the light grey studio background of <Picture 1>.\n<Subject 3> is the station interior, invented to match <Subject 1>: a dark rectangular hangar bay with ribbed white-metal walls, deep structural ribs, a grated catwalk running across the middle distance, small cargo clamps along the walls, and orange strip lights recessed between the ribs that match the colour of the pilot's visor glow.\n\nsummary:\n[reference generation] A five-second single continuous shot: the station of <Picture 2> hangs in orbit, the camera pushes in toward its saucer rim, the bay mouth opens and the camera travels inside, where the hangar lights come up to reveal the pilot of <Picture 1> standing on the catwalk. Exterior and interior are one move, no cut.\n\nretention_analysis:\n<Subject 1> (appears in [Shot 1]): fully_preserved - saucer hull, panel seams, yellow-orange rim band, hanging module cluster, antenna spars.\n<Subject 2> (appears at the end of [Shot 1]): fully_preserved - helmet silhouette, glossy visor, the orange ring and two orange bars, collar ring and padded cowl.\n<Subject 3> (appears at the end of [Shot 1]): attribute_transfer - the ribbed white-metal language and window-band orange of <Subject 1> are carried inside as hull ribs and strip lights; the bay layout itself is new.\n<Picture 1> background: weak_reference only - its light grey studio backdrop is discarded entirely.\nNo audio reference is used in this generation.\n\ndetailed_description:\nRefined retro-futurist cinematography in a single unbroken move, cold blue ambient outside against warm orange interior light, deep blacks in both halves, fine grain and no lens flares; the camera is the only thing that travels and it never cuts.\n\n[Shot 1] Wide establishing frame: the station of <Subject 1> hangs in the black, centred and slightly below eye level, the planet's blue limb and white cloud bands filling the lower third behind it. The saucer's rim band glows a soft orange, the hanging module cluster underneath reads as a dense white cylinder mass with thin spars, and the hull plates are weathered white with dark seams. The camera pushes in with small amplitude at slow speed, straight toward the saucer rim, and the station grows until the window band fills the upper half of the frame.\n\nAt about one and a half seconds a rectangular bay mouth opens in the rim below the band: two armour plates slide apart, spilling a warm orange rectangle of light into the vacuum, and a faint haze of vented gas drifts out of it. The camera does not stop and does not slow down; it continues into the opening, the frame going completely black for a beat as it crosses the threshold, then the interior lights of <Subject 3> come up in rows from the far end toward the lens, stripping in along the ribs one section at a time.\n\nAt about three seconds the camera is inside, gliding down the length of the ribbed hangar at chest height, the grated catwalk beneath it, cargo clamps and rib shadows sliding past on both sides, and the orange strip lights drawing long converging lines toward the far bulkhead. The camera decelerates and comes to rest at about four and a half seconds, framing <Subject 2> standing on the catwalk in three-quarter profile: dark helmet, glossy black visor with the orange ring and the two orange bars lit, padded cowl, suit reading as a soft dark mass against the white ribs. The last beat holds completely still while the pilot turns their head a few degrees toward the lens and the visor glow spills a thin orange edge onto the nearest rib.\n\noverall_soundscape:\nDeep vacuum silence outside with only a low sub-bass hum from the station's structure, then a hard change as the camera crosses the threshold: pressurised air rushing past the lens, the hydraulic whine of the bay plates closing behind, distant bulkhead clanks, the hum of the hangar settling into a steady tone, and one soft suit life-support hiss from the pilot at the end.\n\nnon_diegetic_music:\nA slow retro synthwave pad that holds one low chord through the exterior, drops to near silence for the threshold crossing, and returns as a warm rising two-note figure as the hangar lights come up, ending on the held final frame."
},
"_meta": {
"title": "Input Text (Prompt)"
}
},
"145": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "pika_h3_flex_ref2va_v1_bf16.safetensors",
"model": [
"127",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"147": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "1.0, 0.972973, 0.923077, 0.8, 0.571429, 0.333333, 0.0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"149": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_reference_1_FILENAME"
},
"_meta": {
"title": "LoadImage (Picture 1 — pilot)"
}
},
"150": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_reference_2_FILENAME"
},
"_meta": {
"title": "LoadImage (Picture 2 — station)"
}
},
"152": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"121",
0
],
"bit_depth": "auto",
"chroma_subsampling": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"122",
0
]
},
"_meta": {
"title": "Create Video"
}
}
})
workflow.set_input("149", "image", client.assets.from_url("https://comfy.org/catalog-media/a950f53c-731d-42f2-84cf-8c6f94014267/078ac588-d176-4c60-85fa-6f0c72c73ad5"))
workflow.set_input("150", "image", client.assets.from_url("https://comfy.org/catalog-media/e5564875-d45a-40d0-8c72-bc7b47b56037/fb2670ce-17cf-4ed3-baff-4d118d6c8dd9"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("92"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
Pika H3 Flex Reference to Video attaches two reference images to a MiniMax H3 generation and lets the prompt describe what happens between them: the pilot keeps her suit and face, the station keeps its architecture, and the clip carries synchronized audio.
Graph: LoadImage x2 -> MiniMaxH3ReferenceToVideo (ref_image_0 = the pilot, ref_image_1 = the station; prompt from a PrimitiveStringMultiline, width/height from a ResolutionSelector at 16:9 / 0.98 MP, length 124 frames at 24 fps) with the Pika adapter as a LoRA at strength 1.0 on minimax_h3_ref2va_pruned_int8_convrot, lcm sampler and a seven-value sigma list, then CreateVideo -> SaveVideo.
Runs the open-weights H3 stack on Cloud; no partner API is involved.
관련 워크플로
- MiniMax H3
Create a video from references
- MiniMax H3
FastH3 OmniRef: 레퍼런스 기반 비디오 생성
- FLUX 3 Video
FLUX 3 Max: 텍스트 기반 비디오 생성
- Flux
FLUX 3 비디오: 텍스트 투 비디오
- Flux
FLUX 3 비디오: 텍스트 투 비디오
- Gemini Omni, Gemini Omni 1.2 Flash
Gemini Omni 1.2 Flash: 참조 이미지로 영상
- Gemini Omni, Gemini Omni 1.2 Flash
Gemini Omni 1.2 Flash: 텍스트에서 영상
- Grok Imagine Video
Grok Imagine Video 1.5 Lite: 텍스트 기반 비디오 생성
- Grok
Grok: 레퍼런스 기반 비디오 생성
- HHappyHorse
HappyHorse 1.1: 레퍼런스 기반 비디오 생성
- HHappyHorse Text-to-Video
HappyHorse 1.1: 텍스트 → 비디오
- HHappyHorse 1.0
HappyHorse: 레퍼런스 기반 비디오 생성