Pika H3 Flex: texto a vídeo
Genera vídeo con audio sincronizado a partir de un prompt de texto con Pika H3 Flex, un adaptador entrenado por Pika sobre MiniMax H3 que entrega un clip...
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
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/Pika_H3_Flex_T2V",
"format": "auto",
"format.codec": "auto",
"video": [
"140:130",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"115": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 0.98,
"multiple": 16
},
"_meta": {
"title": "Resolution Selector"
}
},
"140:119": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_video_vae_int8_convrot.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"140:120": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_audio_vae_fp32.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"140:121": {
"class_type": "VAEDecodeAudio",
"inputs": {
"samples": [
"140:125",
0
],
"vae": [
"140:120",
0
]
},
"_meta": {
"title": "VAE Decode Audio"
}
},
"140:122": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"140:125",
0
],
"vae": [
"140:119",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"140:123": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "lcm"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"140:125": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"140:126",
0
],
"latent_image": [
"140:131",
1
],
"noise": [
"140:129",
0
],
"sampler": [
"140:123",
0
],
"sigmas": [
"140:143",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"140:126": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"140:131",
0
],
"model": [
"140:134",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"140:127": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"140:128": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"device": "default",
"type": "minimax"
},
"_meta": {
"title": "Load CLIP"
}
},
"140:129": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 914757319624586
},
"_meta": {
"title": "RandomNoise"
}
},
"140:130": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"140:121",
0
],
"bit_depth": "auto",
"chroma_subsampling": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 24,
"images": [
"140:122",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"140:131": {
"class_type": "MiniMaxH3ImageToVideo",
"inputs": {
"clip": [
"140:128",
0
],
"height": [
"140:147",
1
],
"length": [
"140:132",
1
],
"prompt": "integrated_multimodal_description: [Shot 1] Stylized 3D animation, Pixar-inspired cartoon rendering with a C4D and Octane look, warm subsurface scattering through ears and fingertips and exaggerated squash-and-stretch acting; a three-head-tall cook with a round face, a tall white toque that flops to one side and a flour-dusted apron stands at a stainless counter in a small warm kitchen, rolling dumplings by hand. The counter is dusted white, a bamboo steamer steams on the right, and a shallow pot of broth sits at the burner behind him with visible heat shimmer. The camera holds a static shot at counter height for the first second while he sets one finished dumpling down on a tray in the foreground, presses the seam with two fingers, then turns away to reach for a rolling pin on the shelf behind him, the toque tipping as he turns. At about one and a half seconds the dumpling on the tray presses itself upward, its pleated top gathering like a brow, and two stubby legs of dough push out of its base. It walks to the tray edge in three quick shuffling steps, the tray ringing slightly under each step, and jumps off toward the pot. At about two and a half seconds the cook whips around and lunges, both arms out, and misses clean over the top of it as the dumpling arcs into the broth with a plop. He freezes half-bent over the pot, arms still out. At about three and a half seconds the surface breaks and the dumpling floats back up, cooked, glossy and steaming, bobbing once against the side of the pot. The last second holds completely still on the cook's face as he straightens up slowly, flour on his cheek, the toque now fully flopped over one eye, one eyebrow rising while his mouth stays flat; a single bubble pops on the broth behind him.\n\noverall_soundscape: Warm small-kitchen ambience with a low gas burner hiss and the faint creak of a steaming bamboo basket, the dry shuffle of a flour dusting, three soft doughy footfalls on metal tray, one short airy whoosh as he lunges, a clean heavy plop into broth, then a gentle simmer with one small bubble popping.\n\nnon_diegetic_music: A light pizzicato cello figure at a moderate tempo that follows the dumpling's footsteps, drops out completely during the lunge and the plop, and returns on a single dry resolved note as the cook straightens up.",
"vae": [
"140:119",
0
],
"width": [
"140:148",
1
]
},
"_meta": {
"title": "MiniMax H3 Image to Video"
}
},
"140:132": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17",
"values.a": [
"140:133",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"140:133": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5
},
"_meta": {
"title": "Float (duration)"
}
},
"140:134": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "pika_h3_flex_fl2va_v1_bf16.safetensors",
"model": [
"140:127",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"140:143": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "1.0, 0.972973, 0.923077, 0.8, 0.571429, 0.333333, 0.0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"140:147": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "round(a/32)*32",
"values.a": [
"140:150",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"140:148": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "round(a/32)*32",
"values.a": [
"140:149",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"140:149": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"115",
0
]
},
"_meta": {
"title": "Int"
}
},
"140:150": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"115",
1
]
},
"_meta": {
"title": "Int"
}
}
})
# 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
Pika H3 Flex Text to Video is a Pika post-trained adapter over MiniMax H3: the prompt carries the shot list and the sound, and one pass returns a finished 1344x768 clip with a synchronized audio track.
Graph: a MiniMaxH3ImageToVideo subgraph instance (prompt from the widget, width/height from a ResolutionSelector at 16:9 / 0.98 MP rounded to 32, length from a seconds PrimitiveFloat through max(5, round(a*24)) padded to a 17-frame multiple) on minimax_h3_fl2va_pruned_int8_convrot with the pika_h3_flex_fl2va LoRA at strength 1.0, lcm sampler, seven-value sigma list, CreateVideo at 24 fps -> 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
- MiniMax H3
FastH3 OmniRef: referencia 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