A stable diffusion webservice to enable applications to trigger the generation of Stable diffusion art.
This application is an extension to the Stable Diffusion WebUI application available at https://github.com/AUTOMATIC1111/stable-diffusion-webui. It adds the functionality to create a web service that can be triggered for external applications to perform image generation from text prompts.
To install this application, follow these steps:
- Download or clone this repository.
- Copy the downloaded/clone files to the
extensions
directory of the Stable Diffusion WebUI application. - Enable the extension by checking the enable checkbox in the main interface of the Stable Diffusion WebUI application.
The service will be available at port 9601 after installation.
To call the service, you can do a GET or POST request to /imagine?prompt=<the prompt>&dest_path=<path to destination>
. The prompt
parameter should contain the text prompt for the image you want to generate, and the dest_path
parameter should contain the path to the destination directory where the generated image will be saved.
This application is licensed under the MIT license. See the LICENSE
file for more information.
If you find any bugs or have ideas for new features, feel free to create an issue or submit a pull request on GitHub. We welcome contributions from the community!