MiniMax-AI/cli
Generate text, images, video, speech, and music by MiniMax.
What it solves
Building with AI often means juggling multiple tools and APIs for text, images, video, and speech. The MiniMax CLI puts all these capabilities behind a single command-line interface, so you can generate and manage AI outputs without writing custom code or switching between websites. It's designed to slot directly into AI agent workflows or plain terminal use.
How it works
You install the CLI via npm (requires Node.js 18+) and log in with a MiniMax Token Plan (either Global or China region) using an API key or OAuth. Once authenticated, the mmx command gives you subcommands for each capability:
mmx text– multi-turn chat, streaming, system prompts, and JSON output.mmx image– text-to-image and image editing with size, ratio, and batch controls.mmx video– async video generation with progress tracking, plus Hailuo and MiniMax-H3 models.mmx speech– text-to-speech with 30+ voices and speed control, plus speech-to-text transcription with subtitle output.mmx vision– image understanding and description.mmx search– web search powered by MiniMax.
It also includes mmx agent setup to configure MiniMax for popular coding agents (Claude Code, Codex, etc.), mmx quota to check usage, and mmx config to manage settings. Environment variables like MINIMAX_REGION and MINIMAX_TIMEOUT allow fine-grained control.
Who it’s for
Developers, AI agents (such as OpenClaw, Cursor, Claude Code), and anyone who wants a unified tool to work with multiple AI modalities from the command line or in automated scripts/CI. It requires a MiniMax Token Plan and basic familiarity with a terminal.
Highlights
- Single CLI for text, image, video, speech, vision, and search
- Dual-region support for Global and China platforms
- Built for AI agents – includes
mmx agent setupfor common agent tools - Streaming text and speech output
- Speech-to-text with subtitle formats (srt, vtt, json)
- OAuth with automatic token refresh or API key authentication
- Environment variable overrides for flexible automation
Related
- Project
- Project
- Project
- Project
- Project