MAGI-2 AI Video
v1.0.0Generate 1080p MAGI-2 AI videos with native audio from text, frames or reference images.
Command-line client and MCP setup helper for MAGI-2 AI Video — generate cinematic 1080p MAGI-2 videos with native audio (up to 30 seconds) from your terminal, your scripts or your AI agent. Use it often? Install once and use the short magi2 command: Generate options: --duration 4-30, --ratio 16:9|9:16|1:1|4:3|3:4|21:9, --no-audio, --first-frame, --last-frame, --image (×10), --video (×5), --audio (×5), --mode, --wait, --out, --json. Media can be local files (uploaded automatically) or https:// URLs. In reference mode, mention them in the prompt as @Image1, @Video1, @Audio1.
Summary extracted from the README.
magi2aivideo
Command-line client and MCP setup helper for MAGI-2 AI Video — generate cinematic 1080p MAGI-2 videos with native audio (up to 30 seconds) from your terminal, your scripts or your AI agent.
- Text to video, image to video (first + last frame) and reference to video
- Paid with your magi2aivideo.net Credits: 20 Credits per second, charged only on success
- Zero dependencies, Node.js 18.17+
Quick start
# 1. Create an API key: https://magi2aivideo.net/settings/api-keys
npx magi2aivideo login
# 2. Generate and download a video
npx magi2aivideo generate "A red fox runs through fresh snow, low tracking shot. Sound: crunching snow." \
--duration 8 --ratio 16:9 --wait --out fox.mp4
Use it often? Install once and use the short magi2 command:
npm install -g magi2aivideo
magi2 generate "Fast rooftop parkour at golden hour. Sound: footsteps, wind." --wait --out parkour.mp4
Commands
| Command | What it does |
|---|---|
login [key] |
Save your API key to ~/.config/magi2/config.json |
generate "<prompt>" [options] |
Start a video (add --wait --out file.mp4 to download it) |
status <id> |
Show status |
wait <id> [--out file] |
Wait until it finishes |
download <id> [--out file] |
Download a finished video |
list |
Recent videos |
credits |
Available Credits |
estimate <seconds> |
Credits for a given length |
mcp |
Print ready-to-paste MCP setup for Claude Code, Cursor and Claude Desktop |
Generate options: --duration 4-30, --ratio 16:9|9:16|1:1|4:3|3:4|21:9,
--no-audio, --first-frame, --last-frame, --image (×10), --video (×5),
--audio (×5), --mode, --wait, --out, --json. Media can be local files
(uploaded automatically) or https:// URLs. In reference mode, mention them in
the prompt as @Image1, @Video1, @Audio1.
MAGI2_API_KEY overrides the saved key.
Use MAGI-2 from AI agents (MCP)
MAGI-2 AI Video runs a remote MCP server at https://magi2aivideo.net/mcp
with the tools generate_video, get_video, list_videos, get_credits and
estimate_cost. For Claude Code:
claude mcp add --transport http magi2 https://magi2aivideo.net/mcp \
--header "Authorization: Bearer m2v_your_key"
Run npx magi2aivideo mcp to print the setup for every client with your key filled in.
Links
- MAGI-2 AI Video Generator — try MAGI-2 in the browser
- MAGI-2 API docs — REST API, MCP and CLI reference
- MAGI-2 prompt guide — prompts with example videos
- Pricing
MAGI-2 AI Video is an independent service and is not affiliated with Sand.ai.
License
MIT