SuperAPI AI 工具集

infsh-cli

智能体与模型

查看项目

更新于 10-13 14:21

技能介绍

用途

infsh-cli 用于在云端运行 AI 应用,通过简单的命令行界面调用多种 AI 能力,无需本地 GPU。它的定位是让图像、视频、大语言模型、搜索、3D 生成和 Twitter 自动化等任务都能从命令行发起。

主要能力

可用的应用类别及示例如下:

  • 图像: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
  • 大语言模型: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
  • 工具:媒体合并、视频字幕、图像拼接、音频提取

安装方式

一键安装脚本:

curl -fsSL https://cli.inference.sh | sh
belt login

安装脚本会检测操作系统与架构,从 dist.inference.sh 下载对应二进制文件,校验其 SHA-256 校验和,并放入 PATH。据资料说明,该过程不需要提权、无后台进程、无遥测;如果已安装 cosign,安装器还会自动校验 Sigstore 签名。

手动安装(若不希望通过管道执行 sh):

# Download the binary and checksums
curl -LO https://dist.inference.sh/cli/checksums.txt
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)
# Verify checksum
sha256sum -c checksums.txt --ignore-missing
# Extract and install
tar -xzf inferencesh-cli-*.tar.gz
mv inferencesh-cli-* ~/.local/bin/inferencesh

另外可通过技能安装:npx skills add belt-sh/cli。

使用方式

运行应用的通用形式为 belt app run <app> --input '<json>'。快速示例:

# Generate an image
belt app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut"}'

# Generate a video
belt app run google/veo-3-1-fast --input '{"prompt": "drone over mountains"}'

# Call Claude
belt app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'

# Web search
belt app run tavily/search-assistant --input '{"query": "latest AI news"}'

# Post to Twitter
belt app run x/post-tweet --input '{"text": "Hello from AI!"}'

# Generate 3D model
belt app run infsh/rodin-3d-generator --input '{"prompt": "a wooden chair"}'

本地文件上传:当输入提供的是路径而非 URL 时,CLI 会自动上传本地文件。

# Upscale a local image
belt app run falai/topaz-image-upscaler --input '{"image": "/path/to/photo.jpg", "upscale_factor": 2}'

# Image-to-video from local file
belt app run falai/wan-2-5-i2v --input '{"image": "./my-image.png", "prompt": "make it move"}'

# Avatar with local audio and image
belt app run bytedance/omnihuman-1-5 --input '{"audio": "/path/to/speech.mp3", "image": "/path/to/face.jpg"}'

# Post tweet with local media
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>

相关技能

资料列出以下可单独安装的相关技能:

# Image generation (FLUX, Gemini, Grok, Seedream)
npx skills add inference-sh/skills@ai-image-generation

# Video generation (Veo, Seedance, Wan, OmniHuman)
npx skills add inference-sh/skills@ai-video-generation

# LLMs (Claude, Gemini, Kimi, GLM via OpenRouter)
npx skills add inference-sh/skills@llm-models

# Web search (Tavily, Exa)
npx skills add inference-sh/skills@web-search

# AI avatars & lipsync (OmniHuman, Fabric, PixVerse)
npx skills add inference-sh/skills@ai-avatar-video

# Twitter/X automation
npx skills add inference-sh/skills@twitter-automation

# Model-specific
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@google-veo

# Utilities
npx skills add inference-sh/skills@image-upscaling
npx skills add inference-sh/skills@background-removal

适用场景

适合需要在命令行环境或智能体工作流中调用多种云端 AI 能力的用户,例如批量生成图像与视频、调用多种大语言模型、执行网页搜索、生成 3D 模型、进行 Twitter/X 自动化发布,以及处理媒体合并、字幕、拼接和音频提取等工具任务。

限制

资料未提供收费、价格、配额、速度或平台兼容性的具体信息,暂未提供。使用前需通过 belt login 完成登录。