Co-Pilot / 辅助式
更新于 a month ago

pfp-animate

Vvelinussage
0.0k
velinussage/pfp-animate
80
Agent 评分

💡 摘要

PFP Animate 使用 AI 从静态头像生成动画视频,提供多种自定义模式。

🎯 适合人群

希望提升视频质量的内容创作者想要为头像添加动画的社交媒体用户寻求引人注目的推广内容的营销人员集成动画功能到应用程序的开发者希望制作动画表情包的创作者

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析中风险

风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。


name: pfp-animate description: Generate animated videos from static profile pictures using AI. Use when users want to animate images, create PFP videos, make meme videos, or turn portraits into short clips. Supports video with generated audio, lip-sync to existing audio, and precise keyframe control.

Four animation modes:

  • Veo mode (recommended): Video + audio from text prompt (Veo 3.1, ~$3.20/8s)
  • Lip-sync mode: Video synced to existing audio file (OmniHuman 1.5, ~$0.16/s)
  • Video mode: Silent video from prompt (Kling v2.5, ~$0.35/5s)
  • Keyframe mode: Precise facial expressions as GIF (expression-editor, ~$0.02)

Requires: REPLICATE_API_TOKEN environment variable

<check_setup> CRITICAL: Before ANY animation, check for token:

echo $REPLICATE_API_TOKEN | head -c 10

If empty or missing, ASK the user directly:

"I need your Replicate API token to generate videos. Please provide it, or get one from https://replicate.com/account/api-tokens"

Once user provides token, use it inline:

REPLICATE_API_TOKEN='user_provided_token' python scripts/animate_veo.py ...

Do NOT run animation scripts without first verifying the token is available. </check_setup>

  1. Setup Replicate - Create account, get API token, configure environment
  2. Animate with voice - Generate video with AI-generated voice/audio (Veo 3.1)
  3. Lip-sync to audio - Sync video to existing audio file (OmniHuman 1.5)
  4. Silent video - Generate video without audio (Kling v2.5)
  5. Keyframe animation - Precise facial expressions as GIF
  6. List presets - See available motion presets

Wait for user response before proceeding.

After reading the workflow, follow it exactly.

<quick_reference> Veo 3.1 (video + generated audio):

python scripts/animate_veo.py IMAGE OUTPUT.mp4 --prompt "person speaks to camera" python scripts/animate_veo.py IMAGE OUTPUT.mp4 --prompt "person says 'Hello world'" --duration 8 python scripts/animate_veo.py IMAGE OUTPUT.mp4 --prompt "dramatic reveal" --reference IMAGE

OmniHuman 1.5 (lip-sync to audio file):

python scripts/animate_audio.py IMAGE AUDIO.mp3 OUTPUT.mp4 python scripts/animate_audio.py IMAGE --tts "Hello world" OUTPUT.mp4 --voice Deep_Voice_Man

Kling v2.5 (silent video):

python scripts/animate_pfp.py IMAGE OUTPUT.mp4 --motion nod python scripts/animate_pfp.py IMAGE OUTPUT.mp4 --prompt "slowly winking"

Keyframe (precise gestures):

python scripts/animate_keyframe.py IMAGE OUTPUT.gif --motion nod_wink

</quick_reference>

<model_comparison> | Model | Audio | Best For | Cost | |-------|-------|----------|------| | Veo 3.1 | Generated | Speaking videos, announcements | ~$3.20/8s | | OmniHuman 1.5 | Lip-sync | Sync to specific audio | ~$0.16/s | | Kling v2.5 | None | Silent motion, gestures | ~$0.35/5s | | Expression-editor | None | Precise facial control | ~$0.02 | </model_comparison>

<reference_index> Presets: references/presets.md - Motion presets for keyframe mode Troubleshooting: references/troubleshooting.md - Common errors and fixes API Costs: references/pricing.md - Full pricing reference </reference_index>

<workflows_index> | Workflow | Purpose | |----------|---------| | setup.md | Create Replicate account and configure API token | | veo.md | Generate video with AI voice/audio using Veo 3.1 | | audio.md | Lip-sync video to existing audio using OmniHuman 1.5 | | animate.md | Generate silent video using Kling v2.5 | | keyframe.md | Precise facial expression control with expression-editor | </workflows_index>

<success_criteria>

  • Replicate API token configured (echo $REPLICATE_API_TOKEN shows value)
  • Can run animation script without errors
  • Output video/GIF saved to specified path </success_criteria>
五维分析
清晰度8/10
创新性8/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 多种动画模式满足不同需求
  • AI生成的音频增强视频吸引力
  • 用户友好的设置,说明清晰

缺点

  • 需要设置API令牌,可能成为障碍
  • 不同模型的费用可能累积
  • 输入仅限于静态图像

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 velinussage.