Loading...
Loading...
Compare original and translation side by side
mmxmmxundefinedundefined
Region is auto-detected. Override with `--region global` or `--region cn`.
---
区域会自动检测,你可以通过`--region global`或者`--region cn`参数手动覆盖。
---| Flag | Purpose |
|---|---|
| Fail fast on missing args instead of prompting |
| Suppress spinners/progress; stdout is pure data |
| Machine-readable JSON output |
| Return task ID immediately (video generation) |
| Preview the API request without executing |
| Skip confirmation prompts |
| 参数 | 用途 |
|---|---|
| 缺少参数时直接快速报错退出,而不是提示用户输入 |
| 关闭加载动画/进度提示,标准输出仅返回纯净数据 |
| 返回机器可读的JSON格式输出 |
| 立即返回任务ID(适用于视频生成场景) |
| 仅预览API请求内容,不实际执行 |
| 跳过确认提示 |
MiniMax-M2.7mmx text chat --message <text> [flags]| Flag | Type | Description |
|---|---|---|
| string, required, repeatable | Message text. Prefix with |
| string | JSON file with messages array. Use |
| string | System prompt |
| string | Model ID (default: |
| number | Max tokens (default: 4096) |
| number | Sampling temperature (0.0, 1.0] |
| number | Nucleus sampling threshold |
| boolean | Stream tokens (default: on in TTY) |
| string, repeatable | Tool definition JSON or file path |
undefinedMiniMax-M2.7mmx text chat --message <text> [flags]| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串,必填,可重复传入 | 消息内容,添加 |
| 字符串 | 存储消息数组的JSON文件路径,传入 |
| 字符串 | 系统提示词 |
| 字符串 | 模型ID(默认值: |
| 数字 | 最大Token数(默认值:4096) |
| 数字 | 采样温度,取值范围(0.0, 1.0] |
| 数字 | 核采样阈值 |
| 布尔值 | 流式返回Token(TTY模式下默认开启) |
| 字符串,可重复传入 | 工具定义JSON内容或文件路径 |
undefined
**stdout**: response text (text mode) or full response object (json mode).
---
**标准输出**:文本模式下返回响应文本,JSON模式下返回完整响应对象。
---image-01mmx image generate --prompt <text> [flags]| Flag | Type | Description |
|---|---|---|
| string, required | Image description |
| string | e.g. |
| number | Number of images (default: 1) |
| string | Subject reference: |
| string | Download images to directory |
| string | Filename prefix (default: |
mmx image generate --prompt "A cat in a spacesuit" --output json --quietimage-01mmx image generate --prompt <text> [flags]| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串,必填 | 图像描述 |
| 字符串 | 例如 |
| 数字 | 生成图像数量(默认值:1) |
| 字符串 | 主体参考: |
| 字符串 | 下载图像到指定目录 |
| 字符串 | 文件名前缀(默认值: |
mmx image generate --prompt "A cat in a spacesuit" --output json --quiet
---
---MiniMax-Hailuo-2.3mmx video generate --prompt <text> [flags]| Flag | Type | Description |
|---|---|---|
| string, required | Video description |
| string | |
| string | First frame image |
| string | Webhook URL for completion |
| string | Save video to specific file |
| boolean | Return task ID immediately |
| boolean | Same as |
| number | Polling interval (default: 5) |
undefinedMiniMax-Hailuo-2.3mmx video generate --prompt <text> [flags]| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串,必填 | 视频描述 |
| 字符串 | |
| 字符串 | 首帧图像路径或URL |
| 字符串 | 任务完成回调的Webhook URL |
| 字符串 | 将视频保存到指定路径 |
| 布尔值 | 立即返回任务ID |
| 布尔值 | 功能和 |
| 数字 | 轮询间隔(默认值:5秒) |
undefinedundefinedundefinedmmx video task get --task-id <id> [--output json]mmx video task get --task-id <id> [--output json]mmx video download --file-id <id> [--out <path>]mmx video download --file-id <id> [--out <path>]speech-2.8-hdmmx speech synthesize --text <text> [flags]| Flag | Type | Description |
|---|---|---|
| string | Text to synthesize |
| string | Read text from file. Use |
| string | |
| string | Voice ID (default: |
| number | Speed multiplier |
| number | Volume level |
| number | Pitch adjustment |
| string | Audio format (default: |
| number | Sample rate (default: 32000) |
| number | Bitrate (default: 128000) |
| number | Audio channels (default: 1) |
| string | Language boost |
| boolean | Include subtitle timing data |
| string, repeatable | Custom pronunciation |
| string | Add sound effect |
| string | Save audio to file |
| boolean | Stream raw audio to stdout |
mmx speech synthesize --text "Hello world" --out hello.mp3 --quietspeech-2.8-hdmmx speech synthesize --text <text> [flags]| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串 | 待合成的文本 |
| 字符串 | 从文件读取文本,传入 |
| 字符串 | |
| 字符串 | 音色ID(默认值: |
| 数字 | 语速倍数 |
| 数字 | 音量等级 |
| 数字 | 音调调整值 |
| 字符串 | 音频格式(默认值: |
| 数字 | 采样率(默认值:32000) |
| 数字 | 比特率(默认值:128000) |
| 数字 | 音频声道数(默认值:1) |
| 字符串 | 语言优化 |
| 布尔值 | 包含字幕时间轴数据 |
| 字符串,可重复传入 | 自定义发音规则 |
| 字符串 | 添加音效 |
| 字符串 | 保存音频到指定路径 |
| 布尔值 | 将原始音频流式输出到标准输出 |
mmx speech synthesize --text "Hello world" --out hello.mp3 --quiet
---
---music-2.5mmx music generate --prompt <text> [--lyrics <text>] [flags]| Flag | Type | Description |
|---|---|---|
| string | Music style description (can be detailed) |
| string | Song lyrics with structure tags. Use |
| string | Read lyrics from file. Use |
| string | Vocal style, e.g. |
| string | Music genre, e.g. folk, pop, jazz |
| string | Mood or emotion, e.g. warm, melancholic, uplifting |
| string | Instruments to feature, e.g. |
| string | Tempo description, e.g. fast, slow, moderate |
| number | Exact tempo in beats per minute |
| string | Musical key, e.g. C major, A minor, G sharp |
| string | Elements to avoid in the generated music |
| string | Use case context, e.g. |
| string | Song structure, e.g. |
| string | Reference tracks or artists, e.g. |
| string | Additional fine-grained requirements |
| boolean | Generate instrumental music (no vocals). Cannot be used with |
| boolean | Embed AI-generated content watermark |
| string | Audio format (default: |
| number | Sample rate (default: 44100) |
| number | Bitrate (default: 256000) |
| string | Save audio to file |
| boolean | Stream raw audio to stdout |
--prompt--lyricsundefinedmusic-2.5mmx music generate --prompt <text> [--lyrics <text>] [flags]| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串 | 音乐风格描述,可以写得很详细 |
| 字符串 | 带结构标签的歌词,传入 |
| 字符串 | 从文件读取歌词,传入 |
| 字符串 | 人声风格,例如 |
| 字符串 | 音乐流派,例如folk、pop、jazz |
| 字符串 | 情绪/情感,例如warm、melancholic、uplifting |
| 字符串 | 使用的乐器,例如 |
| 字符串 | 节奏描述,例如fast、slow、moderate |
| 数字 | 精确的每分钟节拍数 |
| 字符串 | 调式,例如C major、A minor、G sharp |
| 字符串 | 生成音乐时需要避免的元素 |
| 字符串 | 使用场景,例如 |
| 字符串 | 歌曲结构,例如 |
| 字符串 | 参考曲目或艺术家,例如 |
| 字符串 | 额外的细粒度要求 |
| 布尔值 | 生成纯音乐(无人声),不能和 |
| 布尔值 | 嵌入AI生成内容水印 |
| 字符串 | 音频格式(默认值: |
| 数字 | 采样率(默认值:44100) |
| 数字 | 比特率(默认值:256000) |
| 字符串 | 保存音频到指定路径 |
| 布尔值 | 将原始音频流式输出到标准输出 |
--prompt--lyricsundefined
---
-----image--file-idmmx vision describe (--image <path-or-url> | --file-id <id>) [flags]| Flag | Type | Description |
|---|---|---|
| string | Local path or URL (auto base64-encoded) |
| string | Pre-uploaded file ID (skips base64) |
| string | Question about the image (default: |
mmx vision describe --image photo.jpg --prompt "What breed?" --output json--image--file-idmmx vision describe (--image <path-or-url> | --file-id <id>) [flags]| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串 | 本地路径或URL(会自动进行base64编码) |
| 字符串 | 已上传的文件ID(无需再进行base64编码) |
| 字符串 | 关于图像的问题(默认值: |
mmx vision describe --image photo.jpg --prompt "What breed?" --output jsonmmx search query --q <query>| Flag | Type | Description |
|---|---|---|
| string, required | Search query |
mmx search query --q "MiniMax AI" --output json --quietmmx search query --q <query>| 参数 | 类型 | 说明 |
|---|---|---|
| 字符串,必填 | 搜索查询词 |
mmx search query --q "MiniMax AI" --output json --quietmmx quota show [--output json]mmx quota show [--output json]undefinedundefined
Use this to dynamically register mmx commands as tools in your agent framework.
---
可用于将mmx命令动态注册为你的Agent框架中的工具。
---| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Usage error (bad flags, missing args) |
| 3 | Authentication error |
| 4 | Quota exceeded |
| 5 | Timeout |
| 10 | Content filter triggered |
| 编码 | 含义 |
|---|---|
| 0 | 成功 |
| 1 | 通用错误 |
| 2 | 使用错误(参数错误、缺少参数) |
| 3 | 认证错误 |
| 4 | 配额不足 |
| 5 | 超时 |
| 10 | 触发内容过滤 |
undefinedundefined
---
---~/.mmx/config.jsonundefined~/.mmx/config.jsonundefinedundefinedundefined