{"library":"mmx-cli","title":"CLI for MiniMax AI Platform","description":"The `mmx-cli` package provides the official command-line interface for interacting with the MiniMax AI Platform, enabling users and AI agents to programmatically access various AI capabilities. This robust CLI, currently at version 1.0.11, supports a wide array of generative AI tasks including multi-turn text chat with streaming and JSON output, text-to-image generation with aspect ratio controls, asynchronous video generation with progress tracking, text-to-speech with over 30 voices, and text-to-music generation including lyrical and instrumental modes. It also features image understanding (vision) and web search integration. Designed for both direct terminal use and integration into AI agents (e.g., OpenClaw, Cursor, Claude Code), it emphasizes ease of use for rapid prototyping and deployment of AI-powered workflows. The CLI offers seamless support for both Global (`api.minimax.io`) and CN (`api.minimaxi.com`) platform regions. While a specific release cadence isn't published, the frequent updates to generative AI models suggest active development and maintenance.","language":"javascript","status":"active","last_verified":"Thu Apr 23","install":{"commands":["npm install mmx-cli"],"cli":{"name":"mmx","version":null}},"imports":["npm install -g mmx-cli","npx mmx text chat --message \"Hello\"","npx skills add MiniMax-AI/cli -y -g"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Authenticate with your API key\nmmx auth login --api-key sk-xxxxx-YOUR_API_KEY_HERE\n\n# Generate text: What is MiniMax?\nmmx text chat --message \"What is MiniMax?\"\n\n# Generate an image: A cat in a spacesuit\nmmx image \"A cat in a spacesuit\"\n\n# Synthesize speech: \"Hello!\" to an MP3 file\nmmx speech synthesize --text \"Hello!\" --out hello.mp3\n\n# Generate video: Ocean waves at sunset\nmmx video generate --prompt \"Ocean waves at sunset\"\n\n# Generate music: Upbeat pop with lyrics\nmmx music generate --prompt \"Upbeat pop\" --lyrics \"[verse] La da dee, sunny day\"\n\n# Perform a web search: MiniMax AI latest news\nmmx search \"MiniMax AI latest news\"\n\n# Analyze an image (replace photo.jpg with your image path)\nmmx vision photo.jpg\n\n# Check your current quota usage\nmmx quota","lang":"bash","description":"Demonstrates authentication, text, image, speech, video, music, search, and vision generation, plus quota checking using the `mmx` CLI, showcasing its core functionalities.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}