Skip to content

Install A1111 (SD WebUI) ​

AUTOMATIC1111 (often A1111 / SD WebUI) provides a browser UI and REST API (/sdapi/v1/txt2img).
MiniTavern’s A1111(SD WebUI) platform talks to this API; SD.Next and similar protocols may also work.

Official repo: AUTOMATIC1111/stable-diffusion-webui

Hardware tips ​

VRAMSuggestion
6GBSD 1.5, smaller resolutions
8GB+SDXL more comfortable
CPU onlyPossible but very slow — path check only

1. Install dependencies ​

  1. Install Git for Windows.
  2. Install Python 3.10.x (check Add python.exe to PATH).
  3. Prefer a recent NVIDIA driver if you have an NVIDIA GPU.

2. Download WebUI ​

In a suitable folder (e.g. D:\AI) open PowerShell:

powershell
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui

3. First launch ​

Double-click or run in a terminal:

powershell
.\webui-user.bat

First run downloads dependencies and base components (takes a while). Then the browser usually opens:

text
http://127.0.0.1:7860

4. Enable API + LAN (required for phone) ​

Edit webui-user.bat in the same folder. Find COMMANDLINE_ARGS and set e.g.:

bat
set COMMANDLINE_ARGS=--api --listen
FlagRole
--apiEnable /sdapi/v1/* (required by MiniTavern)
--listenListen on 0.0.0.0 for LAN devices
--port 7860Optional; change port in the App too

Save and re-run webui-user.bat.

Optional: --api-auth user:password for API auth; if enabled, fill API Key / auth fields in the App image link as the current UI requires.

5. Verify the API ​

On the PC browser:

text
http://127.0.0.1:7860/docs

Swagger docs mean the API is on. LAN check (replace with PC IP):

text
http://192.168.x.x:7860/docs

macOS / Linux summary ​

bash
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui

Edit webui-user.sh:

bash
export COMMANDLINE_ARGS="--api --listen"

Then ./webui.sh. Apple Silicon works; usually slower than similar NVIDIA.

Download models (Checkpoint) ​

  1. Download .safetensors from Civitai or Hugging Face.
  2. Place in:
text
stable-diffusion-webui/models/Stable-diffusion/
  1. Refresh and pick the model in the WebUI top-left, or restart WebUI.

Start with a common SD 1.5 or SDXL model; confirm manual generation in WebUI before connecting the App.

Multiple reference images ​

With one reference image, the App uses img2img: the identity image is preferred as init. No extra extension is required.

With two or more, the first image is still the img2img init. The rest go through ControlNet reference_only (no separate ControlNet model). Install the extension, then restart WebUI:

  1. Open WebUI and go to Extensions → Install from URL.
  2. Install this repository:
text
https://github.com/Mikubill/sd-webui-controlnet
  1. On Installed, confirm it is enabled, then restart WebUI.
  2. On the phone, open http://PC_IP:7860 and confirm the page loads.
  3. Return to MiniTavern, test the connection, then generate.

Stable Diffusion WebUI Forge usually already includes ControlNet. A single reference image does not need the extension.

If several references fail because the ControlNet script is missing, the extension is not installed or WebUI was not restarted.

Firewall ​

Windows: allow Private network access on first listen, or open port 7860.
Phone and PC must share a LAN; guest Wi‑Fi often isolates clients.

Next ​