# Stable Diffusion Web UI - Setup

**URL:** <https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719>\
**Category:** Need help\
**Created:** [April 3, 2024, 12:05pm UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719 "2024-04-03T12:05:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmniGnostiC](https://community.activepieces.com/user_avatar/community.activepieces.com/omnignostic/32/1959_2.png) [@OmniGnostiC](https://community.activepieces.com/u/OmniGnostiC)\
**Post date:** [April 3, 2024, 12:05pm UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/1 "2024-04-03T12:05:48Z")

</div>

Hi Team,

I am trying to setup my connection for StableDiffusion WebUI with no luck, specifically the Stable Diffusion Web UI API Base URL. Any help would be appreciated.

Thanks,  
OG

---

<div class="post-metadata">

**Author:** ![abuaboud](https://community.activepieces.com/user_avatar/community.activepieces.com/abuaboud/32/7285_2.png) [@abuaboud](https://community.activepieces.com/u/abuaboud)\
**Post date:** [April 3, 2024, 11:50pm UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/2 "2024-04-03T23:50:03Z")

</div>

Hi @OmniGnostiC

Can you explain more where you stuck?

---

<div class="post-metadata">

**Author:** ![OmniGnostiC](https://community.activepieces.com/user_avatar/community.activepieces.com/omnignostic/32/1959_2.png) [@OmniGnostiC](https://community.activepieces.com/u/OmniGnostiC)\
**Post date:** [April 4, 2024, 12:39am UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/3 "2024-04-04T00:39:38Z")

</div>

More specifically I am not sure what the connection string is.

---

<div class="post-metadata">

**Author:** ![OmniGnostiC](https://community.activepieces.com/user_avatar/community.activepieces.com/omnignostic/32/1959_2.png) [@OmniGnostiC](https://community.activepieces.com/u/OmniGnostiC)\
**Post date:** [April 15, 2024, 4:04am UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/4 "2024-04-15T04:04:55Z")

</div>

Anyone? Trying to connect to Modelslab and nothing is working.

---

<div class="post-metadata">

**Author:** ![OmniGnostiC](https://community.activepieces.com/user_avatar/community.activepieces.com/omnignostic/32/1959_2.png) [@OmniGnostiC](https://community.activepieces.com/u/OmniGnostiC)\
**Post date:** [April 20, 2024, 6:22am UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/5 "2024-04-20T06:22:49Z")

</div>

@abuaboud still struggling with this any idea on what the URL is?

---

<div class="post-metadata">

**Author:** ![abuaboud](https://community.activepieces.com/user_avatar/community.activepieces.com/abuaboud/32/7285_2.png) [@abuaboud](https://community.activepieces.com/u/abuaboud)\
**Post date:** [April 20, 2024, 11:09pm UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/6 "2024-04-20T23:09:18Z")

</div>

Hi, it’s just the base URL. When you run it locally for example the URL is `http://127.0.0.1:7860` in this example without a trailing slash."

It’s the url before /sdapi/v1/sd-models, If i understand correctly from piece.

> **[API](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API)**
>
> Stable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![GunnerJnr](https://community.activepieces.com/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@GunnerJnr](https://community.activepieces.com/u/GunnerJnr)\
**Post date:** [April 24, 2024, 3:05pm UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/7 "2024-04-24T15:05:26Z")

</div>

Make sure when launching you enable the api using the `--api` command line arg, and if you are having trouble with using `localhost` or your `ip address` you can use the `--share` command, this will create a `live` link that allows you to access it on the web or share the link with others to access it.

To do this, go to the `webui-user.bat` file in the `root directory` and change the `'set COMMANDLINE_ARGS='` line to include `--share`, e.g., `set COMMANDLINE_ARGS=--share`

I would also recommend using the `--gradio-auth` option as well, so no one can log into your public-facing web app:

`set COMMANDLINE_ARGS=--share --gradio-auth username:password`

This just helps to make the share links a bit more secure by forcing the use of a username and password for access, which will help you keep it a bit more protected from random people accessing the link and generating pictures with it (which of course will be stored on your PC). For more info, see this page:

> **[Command Line Arguments and Settings](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings)**
>
> Stable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.

If you just want to keep it local to your network, then you can try the `--listen` arg instead of `--share`. Listen will launch Gradio with IP 0.0.0.0 which will make Gradio listen to other computers on the LAN. Then you can fire up the UI with the computer’s IP:7860 (or other port if you changed it) in a browser on any computer on the LAN.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![OmniGnostiC](https://community.activepieces.com/user_avatar/community.activepieces.com/omnignostic/32/1959_2.png) [@OmniGnostiC](https://community.activepieces.com/u/OmniGnostiC)\
**Post date:** [May 1, 2024, 10:49am UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/8 "2024-05-01T10:49:01Z")

</div>

Thank you for the help

---

<div class="post-metadata">

**Author:** ![system](https://community.activepieces.com/uploads/default/original/1X/f3af8cd75e0cc52ac7f19a3b45663ce0396f5016.png) [@system](https://community.activepieces.com/u/system)\
**Post date:** [May 16, 2024, 10:49am UTC](https://community.activepieces.com/t/stable-diffusion-web-ui-setup/3719/9 "2024-05-16T10:49:25Z")

</div>

Closed on May 16, 2024, 10:49am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
