ComfyUI includes three official Pika H3 Flex templates: Text to Video, Reference to Video and first-and-last frames (FL2VA). They run the open model weights on your own GPU, so they do not use Pika credits. You need ComfyUI 0.44.0 or newer, about 42 GB of model files and a graphics card with plenty of memory.
This guide follows the setup on a rented RTX 4090 with 48 GB of GPU memory from Vast.ai. Each step shows the real screen, with arrows on the controls you need. If you would rather not manage a GPU, the Pika web app runs H3 Flex in a browser.

Jump to the model files · See the prompt step · Check the costs
What you need before you start
| Requirement | What to plan for |
|---|---|
| ComfyUI | Version 0.44.0 or newer. Older versions do not list the H3 Flex templates. |
| GPU memory | 48 GB or more. During an 8-second 1344 × 768 job, our 48 GB card had about 35 GB in use. |
| System memory | About 41 GB of the instance’s 53.7 GB was in use during sampling, so 64 GB gives comfortable room. |
| Disk | 42 GB for the Text to Video and FL2VA files, 65 GB for all three templates. Rent 100 GB or more. |
| Internet | A fast connection matters. Some hosts also charge for each gigabyte of incoming data. |
Comfy’s documentation does not name a minimum GPU. The H3 Flex GitHub package was tested on one H100 80GB, so an 80 GB card is the safest choice. A 24 GB consumer card cannot hold the 21 GB video model plus the working memory a clip needs.
A Mac cannot run these templates. The model files and ComfyUI nodes expect an NVIDIA GPU.
Step 1: Rent a GPU with ComfyUI installed
On Vast.ai, search for an offer with at least 48 GB of GPU memory and choose a ComfyUI template, so ComfyUI and Jupyter come preinstalled. Set the container disk to at least 100 GB before you rent.
Before you confirm, hover over the price. The hourly price covers the GPU, while incoming data and storage are billed separately.

When the instance shows as running, click Open.
Step 2: Open the Instance Portal
The portal lists every app on the instance. You will use two of them:
- ComfyUI opens the node editor in a new browser tab.
- Jupyter Terminal opens a command line for the update and the model files.

Step 3: Update ComfyUI to 0.44.0 or newer
Check your version first. In the Jupyter Terminal, run:
cd /workspace/ComfyUI
git describe --tags
If it prints a version below v0.44.0, update to the latest release tag and reinstall the requirements. We used v0.46.3:
git fetch --tags
git checkout v0.46.3
pip install -r requirements.txt
supervisorctl restart comfyui
The requirements install a newer comfyui-workflow-templates package; the H3 Flex templates come from that package. On Vast’s ComfyUI image, supervisorctl restarts the ComfyUI service. On another host, stop ComfyUI and start it again.
Step 4: Get the model files
Text to Video and FL2VA share one set of five files. Reference to Video uses the same text encoder and VAEs, plus its own video model and LoRA.
| File | ComfyUI folder | Size | Needed for |
|---|---|---|---|
minimax_h3_fl2va_pruned_int8_convrot.safetensors |
models/diffusion_models |
20.97 GB | Text to Video, FL2VA |
pika_h3_flex_fl2va_v1_bf16.safetensors |
models/loras |
1.96 GB | Text to Video, FL2VA |
minimax_h3_ref2va_pruned_int8_convrot.safetensors |
models/diffusion_models |
20.97 GB | Reference to Video |
pika_h3_flex_ref2va_v1_bf16.safetensors |
models/loras |
1.96 GB | Reference to Video |
qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors |
models/text_encoders |
15.69 GB | All three |
minimax_h3_video_vae_int8_convrot.safetensors |
models/vae |
2.81 GB | All three |
minimax_h3_audio_vae_fp32.safetensors |
models/vae |
0.61 GB | All three |
All seven files are in the Comfy-Org/MiniMax-H3 repository on Hugging Face. Its folder names match ComfyUI’s models folders, so the files can go straight into them. This command fetches all seven files. If you only need Text to Video and FL2VA, delete the two ref2va lines before you run it; that saves about 23 GB.
hf download Comfy-Org/MiniMax-H3 \
diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors \
loras/pika_h3_flex_fl2va_v1_bf16.safetensors \
text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors \
vae/minimax_h3_video_vae_int8_convrot.safetensors \
vae/minimax_h3_audio_vae_fp32.safetensors \
diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors \
loras/pika_h3_flex_ref2va_v1_bf16.safetensors \
--local-dir /workspace/ComfyUI/models
The hf command comes with the Hugging Face Hub package, which Vast’s ComfyUI image includes. On other hosts, install it first with pip install -U huggingface_hub. On a fast host, the Text to Video and FL2VA files took under three minutes. Check that each file sits in the folder shown in the table. A file in the wrong folder does not appear in the node’s menu.
Step 5: Open the Text to Video template
Switch to the ComfyUI tab. The template library usually opens on its own. If it does not, open Templates from the left sidebar. Type Pika H3 in the search box.
Three templates appear:
- Pika H3 Flex: Text to Video makes a clip from a prompt alone.
- Pika H3 Flex: Reference to Video follows image, video or audio references.
- Pika H3 Flex: FL2VA starts and ends on frames you supply.
Click Text to Video. It has the fewest inputs, so it is the easiest one to check your setup with.
Step 6: Learn the four nodes
The template opens zoomed out. Scroll to zoom in until the node text is readable.

