mcpField
A
ai-content-pipeline

ai-content-pipeline

github.com/inference-sh创意与媒体7891.0k 次安装2 周前更新
代码仓库

关于 ai-content-pipeline

ai-content-pipeline 是一项使用 inference.sh 命令行工具(`belt`)构建多步内容创作流程的技能,适合需要串联文本、研究、图像、视频和音频任务的创作者。

主要功能

  1. 01串联多步内容生成
  2. 02组合研究、文本与媒体任务
  3. 03保存中间结果
  4. 04提供视频和博客流程示例

适用场景

  1. 01将主题制作成短视频
  2. 02把博客文章转换为视频
  3. 03制作产品展示视频

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/inference-sh/skills --skill ai-content-pipeline

安装后在 Claude Code 中输入/ai-content-pipeline确认已加载。

详细介绍

安装 belt CLI 技能: npx skills add belt-sh/cli

AI 内容流水线

通过 inference.sh CLI 构建多步骤内容创作流水线。

AI 内容流水线

快速开始

需要 inference.sh CLI(belt)。安装说明

belt login

# Simple pipeline: Generate image -> Animate to video
belt app run falai/flux-dev --input '{"prompt": "portrait of a woman smiling"}' > image.json
belt app run falai/wan-2-5-i2v --input '{"image": "<url-from-previous>", "prompt": "slow camera push-in"}'

流水线模式

模式 1:图像 -> 视频 -> 音频
[FLUX Image] -> [Wan 2.5 Video] -> [Foley Sound]
模式 2:脚本 -> 语音 -> 虚拟形象
[LLM Script] -> [Kokoro TTS] -> [OmniHuman Avatar]
模式 3:研究 -> 内容 -> 分发
[Tavily Search] -> [Claude Summary] -> [FLUX Visual] -> [Twitter Post]

完整工作流

YouTube 短视频流水线

根据主题创作完整的短视频。

# 1. Generate script with 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. Generate voiceover with Kokoro
belt app run falai/kokoro-tts --input '{
  "prompt": "<script-text>",
  "voice": "af_sarah"
}' > voice.json

# 3. Generate background image with FLUX
belt app run falai/flux-dev --input '{
  "prompt": "Futuristic city skyline at sunset, cyberpunk aesthetic, 4K wallpaper"
}' > background.json

# 4. Animate image to video with Wan
belt app run falai/wan-2-5-i2v --input '{
  "image": "<background-url>",
  "prompt": "slow camera pan across cityscape, subtle movement"
}' > video.json

# 5. Add captions (manually or with another tool)

# 6. Merge video with audio
belt app run infsh/video-audio-merger --input '{
  "video_file": "<video-url>",
  "audio_file": "<voice-url>"
}'
讲解视频流水线

创建展示内容的 AI 虚拟形象。

# 1. Write the script
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "Write a 1-minute explainer script about quantum computing for beginners."
}' > script.json

# 2. Generate speech
belt app run falai/kokoro-tts --input '{
  "prompt": "<script>",
  "voice": "am_michael"
}' > speech.json

# 3. Generate or use a portrait image
belt app run falai/flux-dev --input '{
  "prompt": "Professional headshot of a friendly tech presenter, neutral background, looking at camera"
}' > portrait.json

# 4. Create talking head video
belt app run bytedance/omnihuman-1-5 --input '{
  "image": "<portrait-url>",
  "audio": "<speech-url>"
}' > talking_head.json
产品演示流水线

创建产品展示视频。

# 1. Generate product image
belt app run falai/flux-dev --input '{
  "prompt": "Sleek wireless earbuds on white surface, studio lighting, product photography"
}' > product.json

# 2. Animate product reveal
belt app run falai/wan-2-5-i2v --input '{
  "image": "<product-url>",
  "prompt": "slow 360 rotation, smooth motion"
}' > product_video.json

# 3. Upscale video quality
belt app run falai/topaz-video-upscaler --input '{
  "video": "<product-video-url>"
}' > upscaled.json

# 4. Add background music
belt app run infsh/video-audio-merger --input '{
  "video_file": "<upscaled-url>",
  "audio_file": "https://your-music.mp3"
}'
博客转视频流水线

将文字内容转换为视频格式。

# 1. Summarize blog post
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. Generate images for each point
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. Animate each image
for i in 1 2 3 4 5; do
  belt app run falai/wan-2-5-i2v --input "{
    \"image\": \"<image-$i-url>\",
    \"prompt\": \"subtle camera motion\"
  }" > "video_$i.json"
done

# 4. Generate voiceover
belt app run falai/kokoro-tts --input '{
  "prompt": "<full-script>",
  "voice": "bf_emma",
  "language": "british-english"
}' > narration.json

# 5. Merge all clips
belt app run infsh/media-merger --input '{
  "media_files": [
    {"file": "<video1>", "transition_type": "crossfade"},
    {"file": "<video2>", "transition_type": "crossfade"},
    {"file": "<video3>", "transition_type": "crossfade"},
    {"file": "<video4>", "transition_type": "crossfade"},
    {"file": "<video5>", "transition_type": "crossfade"}
  ]
}' > merged.json

belt app run infsh/video-audio-merger --input '{
  "video_file": "<merged-url>",
  "audio_file": "<narration-url>"
}'

流水线构建模块

内容生成
步骤应用用途
脚本openrouter/claude-sonnet-45撰写内容
研究tavily/search-assistant收集信息
摘要openrouter/claude-haiku-45精简内容
视觉素材
步骤应用用途
图像falai/flux-dev生成图像
图像google/imagen-3图像生成替代方案
升级分辨率falai/topaz-image-upscaler提升质量
动画
步骤应用用途
I2Vfalai/wan-2-5-i2v让图像动起来
T2Vgoogle/veo-3-1-fast根据文本生成
虚拟形象bytedance/omnihuman-1-5讲解视频
音频
步骤应用用途
TTSfalai/kokoro-tts语音旁白
音乐infsh/ai-music背景音乐
拟音infsh/mmaudio音效
后期制作
步骤应用用途
升级分辨率falai/topaz-video-upscaler提升视频质量
合并infsh/media-merger合并媒体
字幕infsh/caption-videos添加字幕

最佳实践

  1. 先规划流水线 - 运行前梳理每个步骤
  2. 保存中间结果 - 存储输出以便迭代
  3. 选择合适的质量 - 草稿使用快速模型,最终成品使用高质量模型
  4. 匹配分辨率 - 全程保持宽高比一致
  5. 测试每个步骤 - 验证输出后再继续

相关技能

# Video generation models
npx skills add inference-sh/skills@ai-video-generation

# Image generation
npx skills add inference-sh/skills@ai-image-generation

# Text-to-speech
npx skills add inference-sh/skills@text-to-speech

# LLM models for scripts
npx skills add inference-sh/skills@llm-models

# Full platform skill
npx skills add inference-sh/skills@infsh-cli

浏览所有应用:belt app list

文档

评论

支持 Markdown