自动化与脚本
使用 inference.sh CLI…
当需要通过命令行免 GPU 调用云端 AI 应用(生成图像/视频、调用 LLM、搜索、3D、Twitter 自动化)时使用。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 38/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 59/100 ×0.15
适用场景
使用 inference.sh CLI 特定
解决思路
- 安装 belt CLI 技能:`npx skills add belt-sh/cli`。
- 安装 inference.sh CLI:`curl -fsSL https://cli.inference.sh | sh`。
- 登录:`belt login`。
- 安装脚本行为:检测 OS 和架构,从 `dist.inference.sh` 下载正确二进制,校验 SHA-256 校验和,并放入 PATH;不申请提权、不运行后台进程、不收集遥测;若已安装 cosign,也会自动验证 Sigstore 签名。
- 手动安装时,先下载二进制和校验和:`curl -LO https://dist.inference.sh/cli/checksums.txt`。
- 手动安装时,根据 manifest 下载当前平台二进制:`curl -LO $(curl -fsSL https://dist.inference.sh/cli/manifest.json | grep -o '"url":"[^"]*"' | grep $(uname -s | tr A-Z a-z)-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') | head -1 | cut -d'"' -f4)`。
- 手动安装时校验校验和:`sha256sum -c checksums.txt --ignore-missing`。
- 手动安装时解压:`tar -xzf inferencesh-cli-*.tar.gz`。
- 手动安装时移动到 PATH:`mv inferencesh-cli-* ~/.local/bin/inferencesh`。
- 生成图像:`belt app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut"}'`。
- 生成视频:`belt app run google/veo-3-1-fast --input '{"prompt": "drone over mountains"}'`。
- 调用 Claude:`belt app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'`。
- Web 搜索:`belt app run tavily/search-assistant --input '{"query": "latest AI news"}'`。
- 发 Twitter:`belt app run x/post-tweet --input '{"text": "Hello from AI!"}'`。
- 生成 3D 模型:`belt app run infsh/rodin-3d-generator --input '{"prompt": "a wooden chair"}'`。
- 本地文件上传:当输入中提供本地路径而不是 URL 时,CLI 会自动上传本地文件。
- 本地图片放大:`belt app run falai/topaz-image-upscaler --input '{"image": "/path/to/photo.jpg", "upscale_factor": 2}'`。
- 本地图片转视频:`belt app run falai/wan-2-5-i2v --input '{"image": "./my-image.png", "prompt": "make it move"}'`。
- 用本地音频和图片生成 Avatar:`belt app run bytedance/omnihuman-1-5 --input '{"audio": "/path/to/speech.mp3", "image": "/path/to/face.jpg"}'`。
- 带本地媒体发推:`belt app run x/post-create --input '{"text": "Check this out!", "media": "./screenshot.png"}'`。
- 浏览应用商店:`belt app list`。
- 搜索应用商店:`belt app search "flux"`。
- 按类别过滤:`belt app list --category image`。
- 列出你的应用:`belt app list`。
- 获取应用详情:`belt app get google/veo-3-1-fast`。
- 生成示例输入:`belt app sample google/veo-3-1-fast --save input.json`。
- 运行应用:`belt app run google/veo-3-1-fast --input input.json`。
- 不等待直接运行:`belt app run <app> --input input.json --no-wait`。
- 检查任务状态:`belt task get <task-id>`。
- 可用图像应用:FLUX、Gemini 3 Pro、Grok Imagine、Seedream 4.5、Reve、Topaz Upscaler。
- 可用视频应用:Veo 3.1、Seedance 2.0、Wan 2.5、OmniHuman、Fabric、HunyuanVideo Foley。
- 可用 LLM:Claude Opus/Sonnet/Haiku、Gemini 3 Pro、Kimi K2、GLM-4、任意 OpenRouter 模型。
- 可用搜索:Tavily Search、Tavily Extract、Exa Search、Exa Answer、Exa Extract。
- 可用 3D:Rodin 3D Generator。
- 可用 Twitter/X:post-tweet、post-create、dm-send、user-follow、post-like、post-retweet。
- 可用工具:Media merger、caption videos、image stitching、audio extraction。
- 安装图像生成相关技能:`npx skills add inference-sh/skills@ai-image-generation`。
- 安装视频生成相关技能:`npx skills add inference-sh/skills@ai-video-generation`。
- 安装 LLM 相关技能:`npx skills add inference-sh/skills@llm-models`。
- 安装 Web 搜索相关技能:`npx skills add inference-sh/skills@web-search`。
- 安装 AI Avatar 与 lipsync 相关技能:`npx skills add inference-sh/skills@ai-avatar-video`。
- 安装 Twitter/X 自动化相关技能:`npx skills add inference-sh/skills@twitter-automation`。
- 安装 FLUX 图像专用技能:`npx skills add inference-sh/skills@flux-image`。
- 安装 Google Veo 专用技能:`npx skills add inference-sh/skills@google-veo`。
- 安装图像放大工具技能:`npx skills add inference-sh/skills@image-upscaling`。
- 安装背景移除工具技能:`npx skills add inference-sh/skills@background-removal`。
- 阅读参考文件:Authentication & Setup、Discovering Apps、Running Apps、CLI Reference。
- 阅读文档:Agent Skills Overview、Getting Started、What is inference.sh?、Apps Overview、CLI Setup、Workflows vs Agents、Why Agent Runtimes Matter。
适用边界 · 注意事项
- 没有安装 inference.sh CLI / belt 或无法执行 `belt login` 时。
- 需要完全离线、本地推理或不希望把数据发给第三方云服务时。
- 只需要少量简单 AI 能力且已有其他 API/SDK,不想引入额外 CLI 和账号依赖时。