|
1 | 1 | --- |
2 | 2 | name: mmx-cli |
3 | | -description: 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. |
| 3 | +description: Use mmx to generate text, images, video, and speech 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. |
4 | 4 | --- |
5 | 5 |
|
6 | 6 | # MiniMax CLI — Agent Skill Guide |
7 | 7 |
|
8 | | -Use `mmx` to generate text, images, video, speech, music, and perform web search via the MiniMax AI platform. |
| 8 | +Use `mmx` to generate text, images, video, speech, and perform web search via the MiniMax AI platform. |
9 | 9 |
|
10 | 10 | ## Prerequisites |
11 | 11 |
|
@@ -205,105 +205,6 @@ echo "Breaking news." | mmx speech synthesize --text-file - --out news.mp3 |
205 | 205 |
|
206 | 206 | --- |
207 | 207 |
|
208 | | -### music generate |
209 | | - |
210 | | -Generate music. Responds well to rich, structured descriptions. |
211 | | - |
212 | | -**Model:** `music-3.0` — default model. |
213 | | - |
214 | | -```bash |
215 | | -mmx music generate --prompt <text> [--lyrics <text>] [flags] |
216 | | -``` |
217 | | - |
218 | | -| Flag | Type | Description | |
219 | | -|---|---|---| |
220 | | -| `--prompt <text>` | string | Music style description (can be detailed) | |
221 | | -| `--lyrics <text>` | string | Song lyrics with structure tags. Required unless `--instrumental` or `--lyrics-optimizer` is used. | |
222 | | -| `--lyrics-file <path>` | string | Read lyrics from file. Use `-` for stdin | |
223 | | -| `--lyrics-optimizer` | boolean | Auto-generate lyrics from prompt. Cannot be used with `--lyrics` or `--instrumental`. | |
224 | | -| `--instrumental` | boolean | Generate instrumental music (no vocals). Cannot be used with `--lyrics`. | |
225 | | -| `--vocals <text>` | string | Vocal style, e.g. `"warm male baritone"`, `"bright female soprano"`, `"duet with harmonies"` | |
226 | | -| `--genre <text>` | string | Music genre, e.g. folk, pop, jazz | |
227 | | -| `--mood <text>` | string | Mood or emotion, e.g. warm, melancholic, uplifting | |
228 | | -| `--instruments <text>` | string | Instruments to feature, e.g. `"acoustic guitar, piano"` | |
229 | | -| `--tempo <text>` | string | Tempo description, e.g. fast, slow, moderate | |
230 | | -| `--bpm <number>` | number | Exact tempo in beats per minute | |
231 | | -| `--key <text>` | string | Musical key, e.g. C major, A minor, G sharp | |
232 | | -| `--avoid <text>` | string | Elements to avoid in the generated music | |
233 | | -| `--use-case <text>` | string | Use case context, e.g. `"background music for video"`, `"theme song"` | |
234 | | -| `--structure <text>` | string | Song structure, e.g. `"verse-chorus-verse-bridge-chorus"` | |
235 | | -| `--references <text>` | string | Reference tracks or artists, e.g. `"similar to Ed Sheeran"` | |
236 | | -| `--extra <text>` | string | Additional fine-grained requirements | |
237 | | -| `--aigc-watermark` | boolean | Embed AI-generated content watermark | |
238 | | -| `--format <fmt>` | string | Audio format (default: `mp3`) | |
239 | | -| `--sample-rate <hz>` | number | Sample rate (default: 44100) | |
240 | | -| `--bitrate <bps>` | number | Bitrate (default: 256000) | |
241 | | -| `--out <path>` | string | Save audio to file | |
242 | | -| `--stream` | boolean | Stream raw audio to stdout | |
243 | | - |
244 | | -At least one of `--prompt` or `--lyrics` is required. |
245 | | - |
246 | | -```bash |
247 | | -# With lyrics |
248 | | -mmx music generate --prompt "Upbeat pop" --lyrics "La la la..." --out song.mp3 --quiet |
249 | | - |
250 | | -# Auto-generate lyrics from prompt |
251 | | -mmx music generate --prompt "Upbeat pop about summer" --lyrics-optimizer --out summer.mp3 --quiet |
252 | | - |
253 | | -# Instrumental |
254 | | -mmx music generate --prompt "Cinematic orchestral, building tension" --instrumental --out bgm.mp3 --quiet |
255 | | - |
256 | | -# Detailed prompt with vocal characteristics |
257 | | -mmx music generate --prompt "Warm morning folk" \ |
258 | | - --vocals "male and female duet, harmonies in chorus" \ |
259 | | - --instruments "acoustic guitar, piano" \ |
260 | | - --bpm 95 \ |
261 | | - --lyrics-file song.txt \ |
262 | | - --out duet.mp3 |
263 | | -``` |
264 | | - |
265 | | ---- |
266 | | - |
267 | | -### music cover |
268 | | - |
269 | | -Generate a cover version of a song based on reference audio. |
270 | | - |
271 | | -**Model:** `music-cover-free` — unlimited for API key users, RPM = 3. |
272 | | - |
273 | | -```bash |
274 | | -mmx music cover --prompt <text> (--audio <url> | --audio-file <path>) [flags] |
275 | | -``` |
276 | | - |
277 | | -| Flag | Type | Description | |
278 | | -|---|---|---| |
279 | | -| `--prompt <text>` | string, **required** | Target cover style, e.g. `"Indie folk, acoustic guitar, warm male vocal"` | |
280 | | -| `--audio <url>` | string | URL of reference audio (mp3, wav, flac, etc. — 6s to 6min, max 50MB) | |
281 | | -| `--audio-file <path>` | string | Local reference audio file (auto base64-encoded) | |
282 | | -| `--lyrics <text>` | string | Cover lyrics. If omitted, extracted from reference audio via ASR. | |
283 | | -| `--lyrics-file <path>` | string | Read lyrics from file. Use `-` for stdin | |
284 | | -| `--seed <number>` | number | Random seed 0–1000000 for reproducible results | |
285 | | -| `--format <fmt>` | string | Audio format: `mp3`, `wav`, `pcm` (default: `mp3`) | |
286 | | -| `--sample-rate <hz>` | number | Sample rate (default: 44100) | |
287 | | -| `--bitrate <bps>` | number | Bitrate (default: 256000) | |
288 | | -| `--channel <n>` | number | Channels: `1` (mono) or `2` (stereo, default) | |
289 | | -| `--out <path>` | string | Save audio to file | |
290 | | -| `--stream` | boolean | Stream raw audio to stdout | |
291 | | - |
292 | | -```bash |
293 | | -# Cover from URL |
294 | | -mmx music cover --prompt "Indie folk, acoustic guitar, warm male vocal" \ |
295 | | - --audio https://filecdn.minimax.chat/public/d20eda57-2e36-45bf-9e12-82d9f2e69a86.mp3 --out cover.mp3 --quiet |
296 | | - |
297 | | -# Cover from local file with custom lyrics |
298 | | -mmx music cover --prompt "Jazz, piano, slow" \ |
299 | | - --audio-file original.mp3 --lyrics-file lyrics.txt --out jazz_cover.mp3 --quiet |
300 | | - |
301 | | -# Reproducible result with seed |
302 | | -mmx music cover --prompt "Pop, upbeat" --audio https://filecdn.minimax.chat/public/d20eda57-2e36-45bf-9e12-82d9f2e69a86.mp3 --seed 42 --out cover.mp3 |
303 | | -``` |
304 | | - |
305 | | ---- |
306 | | - |
307 | 208 | ### vision describe |
308 | 209 |
|
309 | 210 | Image understanding via VLM. Provide either `--image` or `--file-id`, not both. |
@@ -428,13 +329,11 @@ Set per-modality defaults so you don't need `--model` every time: |
428 | 329 | mmx config set --key default-text-model --value MiniMax-M3 |
429 | 330 | mmx config set --key default-speech-model --value speech-2.8-hd |
430 | 331 | mmx config set --key default-video-model --value MiniMax-Hailuo-2.3 |
431 | | -mmx config set --key default-music-model --value music-3.0 |
432 | 332 |
|
433 | 333 | # Use without --model |
434 | 334 | mmx text chat --message "Hello" |
435 | 335 | mmx speech synthesize --text "Hello" --out hello.mp3 |
436 | 336 | mmx video generate --prompt "Ocean waves" |
437 | | -mmx music generate --prompt "Upbeat pop" --instrumental |
438 | 337 |
|
439 | 338 | # --model still overrides per-call |
440 | 339 | mmx text chat --model MiniMax-M3 --message "Hello" |
|
0 commit comments