Install a local Stable Diffusion WebUI on your own machine and connect it to PCToolsOnline to generate and edit images right in your browser. All processing happens on your GPU — nothing is uploaded.
| Component | Minimum | Recommended |
|---|---|---|
| GPU | 4 GB VRAM (NVIDIA/AMD) or Apple M1 | 8+ GB VRAM (NVIDIA RTX 3060 or better) / M1 Pro |
| RAM | 8 GB | 16+ GB |
| Disk | 10 GB free | 30+ GB (each checkpoint is 2–7 GB) |
| OS | macOS 12+, Windows 10/11, Linux (Ubuntu 22+) | |
| Python | Python 3.10. The installer will set it up if needed. | |
PCToolsOnline talks to any server that speaks the A1111-compatible REST API. The two most popular choices:
| WebUI | Repo | Notes |
|---|---|---|
| AUTOMATIC1111 WebUI | GitHub | Original, battle-tested, huge community. Good default choice. |
| Forge | GitHub | Fork of A1111 with speed optimizations. Lower VRAM usage. Same API. |
The instructions below use A1111. For Forge, replace the repo URL and folder name — everything else is identical.
# Clone the repo
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
# First launch: it installs Python deps automatically (~5 min)
./webui.sh --api --cors-allow-origins="*" --listen
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
webui-user.bat
Running on local URL: http://127.0.0.1:7860, close it and relaunch with the API flags (see next step).The WebUI needs at least one model file (a .safetensors checkpoint). Popular choices for beginners:
| Model | Size | Style | Link |
|---|---|---|---|
| Stable Diffusion 1.5 | ~4.3 GB | General purpose, very compatible | Hugging Face |
| Stable Diffusion XL (SDXL) | ~6.9 GB | Higher resolution (1024px), more detail | Hugging Face |
| Realistic Vision v6 | ~2 GB | Photorealistic portraits & scenes | CivitAI |
Download the .safetensors file and place it in:
stable-diffusion-webui/models/Stable-diffusion/
--api exposes the REST endpoints that our page uses.
--cors-allow-origins lets the browser send cross-origin requests from pctoolsonline.com to localhost.
cd stable-diffusion-webui
./webui.sh --api --cors-allow-origins="*" --listen
Edit webui-user.bat and change the COMMANDLINE_ARGS line:
set COMMANDLINE_ARGS=--api --cors-allow-origins=* --listen
Then double-click webui-user.bat to launch.
./webui.sh --api --cors-allow-origins="https://pctoolsonline.com" --listen
After startup you should see:
Running on local URL: http://0.0.0.0:7860
Open http://localhost:7860 in a browser tab to verify the WebUI loads. You can use that UI independently, but our page only needs the API.
http://localhost:7860.Running on local URL.--api and --cors-allow-origins. Without --api, the REST endpoints don't exist. Without CORS, the browser silently drops the response.http://localhost:7860/docs in a new tab. You should see the FastAPI docs page. If not, the WebUI isn't running or the port is wrong.models/Stable-diffusion/. See step 4.Using CPU in the terminal, the WebUI didn't detect a compatible GPU.nvidia-smi works.--use-rocm.xcode-select --install).--medvram or --lowvram flags when launching the WebUI.low quality, blurry, watermark, text.# Default (API + CORS + listen on all interfaces)
./webui.sh --api --cors-allow-origins="*" --listen
# Low VRAM (4 GB GPU)
./webui.sh --api --cors-allow-origins="*" --listen --medvram
# Very low VRAM (3 GB GPU)
./webui.sh --api --cors-allow-origins="*" --listen --lowvram
# SDXL with xformers (faster, needs xformers installed)
./webui.sh --api --cors-allow-origins="*" --listen --xformers