Get started
- Update ComfyUI to 0.44.1 or later
- Go to Template Library, search for
Pika H3 Flex - Write the prompt, then run the workflow
Pika H3 Flex: Text to Video (API)
Generate a clip with generated audio from a text prompt, up to 15 seconds.
Run on Comfy Cloud
Open in Comfy Cloud
Download Workflow
Download JSON or search “Pika H3 Flex” in Template Library
- Resolution:
480p,768p,1080p,2k, or4k, default768p.1080pand above render at 768p and upscale once - Duration: 5 to 15 seconds. The output follows a frame grid, where 5 seconds gives 124 frames, about 5.17 seconds
- Aspect ratio:
autofollows the first connected frame, otherwise the prompt - Rewrite prompt: off by default, which keeps the prompt and the seed reproducible
Image to video and first-last-frame
The same node handles both. Connectfirst_frame alone to animate a starting image, or connect first_frame and last_frame together to generate the motion between two fixed frames.
Reference to video
The Pika H3 Flex Reference to Video node generates or edits a clip guided by reference material: up to 9 images, 3 videos, and 3 audio clips, with 12 references in total. Videos and audio clips must be 2 to 15 seconds each, with a separate 15-second limit for videos and for audio. Refer to the references in the prompt as@Image1, @Video1, or @Audio1, in connection order. Turn reference_video_audio off when you want new ambience or new music instead of the sound from the connected videos.
Pika audio nodes
Three audio nodes run on the same Pika API and are billed per second of generated audio:- Pika Soundtrack: replaces the audio of a video up to 10 minutes with a synchronized soundtrack. The instruction describes the sound effects, ambience, or music; leave it empty to derive the audio from the picture
- Pika SFX: generates a sound effect from a text description, 1 to 20 seconds long
- Pika Music: generates a song from a text prompt and optional lyrics, 10 to 360 seconds, or covers a source song at its own length, clamped to 5 to 360 seconds