FastH3 OmniRef: referencia a vídeo
Genera un VÍDEO sincronizado con audio correspondiente a partir de un prompt y una imagen de referencia usando el modelo destilado de ocho pasos FastH3...
Dentro del flujo de trabajo
Una vista previa de solo lectura de la plantilla de origen. Ábrela en Cloud para explorar los nodos y hacer cambios.
Loading the graph
Open full-size workflow previewSe ejecuta en
Archivos de este flujo de trabajo
- Salida
- Video
- Autor
- Autor no disponible
Llama a este modelo desde tu código
La solicitud a continuación utiliza el mismo grafo preparado y la misma configuración que el Playground. Cada envío puede iniciar una ejecución de pago; no reintentes automáticamente un envío cuyo resultado se desconozca.
What you need
- Runs on
- Comfy Cloud
- Clave
- COMFY_API_KEY
- Tus archivos
- El código los sube desde sus URL
Requiere un plan de pago de Cloud y 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({
"92": {
"class_type": "SaveVideo",
"inputs": {
"codec": "auto",
"filename_prefix": "video/FastH3_OmniRef",
"format": "auto",
"format.codec": "auto",
"video": [
"130",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"115": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 1,
"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": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"124": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"143",
0
],
"scheduler": "simple",
"steps": 8
},
"_meta": {
"title": "BasicScheduler"
}
},
"125": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"126",
0
],
"latent_image": [
"136",
1
],
"noise": [
"129",
0
],
"sampler": [
"123",
0
],
"sigmas": [
"124",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"126": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"136",
0
],
"model": [
"143",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"127": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "fasth3_omniref_8step_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": 771204598
},
"_meta": {
"title": "RandomNoise"
}
},
"130": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"121",
0
],
"bit_depth": 8,
"chroma_subsampling": "none",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"122",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"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": [
"137",
0
],
"vae": [
"119",
0
],
"width": [
"115",
0
]
},
"_meta": {
"title": "MiniMax H3 Reference to Video"
}
},
"137": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_reference_1_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"138": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "subject_definitions:\n<Subject 1> is the plane in <Picture 1>: a yellow propeller plane climbing vertically with a smoke trail.\n<Subject 2> is the setting in <Picture 1>: a towering cumulus cloud against a near-black sky.\n\nsummary:\n[reference generation] The target video is a 5-second, multi-cut cinematic aviation film. The plane climbs vertically, stalls at the top and tumbles into a dramatic dive.\n\nretention_analysis:\n<Subject 1> (appears in [Shot 1], [Shot 2]): fully_preserved - the yellow plane and white smoke trail are retained.\n<Subject 2> (appears in [Shot 1], [Shot 2]): fully_preserved - the towering cumulus and dark sky are retained.\n\ndetailed_description:\nThe target video is a striking, high-contrast aerial film with bright sunlit clouds, deep dark sky and dynamic camera moves.\n[Shot 1] A wide shot matches <Picture 1>: <Subject 1> climbs straight up above <Subject 2>, smoke trail curling, and the camera tilts up with it.\n[Shot 2] At 00:02.000, the shot cuts to a beautiful close-up of the propeller and yellow nose as it slows at the top; the plane stalls, flips over and the camera follows it diving toward the bright cloud.\n\noverall_soundscape:\nStraining engine, wind, a sudden silence at the stall and a roaring dive.\n\nnon_diegetic_music:\nTense rising strings that break into a thrilling crescendo."
},
"_meta": {
"title": "Input Text (Prompt)"
}
},
"141": {
"class_type": "MiniMaxH3SigmaShift",
"inputs": {
"model": [
"127",
0
],
"shift_audio": 3,
"shift_video": 12
},
"_meta": {
"title": "ModelSamplingMiniMaxH3"
}
},
"142": {
"class_type": "ModelAttentionBackend",
"inputs": {
"attention": "comfy kitchen attention",
"model": [
"141",
0
]
},
"_meta": {
"title": "Model Attention Backend"
}
},
"143": {
"class_type": "BlockSparseAttention",
"inputs": {
"dense_blocks": "",
"end_percent": 1,
"extra_tokens": 256,
"min_tokens": 12288,
"model": [
"142",
0
],
"selection": "vsa",
"selection.keep_percent": 10,
"sink_conditioning": "exact_kv_and_rows",
"start_percent": 0,
"verbose": False
},
"_meta": {
"title": "Model Sparse Attention"
}
}
})
workflow.set_input("137", "image", client.assets.from_url("https://comfy.org/catalog-media/a99235df-0c4c-4f12-a97e-4224f7462a85/d24ca161-46d0-48cf-ae03-0c3849c97da3"))
# 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)Probar un ejemplo
Acerca de este flujo de trabajo
FastH3 OmniRef is the eight-step distilled take on MiniMax H3 reference-to-video: one reference image pins the subject, the prompt carries the action and the sound, and both video and audio come out of the same pass in eight sampling steps.
Graph: LoadImage -> MiniMaxH3ReferenceToVideo (ref_image_0, prompt from a PrimitiveStringMultiline, width/height from a ResolutionSelector at 16:9 / 1 MP, length 124 frames at 24 fps) on fasth3_omniref_8step_pruned_int8_convrot, with MiniMaxH3SigmaShift (video 12, audio 3), BlockSparseAttention with VSA selection, euler sampler and a BasicScheduler at 8 steps, then CreateVideo -> SaveVideo.
Open weights on Cloud; no partner API involved.
Flujos de trabajo relacionados
- MiniMax H3
Create a video from references
- Seedance 2.5
Borrador de Seedance2.5: referencia a vídeo
- Seedance 2.5
Borrador de Seedance2.5: texto a vídeo
- FLUX 3 Video
FLUX 3 Máx: texto a vídeo
- Flux
FLUX 3 Vídeo: Texto a Vídeo
- Flux
FLUX 3 Vídeo: Texto a Vídeo
- Gemini Omni, Gemini Omni 1.2 Flash
Gemini Omni 1.2 Flash: Referencias a Vídeo
- Gemini Omni, Gemini Omni 1.2 Flash
Gemini Omni 1.2 Flash: Texto a Vídeo
- Wan2.2, Wan
Generación de video Wan 2.2 5B
- Grok Imagine Video
Grok Imagine Video 1.5 Lite: texto a vídeo
- Grok
Grok: referencia a vídeo
- HHappyHorse
HappyHorse 1.1: Referencia a vídeo