🎬 SGLang-Diffusion Video Generation — 技能工具
v1.0.2Generate videos using a local SGLang-Diffusion server (Wan2.2, Hunyuan, FastWan, etc.). 适用于: user asks to generate, create, or render a video with a loc...
0· 278·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidenceThe skill's code, runtime instructions, and requirements are consistent with its stated purpose (generating video via a local SGLang‑Diffusion server) and it does not request disproportionate credentials or install actions.
评估建议
This skill appears to be what it says: a Python script that talks to a SGLang‑Diffusion server to generate videos. Before installing or running it: (1) ensure the server URL you use is local or trusted (by default it is http://127.0.0.1:30000); (2) protect any API key you set in SGLANG_DIFFUSION_API_KEY or the CLI, and avoid pasting it into public places; (3) do not pass sensitive images via --input-image since the script base64-encodes and uploads them to the configured server; (4) generated fi...详细分析 ▾
✓ 用途与能力
Name/description match the included script: the skill only requires python3 and talks to a local SGLang‑Diffusion server (default http://127.0.0.1:30000). No unrelated binaries, cloud credentials, or system paths are requested.
ℹ 指令范围
SKILL.md and the script instruct the agent to POST prompts and (optionally) base64 input images to the configured SGLang server, poll status, download the resulting MP4, and print a MEDIA: line for auto-attachment. This is appropriate for the purpose, but it means any server URL you point it at will receive your prompt and any provided input image — do not point to untrusted remote servers or supply sensitive files as input images.
✓ 安装机制
No install spec is provided (instruction-only with one included script). Nothing is downloaded or written to disk by an installer; risk is limited to running the provided Python script.
✓ 凭证需求
Only an optional SGLANG_DIFFUSION_API_KEY is referenced (used when the server enforces an API key). No unrelated secrets or multiple unrelated environment variables are requested.
✓ 持久化与权限
always is false and the skill does not request persistent/privileged platform presence or modify other skills. It only runs when invoked.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.22026/3/16
- Added --seconds and --fps options for setting video duration and frame rate via the CLI. - Updated usage examples in documentation to show new --seconds and --fps flags.
● 无害
安装命令 点击复制
官方npx clawhub@latest install sglang-diffusion-video
镜像加速npx clawhub@latest install sglang-diffusion-video --registry https://cn.clawhub-mirror.com
技能文档
Generate videos via a local SGLang-Diffusion server's OpenAI-compatible API.
Video generation is asynchronous and takes several minutes. The script handles submission, polling, and download automatically.
Prerequisites
- SGLang-Diffusion server running a video model (default:
http://127.0.0.1:30000) - Supported models: Wan2.2-T2V, Wan2.2-I2V, FastWan, Hunyuan
- If the server was started with
--api-key, setSGLANG_DIFFUSION_API_KEYenv var
Generate a video
python3 {baseDir}/scripts/generate_video.py --prompt "a curious raccoon exploring a garden"
Useful flags
python3 {baseDir}/scripts/generate_video.py --prompt "ocean waves at sunset" --size 1280x720
python3 {baseDir}/scripts/generate_video.py --prompt "city timelapse" --negative-prompt "blurry, low quality"
python3 {baseDir}/scripts/generate_video.py --prompt "dancing robot" --steps 50 --guidance-scale 7.5 --seed 42
python3 {baseDir}/scripts/generate_video.py --prompt "flying through clouds" --seconds 8 --fps 24 --out ./my-video.mp4
python3 {baseDir}/scripts/generate_video.py --prompt "flying through clouds" --server http://192.168.1.100:30000 --out ./my-video.mp4
python3 {baseDir}/scripts/generate_video.py --prompt "cat playing" --poll-interval 15 --timeout 1800
python3 {baseDir}/scripts/generate_video.py --prompt "animate this scene" --input-image /tmp/scene.png
API key (optional)
Only needed if the SGLang-Diffusion server was started with --api-key.
Set SGLANG_DIFFUSION_API_KEY, or pass --api-key directly:
python3 {baseDir}/scripts/generate_video.py --prompt "hello" --api-key sk-my-key
Or configure in ~/.openclaw/openclaw.json:
{
skills: {
"sglang-diffusion-video": {
env: { SGLANG_DIFFUSION_API_KEY: "sk-my-key" },
},
},
}
Notes
- The script prints a
MEDIA:line for OpenClaw to auto-attach on supported chat providers. - Output defaults to timestamped MP4 in
/tmp/. - Video generation typically takes 5-15 minutes depending on GPU and model size.
- Do not read the video back; report the saved path only.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制