Graphrt

MiniMax Video

H3 text/image/reference to video (V2) and Hailuo 2.3 (V1) as polled tasks with downloads, task status and file retrieval (paid, delete and callbacks node only)

Beta v0.1.0 Node.js 10 actions
Use in Graphrt Desktop

About

A Graphrt plugin for MiniMax video generation. It covers both MiniMax video APIs:

What it can do

  • generate_video (H3): content items of type text, image_url, video_url, audio_url with roles, resolution, duration 4–15 s, ratio, audio on/off
  • get_task, list_tasks (H3): status, error, usage and video URL, tasks of the last 7 days (paginated)
  • delete_task (H3, node only): cancels a queued task or deletes a finished one
  • generate_hailuo_video: text, image or first+last frame to video with Hailuo, returns the file_id
  • get_hailuo_task: status and file_id of a V1 task
  • generate_video_with_callback, generate_hailuo_video_with_callback (node only): the same, plus a callback_url that MiniMax POSTs status changes to (it must echo MiniMax's challenge first)
  • retrieve_file: download URL of a file (valid about an hour) and saves the file
  • api_request: any other endpoint (GET only for agents)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Generate video (H3) minimax-video.generate_video
  • Generate video (H3) with callback minimax-video.generate_video_with_callback
  • Get task (H3) minimax-video.get_task
  • List tasks (H3) minimax-video.list_tasks
  • Cancel or delete task (H3) minimax-video.delete_task
  • Generate video (Hailuo) minimax-video.generate_hailuo_video
  • Generate video (Hailuo) with callback minimax-video.generate_hailuo_video_with_callback
  • Get task (Hailuo) minimax-video.get_hailuo_task
  • Retrieve file minimax-video.retrieve_file
  • MiniMax API request minimax-video.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • MINIMAX_API_KEY Required
    API secret key
  • MINIMAX_REGION Optional
    global (default, api.minimax.io) or china (api.minimaxi.com, keys from the China platform)
  • MINIMAX_OUTPUT_DIR Optional
    Absolute directory for videos. Unset: nothing is saved and saved_files is []

How to use it

In Graphrt Desktop

  1. Open Plugins and search for MiniMax Video.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install minimax-video
workflow.yaml
- id: clip
  type: minimax-video.generate_video
  content:
    - { type: text, text: "A small paper boat drifts across a calm pond" }
  resolution: 768P
  duration: 6
  ratio: "16:9"
Plugins in the docs