安裝 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 影片] -> [Foley 音效]
模式 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 "{
\"prompt\": \"Visual representing point $i: <point-text>\"
}" > "image_$i.json"
done
# 3. 將每張圖片動畫化
for i in 1 2 3 4 5; do
belt app run falai/wan-2-5 --input "{
\"image_url\": \"<image-$i-url>\"
}" > "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 | 增強品質 |
動畫
| 步驟 | 應用程式 | 用途 |
|---|---|---|
| I2V | falai/wan-2-5 | 將圖片動畫化 |
| T2V | google/veo-3-1-fast | 從文字產生影片 |
| 虛擬主播 | bytedance/omnihuman-1-5 | 說話頭像 |
音訊
| 步驟 | 應用程式 | 用途 |
|---|---|---|
| TTS | infsh/kokoro-tts | 語音旁白 |
| 音樂 | infsh/ai-music | 背景音樂 |
| Foley | 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