Install the CLI
- Install via an agent
- Manual install
Copy the prompt below to your AI agent (OpenClaw, Claude Code, Cursor, MaxClaw, AutoClaw, KimiClaw, TRAE, OpenCode, etc.). It will guide you to add your API Key and finish the setup:
Use the CLI
- Call via an agent
- Manual commands
Text
Video
Music
Speech
Image
Use minimax to write a 4-line poem about AIVideo
Generate a video: at sunset, a cat sits by the window looking into the distanceMusic
Generate an upbeat jazz song about a summer beachSpeech
Read in a gentle female voice: Welcome to MiniMax Token Plan. After subscribing, your AI agent can generate video, music, speech, and images with full multimodal capability.Image
Generate a cyberpunk city night scene in 16:9Generated files are saved in minimax-output/ under your current directory. If you’re using an agent, it’s recommended to have it display the generated media directly in its output.CLI Dashboard
Run mmx in your terminal to open the CLI panel and quickly discover the main commands, flags, and usage info.

- resources: available resource types
- flags: supported options for commands
- usage: remaining quota and usage overview
- help: entry points for documentation
Capability overview
MMX-CLI provides a single command-line entry point across text, image, video, speech, music, vision understanding, and web search:| Capability | Description |
|---|---|
| Text | multi-turn chat, streaming output, system prompts, JSON output |
| Image | text-to-image, aspect ratio controls, batch generation |
| Video | async generation, task status, downloading |
| Speech | text-to-speech (TTS), multiple voices, streaming |
| Music | text-to-music, with-lyrics and instrumental modes |
| Vision | image understanding from local files, URLs, or file IDs |
| Search | built-in web search |