mmx-cli
What it does
This tool lets you create text, images, videos, audio, and music using the MiniMax AI platform, directly from your computer. You can also use it to search the web and chat with AI models.
When to use it
- ✓When you want to generate an image from a description.
- ✓When you want to create a short video based on text.
- ✓When you want to turn text into speech or music.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mmx-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create an image of a cat wearing a funny hat.”
5 new skills a week. 1 minute to read.
How it works
You type commands in your terminal, like 'mmx image generate --prompt "a cat"'. The tool sends your request to the MiniMax platform and returns the result.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
MiniMax CLI — Agent Skill Guide
Use mmx to generate text, images, video, speech, music, and perform web search via the MiniMax AI platform.
When to Use
Use this skill when the user wants to generate or inspect text, images, video, speech, music, web-search results, or MiniMax API resources through the mmx terminal CLI.
Prerequisites
# Install
npm install -g mmx-cli
# Auth (OAuth persists to ~/.mmx/credentials.json, API key persists to ~/.mmx/config.json)
mmx auth login --api-key sk-xxxxx
# Verify active auth source
mmx auth status
# Or pass per-call
mmx text chat --api-key sk-xxxxx --message "Hello"
Region is auto-detected. Override with --region global or --region cn.
Agent Flags
Always use these flags in non-interactive (agent/CI) contexts:
| Flag | Purpose |
|---|---|
--non-interactive |
Fail fast on missing args instead of prompting |
--quiet |
Suppress spinners/progress; stdout is pure data |
--output json |
Machine-readable JSON output |
--async |
Return task ID immediately (video generation) |
--dry-run |
Preview the API request without executing |
--yes |
Skip confirmation prompts |
Commands
text chat
Chat completion. Default model: MiniMax-M3. Pass --model MiniMax-M2.7 for the previous-generation default when reproducing older outputs.
mmx text chat --message <text> [flags]
# Single message (uses MiniMax-M3 by default)
mmx text chat --message "user:What is MiniMax?" --output json --quiet
# Multi-turn with system prompt
mmx text chat \
--system "You are a coding assistant." \
--message "user:Write fizzbuzz in Python" \
--output json
# Pin to the previous-generation model
mmx text chat --model MiniMax-M2.7 --message "user:Hello" --output json
# From file
cat conversation.json | mmx text chat --messages-file - --output json
image generate
Generate images through MiniMax. Use this command for text-to-image tasks, thumbnails, concept art, social visuals, and quick prompt iteration. Model: image-01.
mmx image generate --prompt <text> [flags]
# Machine-readable response for agents
mmx image generate --prompt "A cat in a spacesuit" --output json --quiet
# Save multiple generated images to a directory
mmx image generate --prompt "Logo" --n 3 --out-dir ./gen/ --quiet
# Select region explicitly when a workflow must stay on one MiniMax endpoint family
mmx image generate --prompt "Product hero image" --region global --output json --quiet
mmx image generate --prompt "Product hero image" --region cn --output json --quiet
Agent notes:
- Prefer
--output json --quiet --non-interactivewhen another tool will parse the result. - Use
--dry-runbefore API-backed calls when validating arguments or CI examples. - Keep generated media in a task-local output directory and validate returned file paths or URLs before reusing them.
video generate
Generate video. The current v2 default is MiniMax-H3 (2K, 4–15 seconds); the legacy v1 Hailuo models remain available when explicitly selected. Requests use the regional v2 endpoint: https://api.minimax.io/v2/video_generation (global) or https://api.minimaxi.com/v2/video_generation (China).
mmx video generate --prompt <text> [flags]
For MiniMax-H3, the request content is an ordered array of {type, role, ...} items. Text content is required (up to 7,000 characters); image, video, and audio URLs may use first_frame, last_frame, reference_image, reference_video, and reference_audio roles. Frame roles and reference roles are mutually exclusive, and reference audio requires an image or video. Set --resolution 2K, --duration to an integer from 4 through 15, and --ratio to adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. China requests may also set aigc_watermark. The create response returns task_id; query with GET /v2/query/video_generation/{task_id}, list with GET /v2/query/video_generation, and delete with DELETE /v2/video_generation/{task_id}. Query responses expose status, error, output URL, resolution, duration, ratio, task type/modality, and usage seconds/image count.
Pricing for MiniMax-H3 video is metered by 2K output seconds: global USD 0.13/second, China CNY 0.8/second. Reference video input is global USD 0.02/second and China CNY 0.8/second; reference audio is free; five reference images are free, then global USD 0.03/image or China CNY 0.2/image.
…
FAQ
Do I need to install anything first?
Yes, you need to install the 'mmx-cli' tool on your computer and log in with your MiniMax account.
How do I make the AI chat with me?
Use the command 'mmx text chat --message "your question"'.
Can I generate videos?
Yes, use the command 'mmx video generate --prompt "video description"', specifying the desired duration and resolution.
Details
Original description by the author
Use mmx to generate text, images, video, speech, and music via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, perform web search, or manage MiniMax API resources from the terminal.
Popularity
- GitHub stars
- 48k
- Ranking position
- #5218
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.