SuperAPI AI 工具集

cli-anything-minimax

编程与开发

查看项目

更新于 10-15 22:13

技能介绍

用途:cli-anything-minimax 是 MiniMax AI 的命令行封装工具,通过 MiniMax API 提供聊天补全与文本转语音(TTS)合成,适合在终端或脚本中调用 MiniMax 模型。

安装:pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=minimax/agent-harness。前置条件为 Python 3.10+,以及来自 platform.minimax.io 的 MiniMax API key。

主要能力:聊天命令 chat 与流式命令 stream;TTS 命令 tts 及 voices 列出可用音色;会话管理 session status/clear/history;配置管理 config set/get/delete/path;工具命令 test 测试连通性、models 与 models --tts 列出模型。聊天模型有 MiniMax-M3(默认)与 MiniMax-M2.7;TTS 模型包括 speech-2.8-hd(默认)、speech-2.8-turbo、speech-2.6-hd/turbo、speech-02-hd/turbo、speech-01-hd/turbo。

使用方式:设置密钥可用 export MINIMAX_API_KEY="your-api-key" 或 cli-anything-minimax config set api_key "your-api-key"。示例:cli-anything-minimax chat --prompt "What is AI?";cli-anything-minimax stream --prompt "Write a poem about code";cli-anything-minimax tts --text "Hello world" --output hello.mp3。TTS 支持 --model、--voice、--output、--speed(0.5..2.0)、--vol(0..10)、--pitch(-12..12)、--sample-rate、--bitrate、--format(mp3/pcm/flac)、--channel 等参数,默认值见 tts --help。面向智能体时建议加 --json 获取可解析输出,检查返回码(0 成功),失败时解析 stderr,TTS 输出文件使用绝对路径。

限制:需自备 MiniMax API key 与网络访问;具体计费、配额、速率限制及音色完整列表资料未提供。