← 返回
内容创作 中文

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...
使用本地SGLang-Diffusion服务器生成视频(Wan2.2、Hunyuan、FastWan等)。适用场景:用户请求生成、创建或渲染视频时...
jiangyukunok
内容创作 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 678
下载
💾 20
安装
1
版本
#latest

概述

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, set SGLANG_DIFFUSION_API_KEY env 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.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 01:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,075
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,203
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,492