Wiseflow siliconflow-video-gen
Generate videos via SiliconFlow Video API. Supports text-to-video (T2V) and image-to-video (I2V) using Wan2.2 models. Async: submit job → poll until done → download.
install
source · Clone the upstream repo
git clone https://github.com/TeamWiseFlow/wiseflow
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TeamWiseFlow/wiseflow "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/siliconflow-video-gen" ~/.claude/skills/teamwiseflow-wiseflow-siliconflow-video-gen && rm -rf "$T"
manifest:
skills/siliconflow-video-gen/SKILL.mdsource content
SiliconFlow Video Gen
Generate videos using the SiliconFlow Video API (Wan2.2 models).
Video generation is asynchronous: the API returns a
requestId immediately, then the script polls the status endpoint until the job completes (status: Succeed).
The generated video URL is valid for 1 hour. The script downloads the video locally automatically.
Run
Note: Video generation typically takes 1–5 minutes. Set exec timeout accordingly (e.g.,
exec timeout=600).
# Text-to-video python3 {baseDir}/scripts/gen.py --prompt "a dolphin leaping over ocean waves at sunset" # Image-to-video (provide a public URL or local base64 image) python3 {baseDir}/scripts/gen.py \ --model "Wan-AI/Wan2.2-I2V-A14B" \ --prompt "the camera slowly zooms out" \ --image "https://example.com/my-photo.jpg" # Custom resolution and output directory python3 {baseDir}/scripts/gen.py \ --prompt "time-lapse of a blooming flower" \ --image-size 720x1280 \ --out-dir ./out/videos # Reproducible generation with a fixed seed python3 {baseDir}/scripts/gen.py --prompt "rocket launch" --seed 42
Parameters
| Flag | Default | Description |
|---|---|---|
| required | Text description of the video |
| | Model ID: (T2V) or (I2V) |
| — | Image URL or (required for I2V model) |
| | Resolution: (16:9), (9:16), (1:1) |
| — | What to avoid in the video |
| — | Random seed for reproducibility |
| | Seconds between status polls |
| | Max seconds to wait for generation |
| | Output directory |
Models
| Model | Type | Notes |
|---|---|---|
| Text → Video | Default model |
| Image → Video | Requires parameter |
Output
downloaded locallyvideo_<requestId>.mp4
with full API responseresult.json
Environment Variables
| Variable | Description |
|---|---|
| Your SiliconFlow API key (required) |