
mmx-h3-video
Generate, monitor, and download MiniMax-H3 videos through the mmx CLI. Use for H3 text-to-video, first/last-frame video, multimodal reference image/video/audio generation, H3 prompt improvement, media preflight, Pay-as-you-go API key selection, task waiting, downloads, and H3 failure handling.
- Installs
- 49
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/minimax-ai/cli --skill mmx-h3-video- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads mmx-h3-video automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
MiniMax-H3 Video With MMX
Use this skill only for MiniMax-H3 video generation. Do not handle text, image generation, speech, music, search, legacy Hailuo models, or unrelated MMX commands.
Before a paid request, read references/h3-video.md for prompt construction, media constraints, waiting behavior, and failure handling.
Required Rules
- Use a Pay-as-you-go/Credit API Key. H3 does not use OAuth or Token Plan Subscription Keys.
- Reuse a saved MMX API key when available. Never print, repeat, or place a literal API key in a command transcript.
- Always pass
--model MiniMax-H3; never rely on the configured default model. - For a completed video, run one direct blocking
mmx video generatecommand. Do not use Bash wrappers or hand-written polling loops. - If the terminal command remains active, wait on that exact execution session. Do not run
ps, scrape process arguments, inspect the output repeatedly, kill the process, or submit another task. - Treat
Detecting region... cnorDetecting region... globalas normal stderr progress, not a submission failure. - Never submit a replacement paid task because terminal waiting, status polling, or downloading was interrupted.
- Retry the alternate region at most once, and only when the first command clearly failed before task creation because of region detection, endpoint, or authentication routing.
- Use
--asynconly when the user explicitly wants a task ID without waiting or downloading.
Resolve The CLI
Inside the minimax-cli repository, build changes and use the local artifact:
bun run build
node ./dist/mmx.mjs video generate --help
Outside the repository, use the installed mmx executable. Do not install or update MMX unless the user asks.
In commands below, replace mmx with node ./dist/mmx.mjs when testing the local repository build.
Resolve And Save The API Key
Before the first paid H3 request, inspect the active credential without exposing it:
mmx auth status --output json --quiet
- If
methodisapi-key, reuse it from MMX config. Do not add--api-keyto generation commands. - If the user already supplied a key and the runtime holds it securely as
MINIMAX_API_KEY, save it once, then use MMX config:
mmx config set --key api_key --value "$MINIMAX_API_KEY" --quiet
- Saving
api_keyreplaces stale OAuth credentials, clears the cached region, and stores the key in~/.mmx/config.jsonwith owner-only permissions. - Never reconstruct a previously supplied key into visible shell text. Use the runtime's secret/environment injection when available.
- If no saved API key or securely injected variable is available, ask the user to run
mmx auth loginand choose API key. Do not ask them to paste the key into chat again. - After saving, future Agent commands must omit both the literal key and
--api-key.
Default Completed-Video Path
Use this path when the user wants the final file:
mmx video generate \
--model MiniMax-H3 \
--prompt "<video prompt>" \
--duration <4-15> \
--download <output.mp4> \
--poll-interval 10 \
--timeout 1800 \
--non-interactive
This one CLI process submits exactly one task, waits internally between status checks, and downloads the completed video. When the execution tool returns a running session or cell ID, continue waiting on that same session until it exits.
Do not add --async to this command. Async mode returns before download handling.
Input Modes
Use exactly one mode per request.
Text-To-Video
mmx video generate \
--model MiniMax-H3 \
--prompt "A cinematic coastal sunset, slow dolly forward" \
--duration 15 \
--ratio 16:9 \
--download ./result.mp4 \
--poll-interval 10 \
--timeout 1800 \
--non-interactive
First/Last-Frame Video
--image is the first frame. It may be combined with one --last-frame.
mmx video generate \
--model MiniMax-H3 \
--prompt "The subject walks naturally from the starting pose to the ending pose" \
--image ./start.png \
--last-frame ./end.png \
--duration 15 \
--download ./result.mp4 \
--poll-interval 10 \
--timeout 1800 \
--non-interactive
Do not use the hidden --first-frame compatibility alias in new commands.
Multimodal Reference Video
Repeat each reference flag to pass multiple inputs. Do not comma-separate paths.
mmx video generate \
--model MiniMax-H3 \
--prompt "Preserve the referenced character, follow the motion and audio rhythm" \
--reference-image ./character-1.png \
--reference-image ./character-2.png \
--reference-video ./motion.mp4 \
--reference-audio ./rhythm.mp3 \
--duration 15 \
--download ./result.mp4 \
--poll-interval 10 \
--timeout 1800 \
--non-interactive
Frame mode cannot be mixed with reference mode. Reference audio requires at least one reference image or reference video.
Region Recovery
Omit --region on the first request so MMX can use or detect the key's region. If that command fails, retry the same request once with the alternate region only when all of these are true:
- No
taskIdwas returned. [Model: MiniMax-H3]was not printed, so the CLI did not confirm task creation.- The error explicitly concerns region detection, a regional endpoint, or a pre-submission 401/403 authentication-routing mismatch.
Use --region global after a failed cn attempt, or --region cn after a failed global attempt. Keep every generation argument unchanged. If the alternate region succeeds, persist it without exposing credentials:
mmx config set --key region --value <global-or-cn> --quiet
Do not perform region fallback for validation errors, error 2013, billing, rate limits, sensitive content, generic service errors, or an ambiguous timeout. Never region-retry after task creation, during polling, or during download.
Core Limits
- Prompt: at most 7000 characters.
- Output duration: integer from 4 through 15 seconds.
- Resolution (
--resolution):768Por2K(default). - Reference images: at most 9.
- Reference videos: at most 3.
- Reference audios: at most 3.
- Mixed reference items: at most 12 total.
- Local image: at most 30 MB each.
- Local video: MP4, at most 50 MB each.
- Local audio: MP3 or WAV, at most 15 MB each.
- Complete local Base64 request body: at most 64 MB.
Use URLs or mm_file://<file-id> for large or numerous assets. Read references/h3-video.md for official duration, codec, frame-rate, dimension, and aspect-ratio limits that are not fully validated by the CLI.
Async Task-ID Path
Use this only when the user wants immediate submission and a task ID:
mmx video generate \
--model MiniMax-H3 \
--prompt "<video prompt>" \
--duration <4-15> \
--async \
--output json \
--non-interactive
Return and retain the taskId, then stop. Do not automatically monitor or download it. MMX does not provide a task-list command or persist local task history.
Prompt Handling
Preserve the user's intent. Write the prompt in the user's language. When a prompt is too short, expand it once using:
- Duration, ratio, and use case.
- Subjects and reference mapping.
- Chronological actions.
- Scene, lighting, weather, and background.
- Shot size, angle, camera motion, focus, and cuts.
- Style, color, mood, and pacing.
- Dialogue, ambience, music, and audio synchronization.
- Elements to preserve and artifacts to avoid.
For two or more ordered reference images, use a structured storyboard prompt instead of one prose paragraph:
- Output specification and ordered reference count.
- Global visual style and continuity rules.
- Locked character identity, wardrobe, position, and props.
- A contiguous master timeline mapped to
reference image 1,reference image 2, and so on. - A micro-timeline inside each shot: establish, prepare, execute, settle/hold, and end-state lock.
- Explicit action and object-state transitions for handoffs or other precise motion.
- Sound requirements and a final negative-constraint block.
Use two timeline levels. The master timeline divides the full clip into shots. Each shot then divides its own interval into timestamped micro-beats. A shot may contain several phases, but they must form one causal action beat. Every shot must state its exact range, duration, reference image, initial state, camera behavior, micro-beats, and locked end state. The next shot's initial state must equal the previous locked end state.
Master and micro intervals must cover their parent duration without gaps or overlaps, and reference numbering must match the repeated --reference-image flag order. Keep the action achievable within 4-15 seconds. Do not silently add brands, celebrities, dialogue, text overlays, or unsafe content. Use the detailed Chinese and English templates in references/h3-video.md.
If the user already provides a complete structured storyboard prompt, do not summarize, shorten, translate, or stylistically rewrite it. Check only the 7000-character limit, duration coverage, reference count/order, media-mode compatibility, and contradictory constraints; preserve the original wording unless a correction is required.
Failure Handling
- Wrong Token Plan/OAuth credential or H3 error
2013: stop and request a compatible Pay-as-you-go API Key. - Clear pre-submission region-routing failure: retry the unchanged command once with the alternate
--region; never retry after task creation. - Authentication, balance, or sensitive-content errors: stop and report the exact error without retrying or silently changing the request.
- A running terminal session: keep waiting on the same session; absence of a final path is not failure.
- Terminal task status
failed,cancelled, orexpired: report the status and task error; require approval before another paid submission. - Polling timeout: report the task ID when available; do not submit a duplicate.
- Download failure after success: retry the same result download only; never regenerate the video.
Read the complete failure matrix in references/h3-video.md before recovery.
FAQ
What does the mmx-h3-video skill do?
Generate, monitor, and download MiniMax-H3 videos through the mmx CLI. Use for H3 text-to-video, first/last-frame video, multimodal reference image/video/audio generation, H3 prompt improvement, media preflight, Pay-as-you-go API key selection, task waiting, downloads, and H3 failure handling.
How do I install mmx-h3-video?
Run npx skills add https://github.com/minimax-ai/cli --skill mmx-h3-video in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/mmx-h3-video/ (personal) or .claude/skills/mmx-h3-video/ (project).
Which AI agents can use mmx-h3-video?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is mmx-h3-video safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains mmx-h3-video?
It is published by minimax-ai/cli in minimax-ai/cli. It has 49 recorded installs.
More from minimax-ai/cli
mmx-cli
minimax-ai/cli
Use mmx to generate text, images, video, and speech, and to transcribe audio, via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, transcribe audio to text, perform web search, or manage MiniMax API resources from the terminal.
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image
ai-avatar-video
101-skills/superpowers
Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc