bash
# 鉴权(如未配置)
mmx auth login --api-key <your-api-key>
# 查看配额
mmx quota show
bash
mmx image generate --prompt "描述" --aspect-ratio 16:9 --out-dir ./output --quiet --output json
--n: 生成数量 (1-4)--subject-ref: 角色一致性参考bash
mmx speech synthesize --text "文本" --voice "中文主播" --out audio.mp3 --quiet --output json
mmx speech voicesbash
mmx music generate --prompt "描述" --out music.mp3 --quiet --output json
bash
# 同步(等待完成)
mmx video generate --prompt "描述" --out video.mp4 --duration 6
# 异步(不阻塞)
mmx video generate --prompt "描述" --out video.mp4 --async
mmx video task get <task-id> # 查询状态
mmx video download <task-id> # 下载
bash
mmx vision describe --image path/to/image.jpg --quiet --output json
bash
mmx search query --query "关键词" --quiet --output json
bash
mmx text chat --prompt "问题" --quiet --output json
参数作用--quiet抑制进度条、彩色字符,只输出结果--output json输出纯 JSON,避免解析干扰--async异步模式,长任务转后台执行--non-interactive禁用交互式提示,CI/Agent 模式
Code含义处理0成功-1通用错误查看 error.message401鉴权失败重新 mmx auth login400参数错误检查命令参数408请求超时重试429速率限制等待后重试
详细命令参考:See references/commands.md