SuperAPI AI 工具集

minimax-prompt

智能体与模型

查看项目

更新于 10-15 23:45

技能介绍

用途:MiniMax Prompt 用于一次性(one-shot)LLM 任务,例如提示、摘要与文本生成,底层使用 MiniMax M2.5 模型,通过 minimax-prompt CLI 包装器调用 MiniMax 的 Anthropic 兼容 API。

主要能力与用法:提供两种执行方式。其一是 CLI,包装脚本位于 ~/.local/bin/minimax-prompt,可作为 gemini -p 的直接替代。示例:minimax-prompt "Explain quantum computing in one paragraph";带 -p 标志:minimax-prompt -p "Summarize this text";管道输入加提示:echo "Raw data here" | minimax-prompt -p "Summarize the above";仅管道内容(内容即提示):echo "What is 2+2?" | minimax-prompt。默认超时 180 秒,输出为纯文本到 stdout,错误写入 stderr。其二是脚本中直接调用 API,适合无法依赖 CLI 的环境(如 Docker 容器),使用 curl 请求 https://api.minimax.io/anthropic/v1/messages,请求头包含 x-api-key、content-type 与 anthropic-version,请求体指定 model 为 MiniMax-M2.5、max_tokens 与 messages。

端点与模型:Anthropic Messages 端点 https://api.minimax.io/anthropic/v1/messages 约 2 秒(推荐);OpenAI Completions 端点 https://api.minimax.io/v1/chat/completions 约 6 秒。Anthropic 端点快约 3 倍并原生分离 thinking 标签。仅 MiniMax-M2.5 在 Coding Plan 可用,MiniMax-M2.5-lightning 不可用;上下文窗口 204K,最大输出 131K tokens。

配置与限制:需要 MINIMAX_CODING_PLAN_API_KEY 环境变量,可在 OpenClaw 的 ~/.config/systemd/user/secrets.conf 设置并在 openclaw.json 中以 ${MINIMAX_CODING_PLAN_API_KEY} 引用,或 shell 中 export,或 Docker 用 -e 传入。Coding Plan 为订阅制,API 调用包含在内,无按 token 计费。该技能替代已退役的 gemini 技能。结构化 agent 轮次建议改用 openclaw agent --local。无状态,无需状态文件或缓存。其余细节暂未提供。