🦞 OpenClaw Infer — 多模态推理
v1.0.1通过 openclaw infer CLI 一键调用云端模型,完成文本、图像、音频转写、语音合成、视频、网页搜索及向量嵌入等任务,无需自建推理环境。
详细分析 ▾
运行时依赖
版本
- 新增 CLI 安装说明与快速验证步骤。 - 在元数据中显式声明二进制依赖(`openclaw`)。 - 新增安装元数据与主页链接。 - 无命令语法或工作流变更。
安装命令
点击复制技能文档
# OpenClaw Infer 优先使用 openclaw infer ... 作为官方推理 CLI。当输出需要机器可读或需要被管道到下一步时,请使用 --json。 正常的本地路径不要求 gateway 正在运行。 ## 设置 依赖二进制文件:openclaw 位于 PATH。 如果缺失,请安装: ``bash npm install -g openclaw ` 快速验证: `bash openclaw infer model providers --json ` 如果使用的是本地 OpenClaw 检出而非全局安装,请使用该检出构建的 openclaw CLI。 ## 核心命令 - 运行文本/模型调用: - openclaw infer model run --prompt "Reply with exactly: smoke-ok" --json - openclaw infer model providers --json - 生成或检查图片: - openclaw infer image generate --prompt "friendly lobster illustration" --json - openclaw infer image describe --file ./photo.jpg --json - 转录音频: - openclaw infer audio transcribe --file ./memo.m4a --language en --prompt "Focus on names and action items" --json - 合成语音: - openclaw infer tts convert --text "hello from openclaw" --output ./hello.mp3 --json - openclaw infer tts providers --json - 生成或检查视频: - openclaw infer video generate --prompt "cinematic sunset over the ocean" --json - openclaw infer video describe --file ./clip.mp4 --json - 搜索网页: - openclaw infer web search --query "OpenClaw docs" --json - openclaw infer web providers --json - 创建嵌入: - openclaw infer embedding create --text "friendly lobster" --json - openclaw infer embedding providers --json ## 选择规则 - 优先使用 infer,而非旧的 wrapper skills 或 provider 特定 CLI,除非用户明确请求该 provider 或工作流。 - 仅当用户请求特定后端时,才使用显式的 --provider 或 --model provider/model。 - 保持命令族扁平: - infer image ... - infer audio ... - infer tts ... - infer video ... - infer web ... - infer embedding ...`