cli
Generate text, images, video, speech, and music by MiniMax.
What is cli?
Generate text, images, video, speech, and music by MiniMax.
Overview of cli
What it is
The official CLI for the MiniMax AI Platform. It is built for AI agents and terminal use, enabling generation of text, images, video, speech, and music through MiniMax's APIs. The tool supports dual region operation (Global and China) and can be installed as a global npm package or added as a skill to agent environments like OpenClaw, Cursor, or Claude Code.
Key features
- Text — Multi-turn chat, streaming, system prompts, and JSON output.
- Image — Text-to-image generation with aspect ratio and batch controls; image editing with reference images.
- Video — Asynchronous video generation with progress tracking; supports Hailuo-2.3 and MiniMax-H3 models.
- Speech — Text-to-speech with 30+ voices, speed control, and streaming playback; speech-to-text transcription with multiple output formats (json, verbose_json, srt, vtt).
- Vision — Image understanding and description.
- Search — Web search powered by MiniMax.
- Dual Region — Seamless support for Global (
api.minimax.io) and CN (api.minimaxi.com) endpoints.
Use cases
- AI agents that need to generate text, images, video, or speech programmatically.
- Terminal-based content creation and automation.
- Integrating MiniMax AI capabilities into scripts or workflows.
- Building applications that require multi-modal AI generation (text, image, video, speech).
Getting started
bash # For AI agents (OpenClaw, Cursor, Claude Code, etc.): add skill to your agent npx skills add MiniMax-AI/cli -y -g # Or install CLI globally for terminal use npm install -g mmx-cli Requires Node.js 18+. bash # Authenticate (interactive — choose MiniMax OAuth or paste an API key) mmx auth login # Or non-interactive mmx auth login --api-key sk-xxxxx # Start creating mmx text chat --message 'What is MiniMax?' mmx image 'A cat in a spacesuit' mmx speech synthesize --text 'Hello!' --out hello.mp3 mmx speech transcribe --file meeting.mp3 mmx video generate --prompt 'Ocean waves at sunset' mmx search 'MiniMax AI latest news' mmx vision photo.jpg mmx quota
License and pricing
The license is not stated in the repository metadata. The CLI is open source, but usage requires a MiniMax Token Plan (paid subscription). See the MiniMax platform for pricing details.
Based on the project's public README and repository metadata.