A Rust CLI application for MiniMax AI APIs - text-to-speech, voice cloning, video generation, image generation, and music generation.
- Text-to-Speech: Convert text to audio with various voices
- Voice Cloning: Clone a voice from an audio file
- Voice Design: Create custom voices from descriptive prompts
- Video Generation: Generate videos from text/image prompts (async with task tracking)
- Image Generation: Generate images from text prompts
- Music Generation: Generate music from prompt and lyrics
- Task Management: Track long-running async tasks with SQLite storage
git clone https://github.com/MiniMax-AI/MiniMax-CLI.git
cd MiniMax-CLI
cargo build --release
./target/release/minimax --helpRun the interactive configuration wizard:
minimax config initThis will guide you through setting up your API key and selecting your region.
# Set your API key (stored securely in system keyring)
minimax config set-api-key your-api-key-here
# Set API host
minimax config set-api-host https://api.minimax.io # or https://api.minimaxi.com for China
# View current configuration
minimax config showConfiguration is stored in:
- Linux:
~/.config/minimax-cli/config.toml - macOS:
~/Library/Application Support/minimax-cli/config.toml - Windows:
%APPDATA%/minimax-cli/config.toml
Your API key is stored securely in your system's keyring/credential manager.
| Region | API Key | API Host |
|---|---|---|
| Global | MiniMax Global | https://api.minimax.io |
| China | MiniMax China | https://api.minimaxi.com |
Important: API key and host must be from the same region.
minimax text-to-audio --text "Hello, world!" --voice-id female-shaonvminimax list-voices
minimax list-voices --voice-type systemminimax voice-clone --voice-id my-voice --file audio.mp3
minimax voice-clone --voice-id my-voice --file https://example.com/audio.mp3 --is-urlminimax voice-design --prompt "Young female voice" --preview-text "Hello"minimax generate-video --prompt "A cat playing piano" --model MiniMax-Hailuo-02This returns a task ID immediately. Use query-task to check status.
minimax query-task --task-id <task_id>minimax download-task --task-id <task_id> --output-dir ./downloadsminimax list-tasks
minimax list-tasks --status success --limit 10minimax text-to-image --prompt "A beautiful sunset" --aspect-ratio 16:9 --n 2minimax music-generation --prompt "Pop, happy" --lyrics "Hello world\nSecond line"Long-running operations (video generation) immediately return a task ID and store it in the local SQLite database. You can:
- Check status:
minimax query-task --task-id <id> - Download when ready:
minimax download-task --task-id <id> - List all tasks:
minimax list-tasks
| Task | Default Model | Options |
|---|---|---|
| Text-to-Audio | speech-2.6-hd |
|
| Video | MiniMax-Hailuo-2.3 |
T2V-01, MiniMax-Hailuo-02, I2V-01 |
| Image | image-01 |
|
| Music | music-2.0 |
MIT License - see LICENSE for details.