{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "sgl-project-sglang--generate-images-and-video-with-sglang-diffusion",
 "repo": "sgl-project/sglang",
 "repo_url": "https://github.com/sgl-project/sglang",
 "repo_slug": "sgl-project-sglang",
 "title": "Generate images and video with SGLang Diffusion",
 "page_title": "How to generate images and video with SGLang Diffusion with SGLang",
 "summary": "Use the diffusion engine built into the same package to serve image and video models.",
 "who": "A team that already serves LLMs with SGLang and wants image or video generation on the same stack.",
 "problem": "Running a separate stack for diffusion models doubles the ops work.",
 "outcome": "Image or video generation served from the SGLang package you already run.",
 "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"
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A supported GPU or accelerator (NVIDIA, AMD, TPU and others)",
  "Docker, or a Python environment with uv"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/sgl-project-sglang/generate-images-and-video-with-sglang-diffusion/",
 "md": "https://dedupedai.com/use-cases/sgl-project-sglang/generate-images-and-video-with-sglang-diffusion/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/sgl-project-sglang--generate-images-and-video-with-sglang-diffusion.json",
 "api_version": "v1"
}
