Who it is forA team that already serves LLMs with SGLang and wants image or video generation on the same stack.
The problemRunning a separate stack for diffusion models doubles the ops work.
The outcomeImage or video generation served from the SGLang package you already run.
What you need first
- A supported GPU or accelerator (NVIDIA, AMD, TPU and others)
- Docker, or a Python environment with uv
Steps
- Install SGLang (the diffusion engine is included in the Python package)
- Follow the SGLang Diffusion installation guide
- Launch a diffusion model and send a generation request
Prompt for your agent
Using sgl-project/sglang's built-in SGLang Diffusion, serve <diffusion model> on this GPU and generate one test image from <prompt>. Report memory use and time per image.
Caveat.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for sgl-project/sglang and "Generate images and video with SGLang Diffusion"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer