SGLang-Diffusion Video Generation
/install sglang-diffusion-video
SGLang-Diffusion Video Generation
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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sglang-diffusion-video - 安装完成后,直接呼叫该 Skill 的名称或使用
/sglang-diffusion-video触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
SGLang-Diffusion Video Generation 是什么?
Generate videos using a local SGLang-Diffusion server (Wan2.2, Hunyuan, FastWan, etc.). Use when: user asks to generate, create, or render a video with a loc... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 374 次。
如何安装 SGLang-Diffusion Video Generation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sglang-diffusion-video」即可一键安装,无需额外配置。
SGLang-Diffusion Video Generation 是免费的吗?
是的,SGLang-Diffusion Video Generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
SGLang-Diffusion Video Generation 支持哪些平台?
SGLang-Diffusion Video Generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 SGLang-Diffusion Video Generation?
由 jiangyukunok(@jiangyukunok)开发并维护,当前版本 v1.0.2。