A lightweight Photoshop extension that pipes prompts directly to Stable Diffusion (Automatic1111 WebUI) and returns generated images in-app.
bash_photoshop is a Photoshop plugin that brings the power of Stable Diffusion directly into Adobe Photoshop. It connects to a running Stable Diffusion WebUI (Automatic1111) server and allows you to:
- Send prompts directly from Photoshop
- Generate new images
- Run img2img on selected layers
- Replace layers automatically
- Iterate inside your existing workflow
- Avoid constant exporting / importing between apps
This tool was built to streamline AI-assisted illustration, concept art, and texture creation—without ever leaving Photoshop.
Enter a text prompt inside the plugin panel and automatically receive a generated image placed into a new layer.
Select a layer and send it directly to Stable Diffusion WebUI with your chosen parameters (denoise, CFG, steps, sampler, seed, etc.).
Quickly iterate with prompt tweaks or seed variations—all without changing windows.
Fully powered by the Automatic1111 API:
/sdapi/v1/txt2img/sdapi/v1/img2img/sdapi/v1/options
No extra installs needed beyond Photoshop and a running WebUI instance.
To use this plugin, you need:
-
Adobe Photoshop (2021 or newer recommended)
-
Stable Diffusion WebUI by Automatic1111
- Must be running locally
- API enabled
-
Python 3.10+ (if running SD locally)
-
A GPU-supported Stable Diffusion installation (recommended)
If you haven't already installed Automatic1111 WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui
Start it with:
webui-user.bator:
python launch.py --apiMake sure the API is enabled. You should see something like:
Running on local URL: http://127.0.0.1:7860
- Download or clone this repo:
git clone https://github.com/bashfarm/bash_photoshop.git- Copy the plugin folder into your Photoshop extensions directory:
/Applications/Adobe Photoshop*/Plug-ins/
C:\Program Files\Adobe\Adobe Photoshop\Plug-ins\
- Restart Photoshop.
- Go to: Window → Extensions → Bash Photoshop (Stable Diffusion)
Set the API endpoint inside the plugin preferences:
http://127.0.0.1:7860
If you’re running SD on another machine, replace with LAN IP.
- Type your prompt
- Select resolution
- Adjust sampling + steps
- Click Generate
- The plugin will create a new Photoshop layer with the generated output
- Select a layer
- Choose Img2Img Mode
- Adjust denoising strength
- Click Generate
The chosen layer is automatically sent to the WebUI and replaced or duplicated depending on your settings.
Supports full negative prompt control just like Automatic1111.
All core Stable Diffusion settings are available:
- Samplers (Euler, DPM++, etc.)
- Steps
- CFG
- Seed (random or locked)
- Strength
- Restore faces (if enabled in WebUI)
The plugin communicates directly with the Automatic1111 API using HTTP POST requests. It serializes your prompt, settings, and (optionally) the selected Photoshop layer image as base64.
Examples:
txt2img endpoint
POST /sdapi/v1/txt2img
img2img endpoint
POST /sdapi/v1/img2img
Responses are decoded and placed back into Photoshop as layers.
Everything stays local unless your WebUI server is remote.
Make sure:
- You installed the plugin into the Plug-ins folder
- Photoshop was restarted
- You’re using a supported version of Photoshop
Check:
- Stable Diffusion WebUI is running
- You enabled the API (default is enabled)
- URL is correct:
http://127.0.0.1:7860
Ensure:
- Layer is selected
- Layer is rasterized (Smart Objects must be simplified)
- Batch generation
- Layer masking support
- Photoshop selection → SD inpainting
- ControlNet support
- History panel for prompt variations
- Auto-save SD parameters per document
Pull requests welcome! Feel free to open issues for:
- Feature requests
- Bug reports
- API compatibility updates
MIT License — free to use, modify, and integrate into your own workflows.