安装 belt CLI 技能:
npx skills add belt-sh/cli
AI 内容流水线 是做什么的?
通过 inference.sh CLI 构建多步骤内容创建流水线。

快速开始
需要 inference.sh CLI (
belt)。安装说明
belt login
# 简单流水线:生成图像 -> 动画化为视频
belt app run falai/flux-dev --input '{"prompt": "portrait of a woman smiling"}' > image.json
belt app run falai/wan-2-5 --input '{"image_url": "<url-from-previous>"}'
流水线模式
模式 1:图像 -> 视频 -> 音频
[FLUX 图像] -> [Wan 2.5 视频] -> [拟声音效]
模式 2:脚本 -> 语音 -> 头像
[LLM 脚本] -> [Kokoro TTS] -> [OmniHuman 头像]
模式 3:研究 -> 内容 -> 分发
[Tavily 搜索] -> [Claude 摘要] -> [FLUX 视觉] -> [Twitter 帖子]
完整工作流
YouTube 短视频流水线
根据主题创建完整的短视频。
# 1. 使用 Claude 生成脚本
belt app run openrouter/claude-sonnet-45 --input '{
"prompt": "Write a 30-second script about the future of AI. Make it engaging and conversational. Just the script, no stage directions."
}' > script.json
# 2. 使用 Kokoro 生成配音
belt app run infsh/kokoro-tts --input '{
"prompt": "<script-text>",
"voice": "af_sarah"
}' > voice.json
# 3. 使用 FLUX 生成背景图像
belt app run falai/flux-dev --input '{
"prompt": "Futuristic city skyline at sunset, cyberpunk aesthetic, 4K wallpaper"
}' > background.json
# 4. 使用 Wan 将图像动画化为视频
belt app run falai/wan-2-5 --input '{
"image_url": "<background-url>",
"prompt": "slow camera pan across cityscape, subtle movement"
}' > video.json
# 5. 添加字幕(手动或使用其他工具)
# 6. 将视频与音频合并
belt app run infsh/media-merger --input '{
"video_url": "<video-url>",
"audio_url": "<voice-url>"
}'
说话头像视频流水线
创建AI头像以呈现内容。
# 1. 编写脚本
belt app run openrouter/claude-sonnet-45 --input '{
"prompt": "Write a 1-minute explainer script about quantum computing for beginners."
}' > script.json
# 2. 生成语音
belt app run infsh/kokoro-tts --input '{
"prompt": "<script>",
"voice": "am_michael"
}' > speech.json
# 3. 生成或使用肖像图像
belt app run falai/flux-dev --input '{
"prompt": "Professional headshot of a friendly tech presenter, neutral background, looking at camera"
}' > portrait.json
# 4. 创建说话头像视频
belt app run bytedance/omnihuman-1-5 --input '{
"image_url": "<portrait-url>",
"audio_url": "<speech-url>"
}' > talking_head.json
产品演示流水线
创建产品展示视频。
# 1. 生成产品图像
belt app run falai/flux-dev --input '{
"prompt": "Sleek wireless earbuds on white surface, studio lighting, product photography"
}' > product.json
# 2. 动画化产品展示
belt app run falai/wan-2-5 --input '{
"image_url": "<product-url>",
"prompt": "slow 360 rotation, smooth motion"
}' > product_video.json
# 3. 提升视频质量
belt app run falai/topaz-video-upscaler --input '{
"video_url": "<product-video-url>"
}' > upscaled.json
# 4. 添加背景音乐
belt app run infsh/media-merger --input '{
"video_url": "<upscaled-url>",
"audio_url": "https://your-music.mp3",
"audio_volume": 0.3
}'
博客转视频流水线
将书面内容转换为视频格式。
# 1. 总结博客文章
belt app run openrouter/claude-haiku-45 --input '{
"prompt": "Summarize this blog post into 5 key points for a video script: <blog-content>"
}' > summary.json
# 2. 为每个要点生成图像
for i in 1 2 3 4 5; do
belt app run falai/flux-dev --input "{\n \"prompt\": \"Visual representing point $i: <point-text>\"\n }" > "image_$i.json"
done
# 3. 动画化每个图像
for i in 1 2 3 4 5; do
belt app run falai/wan-2-5 --input "{\n \"image_url\": \"<image-$i-url>\"\n }" > "video_$i.json"
done
# 4. 生成配音
belt app run infsh/kokoro-tts --input '{
"prompt": "<full-script>",
"voice": "bf_emma"
}' > narration.json
# 5. 合并所有片段
belt app run infsh/media-merger --input '{
"videos": ["<video1>", "<video2>", "<video3>", "<video4>", "<video5>"],
"audio_url": "<narration-url>",
"transition": "crossfade"
}'
流水线构建块
内容生成
| 步骤 | 应用 | 用途 |
|---|---|---|
| 脚本 | openrouter/claude-sonnet-45 | 编写内容 |
| 研究 | tavily/search-assistant | 收集信息 |
| 摘要 | openrouter/claude-haiku-45 | 浓缩内容 |
视觉资产
| 步骤 | 应用 | 用途 |
|---|---|---|
| 图像 | falai/flux-dev | 生成图像 |
| 图像 | google/imagen-3 | 替代图像生成 |
| 超分辨率 | falai/topaz-image-upscaler | 提升质量 |
动画
| 步骤 | 应用 | 用途 |
|---|---|---|
| 图像转视频 | falai/wan-2-5 | 动画化图像 |
| 文本转视频 | google/veo-3-1-fast | 从文本生成 |
| 头像 | bytedance/omnihuman-1-5 | 说话头像 |
音频
| 步骤 | 应用 | 用途 |
|---|---|---|
| 文本转语音 | infsh/kokoro-tts | 语音旁白 |
| 音乐 | infsh/ai-music | 背景音乐 |
| 拟音 | infsh/hunyuanvideo-foley | 音效 |
后期制作
| 步骤 | 应用 | 用途 |
|---|---|---|
| 超分辨率 | falai/topaz-video-upscaler | 提升视频质量 |
| 合并 | infsh/media-merger | 组合媒体 |
| 字幕 | infsh/caption-video | 添加字幕 |
最佳实践
- 先规划流水线 - 在运行前映射出每一步
- 保存中间结果 - 存储输出以便迭代
- 使用适当的质量 - 草稿用快速模型,终稿用高质量模型
- 匹配分辨率 - 全程保持一致的宽高比
- 测试每一步 - 在继续前验证输出
相关技能
# 视频生成模型
npx skills add inference-sh/skills@ai-video-generation
# 图像生成
npx skills add inference-sh/skills@ai-image-generation
# 文本转语音
npx skills add inference-sh/skills@text-to-speech
# 脚本用 LLM 模型
npx skills add inference-sh/skills@llm-models
# 完整平台技能
npx skills add inference-sh/skills@infsh-cli
浏览所有应用:belt app list