# 🍌 Stable Diffusion WebUI for banana (Stable Diffusion 1.5) Deploy an API for AUTOMATIC1111's [Stable Diffusion WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) to generate images with **Stable Diffusion 1.5**. Supports features not available in other Stable Diffusion templates, such as: * [Prompt emphasis](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#attentionemphasis) * [Prompt editing](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#prompt-editing) * [Unlimited prompt length](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#infinite-prompt-length) This deployment provides an API only and does not include the WebUI's user interface. Please report any issues you encounter. ## Instant Deploy [See how to deploy in seconds](https://app.banana.dev/templates/patienceai/stable-diffusion-1.5-automatic1111). ## Model Inputs ### txt2img example ``` { "endpoint": "txt2img", "params": { "prompt": "an astronaut riding a (horse:motorcycle:0.5) on the moon", "negative_prompt": "cartoonish, low quality", "steps": 25, "sampler_name": "Euler a", "cfg_scale": 7.5, "seed": 42, "batch_size": 1, "n_iter": 1, "width": 512, "height": 512, "tiling": false } } ``` (Only `prompt` is required.) Output: ``` { "images": [ "" ] } ``` ### img2img example ``` { "endpoint": "img2img", "params": { "prompt": "an astronaut riding a horse on the moon in anime style", "negative_prompt": "cartoonish, low quality", "steps": 25, "sampler_name": "Euler a", "cfg_scale": 7.5, "denoising_strength": 0.7, "seed": 42, "batch_size": 1, "n_iter": 1, "width": 512, "height": 512, "tiling": false "init_images": [ "" ] } } ``` (Only `prompt` and `init_images` are required.) Output: ``` { "images": [ "" ] } ```