- Resolution Selector sets the frame shape. With 16:9 and 0.98 megapixels, it gives 1344 × 768, which is H3 Flex’s 768p size.
- Image to Video (Pika H3 Flex) holds the prompt, duration, seed and model menus. Its
first_frameandlast_frameinputs stay empty in Text to Video. - Save Video writes the MP4 to
ComfyUI/output/video/with the prefixPika_H3_Flex_T2V. - Note: Model Links lists the pages that host the model files.
If a model field shows an unfamiliar name, click it and pick the matching file from the menu. Leave lora_strength at 1.00.
Inside the H3 Flex node, the template samples in six steps with the lcm sampler and CFG 1.0. Comfy’s documentation warns against adding a turbo or Lightning LoRA on top, because this workflow is already a six-step model.
Step 7: Write the prompt and set the length
Click inside the prompt box, select all of the sample text and paste your own. H3 Flex prompts work best in the labelled fields from the GitHub repository. Our GitHub prompt format guide explains each field. This is a short café scene in that format:
integrated_multimodal_description:
[Shot 1] A live-action medium close-up in a small sunlit café. A barista with short curly hair and a green apron stands behind a wooden counter. She sets a white cappuccino cup on its saucer, slides it toward the camera and says warmly (S1), <d>[English] One oat cappuccino.</d> A customer's hand enters from the right and lifts the cup away. The camera remains fixed. End with the barista smiling at the empty saucer.
overall_soundscape:
Quiet café ambience, a soft ceramic clink as the cup touches the saucer, and an espresso machine hissing in the background.
non_diegetic_music:
N/A
Then set duration in seconds. Use 5 for your first check, because a shorter clip loads and finishes faster.

The node rounds your duration to H3 Flex’s frame grid at 24 frames per second:
| Duration you type | Frames | Real length |
|---|---|---|
| 5 | 124 | 5.17 s |
| 8 | 192 | 8.00 s |
| 10 | 243 | 10.13 s |
| 12 | 294 | 12.25 s |
| 15 | 362 | 15.08 s |
Step 8: Run the workflow and find the file
Click Run. The first run takes longer, because ComfyUI loads the 15.7 GB text encoder and then the 21 GB video model from disk.

