Skip to main content
This node prepares the conditioning and empty latent needed to generate a video with the MiniMax H3 model. It takes a text prompt and, optionally, images for the first and/or last frame of the video, and converts them into model inputs. Keyframe images are resized, encoded, and attached to the conditioning at the start and end of the video.

Inputs

When first_frame and/or last_frame are provided, the keyframe images are encoded with the VAE and attached to the conditioning at frame 0 and at the final frame, respectively. When neither is provided, the node works from the prompt alone. The requested length is snapped up to the nearest valid frame count (17k + 5), so the effective frame count may be slightly higher than requested. The audio-video latent is created as an empty pair matching the requested width, height, and the snapped frame count. The audio portion is sized from the same frame count at 40 audio frames per second.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): d1bdf3f8c66ef20ff11c35203d2c266a88dcf8cc00c65dbb0aea2b1dd16befd6