
Image generation
web-stable-diffusion
Stable Diffusion running entirely inside the browser
★ 3.7k
March 2024
Apache-2.0
Image generation
What it does
Puts image generation in the browser with no server involved — prompts and outputs never leave the device — which was a first when it shipped and remains an interesting demonstration of what WebGPU can carry. There is a hosted demo page. Development stopped in March 2024, so quality reflects that era's models, and it depends heavily on browser support and local GPU capability. Worth trying for the idea; use a maintained tool for actual work. Apache-2.0.
Summary based on the project's own description. The Japanese page has a fuller beginner guide: setup difficulty, what to prepare, and a step-by-step start.
Screenshots & visuals

Before you start
- Setup difficultyFor advanced users
- Command lineRequired
- API keyNot required
- Sends data onlineNo
Judged automatically from the project's own metadata. Always confirm on the official page.
web-stable-diffusion FAQ
- Is web-stable-diffusion free?
- Yes. It runs on your own machine, so there is no usage-based cost either.
- Do I need to install anything or write code to use web-stable-diffusion?
- It needs the command line. If you are not comfortable typing commands, expect to get stuck during setup.
- Does web-stable-diffusion work on a phone?
- No. It needs a computer.
- Can I use web-stable-diffusion commercially?
- The licence is Apache-2.0, which permits commercial use. Conditions such as keeping the copyright notice still apply, so read the licence text before shipping it inside something.
How it compares
The conditions that decide whether you can actually use it, side by side.
| Tool | Command line | API key | Sends data out | Phone | Commercial use |
|---|---|---|---|---|---|
| web-stable-diffusion (this page) | Required | Not needed | No | No | Yes |
| bonsai-image-webgpu | Not needed | Not needed | Yes | No | Yes |
| remove-background-webgpu | Not needed | Not needed | Yes | No | No |
| Stable Diffusion web UI | Required | Not needed | No | No | Yes |
"Sends data out" means your input is uploaded to someone's server. Pick "No" when the material cannot leave your organisation.