While it runs:
- The progress bar names the current node, such as Load CLIP or SamplerCustomAdvanced.
- The queue count shows active jobs. The red button next to Run cancels the job.
- The seed changes after you click Run. ComfyUI picks the next random seed once the job is queued. To repeat a clip exactly, note the seed before you click Run, then type it back in.
When the job finishes, the clip appears in the Save Video node. You can also save it from ComfyUI/output/video/ in Jupyter’s file browser. The MP4 includes the generated sound.
Use first and last frames (FL2VA)
The Pika H3 Flex: FL2VA template uses the same five model files as Text to Video. It adds two Load Image nodes, First frame and Last frame (Picture 2), that feed the H3 Flex node.
- Use the upload button in each Load Image node to add your start and end images.
- Start the prompt with an alignment line that says when each picture appears.
- Write the action between them in
integrated_multimodal_description.
How the reference pictures align with the target video — <Picture 1> (from [Shot 1]) aligns with the 0.00-second mark of the target video; <Picture 2> (from [Shot 1]) aligns with the 5.17-second mark of the target video.
integrated_multimodal_description:
[Shot 1] Begin aligned with <Picture 1>. The cream table lamp on the oak desk switches on. The bulb flickers once, then glows steadily, and a warm pool of light spreads across the desk and the sage-green wall. No hands or people appear. One continuous shot; the camera remains fixed. End aligned with <Picture 2>.
overall_soundscape:
A soft switch click and quiet room tone.
non_diegetic_music:
N/A
Use the real length from the duration table in the alignment line. A 5-second clip ends at 5.17 seconds. Give both images the same shape as your output, for example 16:9 for 1344 × 768.
Use reference images, video or audio
The Pika H3 Flex: Reference to Video template needs the ref2va video model and LoRA from Step 4. Its graph is laid out in full, not packed into one node. It has two Load Image nodes, a Float (Duration) node, a Resolution Selector and an Input Text (Prompt) node.
The reference node accepts up to 9 images, 3 videos and 3 audio clips, with no more than 12 files in total. Each video or audio reference should run 2–15 seconds, and each type should total no more than 15 seconds.
Upload your images in the Load Image nodes. In the prompt, name each one with the tags <Picture 1>, <Video 1> or <Audio 1>, in the order the files are connected. The template’s sample prompt uses six fields, starting with the subject definitions:
subject_definitions:
<Subject 1> is the ivory mug in <Picture 1>, retaining its shape, its handle on the right and the dark coffee inside.
summary:
[reference generation] <Subject 1> sits on a rain-streaked windowsill at dusk while steam rises and the camera slowly pushes in.
retention_analysis:
<Subject 1> (appears in [Shot 1]): fully_preserved - retain the mug, its handle on the right and the dark coffee exactly as shown.
detailed_description:
The video is live-action.
[Shot 1] <Subject 1> sits on a rain-streaked windowsill at dusk, with soft blue light outside and a warm lamp glow inside. Steam rises from the coffee while raindrops run down the glass. One continuous shot; the camera slowly pushes in and ends on a close-up of <Subject 1>.
overall_soundscape:
Gentle rain on the window and quiet room tone.
non_diegetic_music:
A soft, slow piano phrase.
If a reference picture has a background you do not want, say so in retention_analysis. For example, the template’s own sample prompt tells the model to discard a reference photo’s grey studio backdrop. Its Note node also links the two sample images, so you can load the untouched template and compare it with your own version.
What a rented GPU costs
A rented GPU is billed in three parts:
- GPU time is charged per hour while the instance runs. Our 48 GB RTX 4090 cost $0.654 per hour.
- Incoming data is charged per gigabyte on some hosts. This host charged $0.04 per GB, so the first 42 GB file set cost about $1.70, and all three templates’ files cost about $2.60.
- Storage continues after you stop the instance. Ours dropped to $0.12 per hour.
To keep the bill down:
- Compare data transfer prices before you rent. On a host that charges per gigabyte, fetching the models can cost more than an hour of GPU time.
- Fetch only the files for the template you plan to use.
- Keep the instance stopped, not deleted, between sessions if you will return soon. Restarting it avoids paying to fetch the files again.
- Delete the instance when you are finished. A stopped instance keeps charging for storage.
Vast.ai stops an instance when the account balance reaches $0. If ComfyUI suddenly shows Reconnecting, check the instance status and balance in the Vast console before you troubleshoot the workflow.
Common problems
| Problem | Likely cause | Fix |
|---|---|---|
| No Pika H3 templates in the search | ComfyUI is older than 0.44.0 | Update with Step 3 and restart ComfyUI |
| A model field shows a missing file | The file is in the wrong folder or has another name | Move it into the folder from the Step 4 table, then press R in ComfyUI to refresh the model lists |
| Out of memory during sampling | The card has too little memory for the length or size | Lower the duration, or lower megapixels in the Resolution Selector |
| Odd or broken motion | An extra speed LoRA, or changed sampler settings | Remove extra LoRAs and reload the template |
| ComfyUI shows Reconnecting | The instance stopped or its tunnel restarted | Check the instance in the Vast console, then reload the ComfyUI tab |
ComfyUI or the Pika web app?
| ComfyUI templates | Pika web app | |
|---|---|---|
| Payment | GPU rental or your own hardware | Pika credits |
| Setup | Update ComfyUI, fetch 42–65 GB of files | None |
| Output size | Native 480p or 768p | 768p drafts, plus 1080p, 2K and 4K finishing |
| Audio | One mixed soundtrack | Mixed soundtrack, plus optional separate stems |
| Control | Edit seeds, sizes and the whole node graph | Fixed controls in the browser |
Choose ComfyUI if you want to repeat runs with fixed seeds or build H3 Flex into a larger node workflow. For one-off clips, the web app guide is the quicker path. Our multi-shot recipes show what it produces.
Frequently asked questions
Does Pika H3 Flex in ComfyUI use Pika credits?
No. The ComfyUI templates load the open model weights on your own GPU. You pay for the hardware or rental instead.
Which GPU do I need for the ComfyUI workflow?
Plan for 48 GB of GPU memory or more. An 8-second 1344 × 768 job used about 35 GB on our 48 GB card. An 80 GB H100 or A100 leaves the most room.
How much disk space do the model files take?
About 42 GB for Text to Video and FL2VA, and about 65 GB for all three templates. Add room for outputs and Python packages.
Can I run the H3 Flex ComfyUI templates on a Mac?
No. The workflow needs an NVIDIA GPU with far more memory than a Mac provides. Use a rented GPU, Comfy Cloud or the Pika web app instead.
Why can’t I find the Pika H3 Flex templates in ComfyUI?
Your ComfyUI is probably older than 0.44.0. Update it, reinstall the requirements so the template package updates too, and restart ComfyUI.
