Skip to main content
Glama

MiniMax MCP JS

Official
by MiniMax-AI

generate_video

Transform text prompts into videos with customizable parameters like duration, resolution, and initial frame. Save outputs to specified directories using the MiniMax MCP JS server for AI-powered video generation.

Instructions

Generate a video based on text prompts.

Note: This tool calls MiniMax API and may incur costs. Use only when explicitly requested by the user.

Input Schema

NameRequiredDescriptionDefault
asyncModeNoWhether to use async mode. Defaults to False. If True, the video generation task will be submitted asynchronously and the response will return a task_id. Should use `query_video_generation` tool to check the status of the task and get the result.
durationNoThe duration of the video. The model must be "MiniMax-Hailuo-02". Values can be 6 and 10.
firstFrameImageNoFirst frame image
modelNoModel to use, values: ["T2V-01", "T2V-01-Director", "I2V-01", "I2V-01-Director", "I2V-01-live", "MiniMax-Hailuo-02"]MiniMax-Hailuo-02
outputDirectoryNoThe directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`
outputFileNoPath to save the generated video file, automatically generated if not provided
promptYesText prompt for video generation
resolutionNoThe resolution of the video. The model must be "MiniMax-Hailuo-02". Values range ["768P", "1080P"]

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "asyncMode": { "default": false, "description": "Whether to use async mode. Defaults to False. If True, the video generation task will be submitted asynchronously and the response will return a task_id. Should use `query_video_generation` tool to check the status of the task and get the result.", "type": "boolean" }, "duration": { "description": "The duration of the video. The model must be \"MiniMax-Hailuo-02\". Values can be 6 and 10.", "type": "number" }, "firstFrameImage": { "description": "First frame image", "type": "string" }, "model": { "default": "MiniMax-Hailuo-02", "description": "Model to use, values: [\"T2V-01\", \"T2V-01-Director\", \"I2V-01\", \"I2V-01-Director\", \"I2V-01-live\", \"MiniMax-Hailuo-02\"]", "type": "string" }, "outputDirectory": { "description": "The directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`", "type": "string" }, "outputFile": { "description": "Path to save the generated video file, automatically generated if not provided", "type": "string" }, "prompt": { "description": "Text prompt for video generation", "type": "string" }, "resolution": { "description": "The resolution of the video. The model must be \"MiniMax-Hailuo-02\". Values range [\"768P\", \"1080P\"]", "type": "string" } }, "required": [ "prompt" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MiniMax-AI/MiniMax-MCP-JS'

If you have feedback or need assistance with the MCP directory API, please join our Discord server