360 Secure SkillHub
360 安全技能中心

SiliconFlow Video Gen

通过 Python 脚本调用 SiliconFlow API 的 Wan2.2 模型生成视频,支持文生视频与图生视频两种模式;API Key 从环境变量或 OpenClaw 配置中读取,属于创意媒体内容生成类技能。

lilei0311
lilei0311
热度 79.13
最近更新 2026-05-11 17:25:45
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:视频编辑 / 图像生成 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add siliconflow-video-gen
Metadata
name
siliconflow-video-gen
description
Generate videos using SiliconFlow API with Wan2.2 model. Supports both Text-to-Video and Image-to-Video.
env
["SILICONFLOW_API_KEY"]
files
{"config":["~/.openclaw/openclaw.json"]}

SiliconFlow Video Generation Skill

Generate videos using SiliconFlow API with Wan2.2 model. Supports both Text-to-Video and Image-to-Video.

Features

  • 🎬 Text-to-Video: Generate videos from text descriptions
  • 🖼️ Image-to-Video: Animate static images with motion
  • 🎥 Cinematic Quality: Powered by Wan2.2 (14B params)
  • 🔑 Auto API Key Detection: Reads from environment or OpenClaw config

Requirements

  • Environment Variable: SILICONFLOW_API_KEY
  • Optional Config File: ~/.openclaw/openclaw.json (for auto-detect)

Installation

npx clawhub install siliconflow-video-gen

Configuration

Set your SiliconFlow API key:

export SILICONFLOW_API_KEY="your-api-key"

Or configure in OpenClaw:

{
  "models": {
    "providers": {
      "siliconflow": {
        "apiKey": "your-api-key"
      }
    }
  }
}

Usage

Text-to-Video

python3 scripts/generate.py "A woman walking in a blooming garden, cinematic shot"

Image-to-Video

python3 scripts/generate.py "Camera slowly zooming in" --image-url https://example.com/image.jpg

Models

Model Type Cost
Wan-AI/Wan2.2-T2V-A14B Text-to-Video ¥2/video
Wan-AI/Wan2.2-T2V-A14B Image-to-Video ¥2/video

Security Notes

  • This skill requires an API key to call SiliconFlow services
  • The script reads ~/.openclaw/openclaw.json only to auto-detect API keys
  • No sensitive data is transmitted except to api.siliconflow.cn
  • Review the code at scripts/generate.py before providing credentials

Author

MaxStorm Team

License

MIT