← Back to Skills Marketplace
SGLang-Diffusion Image Generation
by
jiangyukunok
· GitHub ↗
· v1.0.1
· MIT-0
496
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install sglang-diffusion
Description
Generate images using a local SGLang-Diffusion server (FLUX, Stable Diffusion, Qwen-Image, etc.). Use when: user asks to generate, create, draw, or render an...
Usage Guidance
This skill is a small, coherent helper for a local SGLang-Diffusion server. Before installing or using it, ensure you trust the server you point it at (default is localhost). Only set SGLANG_DIFFUSION_API_KEY if the server requires it and you trust the host; do not provide secrets for unrelated services. Be aware the script will write images to /tmp by default or to any --out path you provide.
Capability Analysis
Type: OpenClaw Skill
Name: sglang-diffusion
Version: 1.0.1
The sglang-diffusion skill is a straightforward implementation for generating images via a local SGLang-Diffusion server. The Python script (generate.py) uses standard libraries to send POST requests to an OpenAI-compatible API endpoint and saves the base64-encoded response as a PNG file. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description match the included script and required binary (python3). The script only implements OpenAI-compatible image generation calls to a SGLang-Diffusion server; no unrelated services, credentials, or binaries are requested.
Instruction Scope
SKILL.md instructs the agent to run the bundled Python script and optionally set SGLANG_DIFFUSION_API_KEY. The script only posts prompts to the configured /v1/images/generations endpoint and writes the returned image to disk. Note: the server URL is user-controllable (defaults to localhost) so prompts and optional API key may be sent to any server the user specifies.
Install Mechanism
No install spec is provided (instruction-only plus a small included script). No remote downloads or package installs are performed by the skill itself.
Credentials
The skill declares no required env vars but supports an optional SGLANG_DIFFUSION_API_KEY (documented in SKILL.md and read by the script). This is proportionate to the purpose; users should only provide an API key for servers they trust.
Persistence & Privilege
The skill does not request permanent inclusion (always:false), does not modify other skills or system-wide settings, and only writes image files to a user-specified path or /tmp by default.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sglang-diffusion - After installation, invoke the skill by name or use
/sglang-diffusion - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Added new script: scripts/generate.py for image generation via the SGLang-Diffusion server.
- Updated documentation to use the new generate.py script instead of curl commands.
- Clarified usage instructions, prerequisites, and API key handling.
- Provided example command-line usages with common parameters.
- Noted OpenClaw integration features and output file handling.
v1.0.0
Initial release of sglang-diffusion skill.
- Enables image generation via a local SGLang-Diffusion server (supports FLUX, Qwen-Image, etc.)
- Requires the SGLang-Diffusion server and API key to be set up locally.
- Provides command instructions for generating and saving images.
- Supports optional generation parameters: negative prompt, inference steps, guidance scale, and seed.
Metadata
Frequently Asked Questions
What is SGLang-Diffusion Image Generation?
Generate images using a local SGLang-Diffusion server (FLUX, Stable Diffusion, Qwen-Image, etc.). Use when: user asks to generate, create, draw, or render an... It is an AI Agent Skill for Claude Code / OpenClaw, with 496 downloads so far.
How do I install SGLang-Diffusion Image Generation?
Run "/install sglang-diffusion" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is SGLang-Diffusion Image Generation free?
Yes, SGLang-Diffusion Image Generation is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does SGLang-Diffusion Image Generation support?
SGLang-Diffusion Image Generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created SGLang-Diffusion Image Generation?
It is built and maintained by jiangyukunok (@jiangyukunok); the current version is v1.0.1.
More Skills