Skip to main content
ComfyUI Native MiniMax Image to Video Node The MiniMax Image to Video node uses MiniMax’s API to generate videos from input images and text prompts.

Parameters

Required Parameters

ParameterTypeDefaultDescription
imageimage-Input image used as the first frame of video
prompt_textstring""Text prompt to guide video generation
modelselect”I2V-01”Available models: “I2V-01-Director”, “I2V-01”, “I2V-01-live”

Optional Parameters

ParameterTypeDescription
seedintegerRandom seed for noise generation

Output

OutputTypeDescription
VIDEOvideoGenerated video

Source Code

[Node source code (Updated on 2025-05-03)]

class MinimaxImageToVideoNode(MinimaxTextToVideoNode):
    """
    Generates videos synchronously based on an image and prompt, and optional parameters using Minimax's API.
    """

    @classmethod
    def INPUT_TYPES(s):
        return {
            "required": {
                "image": (
                    IO.IMAGE,
                    {
                        "tooltip": "Image to use as first frame of video generation"
                    },
                ),
                "prompt_text": (
                    "STRING",
                    {
                        "multiline": True,
                        "default": "",
                        "tooltip": "Text prompt to guide the video generation",
                    },
                ),
                "model": (
                    [
                        "I2V-01-Director",
                        "I2V-01",
                        "I2V-01-live",
                    ],
                    {
                        "default": "I2V-01",
                        "tooltip": "Model to use for video generation",
                    },
                ),
            },
            "optional": {
                "seed": (
                    IO.INT,
                    {
                        "default": 0,
                        "min": 0,
                        "max": 0xFFFFFFFFFFFFFFFF,
                        "control_after_generate": True,
                        "tooltip": "The random seed used for creating the noise.",
                    },
                ),
            },
            "hidden": {
                "auth_token": "AUTH_TOKEN_COMFY_ORG",
            },
        }

    RETURN_TYPES = ("VIDEO",)
    DESCRIPTION = "Generates videos from an image and prompts using Minimax's API"
    FUNCTION = "generate_video"
    CATEGORY = "api node/video/Minimax"
    API_NODE = True
    OUTPUT_NODE = True
I