← Back to Skills Marketplace
jiangyukunok

SGLang-Diffusion Video Generation

by jiangyukunok · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
374
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install sglang-diffusion-video
Description
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...
README (SKILL.md)

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.
Usage Guidance
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 files default to /tmp and the script prints a MEDIA: line which some chat integrations may auto-attach—be mindful of where outputs are posted. Overall the skill is internally consistent and proportional to its stated purpose.
Capability Analysis
Type: OpenClaw Skill Name: sglang-diffusion-video Version: 1.0.2 The skill bundle provides a legitimate utility for generating videos using a local SGLang-Diffusion server. The Python script (scripts/generate_video.py) uses standard libraries to interact with an OpenAI-compatible API, supporting features like image-to-video via base64 encoding and asynchronous polling. There are no signs of malicious intent, obfuscation, or unauthorized data exfiltration; all file and network operations are directly related to the stated purpose of video generation and are controlled by user-provided arguments.
Capability Assessment
Purpose & Capability
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.
Instruction Scope
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.
Install Mechanism
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.
Credentials
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.
Persistence & Privilege
always is false and the skill does not request persistent/privileged platform presence or modify other skills. It only runs when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install sglang-diffusion-video
  3. After installation, invoke the skill by name or use /sglang-diffusion-video
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- 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.
v1.0.1
- Migrated script from scripts/generate.py to scripts/generate_video.py for clarity and focus on video generation. - The core functionality and usage remain unchanged; update your calls to use generate_video.py instead.
v1.0.0
- Initial release of sglang-diffusion-video skill for local video generation. - Supports multiple SGLang-Diffusion models (Wan2.2, Hunyuan, FastWan, etc.). - Handles asynchronous job submission, polling, and video download from a local server. - Provides command-line usage instructions and flag options for prompt, model, server, and output settings. - API key support for servers running with authentication. - Designed exclusively for locally hosted video models, not for cloud APIs or image generation.
Metadata
Slug sglang-diffusion-video
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 374 downloads so far.

How do I install SGLang-Diffusion Video Generation?

Run "/install sglang-diffusion-video" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is SGLang-Diffusion Video Generation free?

Yes, SGLang-Diffusion Video Generation is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does SGLang-Diffusion Video Generation support?

SGLang-Diffusion Video Generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created SGLang-Diffusion Video Generation?

It is built and maintained by jiangyukunok (@jiangyukunok); the current version is v1.0.2.

💬 Comments