Minimax video generation

From theheavenlyd3mon/hermes-profiles · View interactive version

Minimax video generation is an AI agent skill from the GitHub repository theheavenlyd3mon/hermes-profiles. Use when generating video with MiniMax H3.

How to use this skill

Skill file

MiniMax H3 Video Generation

Direct access to MiniMax's flagship video model MiniMax-H3 (launched 2026-07-31, successor to the Hailuo line) using the user's own API key. Open-weight, multimodal, native stereo sound. Ranked #1 video editing / #2 text-to-video / #3 image-to-video (Artificial Analysis). Specs: up to 15s at native 2K, native stereo audio in one pass.

When to use this vs siblings

Auth

MINIMAX_API_KEY is set in ~/.hermes/profiles/creative/.env (the active profile's env — this is where the user put it). The script also falls back to ~/.hermes/.env and the shell env. Bearer auth.

Region matters — key and host MUST match or you get invalid api key:

Default to global. Get a key: https://platform.minimax.io → user-center → interface-key. New accounts get starter credits.

Call pattern (async, like fal.ai's queue)

  1. POST {BASE}/v2/video_generation with JSON {model:"MiniMax-H3", content:[...], duration, resolution, ratio?} → returns task_id.
  2. Poll GET {BASE}/v2/query/video_generation/{task_id} every ~10s. task.status: succeeded → task.content.url is the direct download URL; terminal fails are failed/cancelled/expired.
  3. Download the mp4 to ~/Downloads/ (user convention: VisualOutput→SaveToDownloads).

The `content[]` structure (multimodal)

Each element has a type and optional role:

The four modes

| Mode | content[] | ratio |

|------|-----------|-------|

| text-to-video (t2va) | text only | required, not 'adaptive' (e.g. "16:9") |

| image-to-video (i2va) | text + first_frame | adaptive — omit ratio (set by image) |

| first+last frame | text + first_frame + last_frame | adaptive — omit ratio |

| reference-to-video (r2va) | text + reference_image(s) | adaptive — omit ratio |

Params

Pricing (pay-as-you-go, 2K)

Usage

python3 scripts/minimax_video.py --mode t2v --prompt "..." --ratio 16:9 --duration 5 --out ~/Downloads/h3.mp4
python3 scripts/minimax_video.py --mode i2v --prompt "..." --image https://.../frame.png --duration 5
python3 scripts/minimax_video.py --mode flf --prompt "..." --image https://.../first.png --last-image https://.../last.png
python3 scripts/minimax_video.py --mode ref --prompt "..." --ref https://.../subject.png --ref https://.../style.png

Runs submit→poll→download. Poll interval 10s; generation takes minutes — run via background terminal with notify_on_complete for long clips.

Pitfalls

Support files

Related skills

fal-ai-generation (catalog/LoRA/images), higgsfield-generate (credits slate), ai-video-editing + ai-video-generation (assembly/pacing — the user directs edits himself; defer to his eye), comfyui (local pipelines; H3 open-weights may run locally later).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.