/stablediffusion-discord-bot-a1111

Simple discord bot that uses AUTOMATIC1111's WebUI to generate images.

Primary LanguagePython

Discord bot for Stable Diffusion using AUTOMATIC1111's WebUI API

Simple to use discord bot that uses AUTOMATIC1111's massively popular WebUI to generate images.

Usage instructions

  • Make sure to add --api to WebUI's commandline args.
  • Configure settings in configuration.ini
  • Run WebUI
  • Run start_bot
  • Use /txt2img or /img2img commands
    Example
    txt2img
    img2img

Configuration

Most of these are self explanatory. Don't use quotation marks.
For now, model swapping is done through the WebUI, like you normally would.
positive_prompt gets added to the beginning on your prompt. Negative prompt gets sent separately.

Troubleshooting

For errors during image generation, check response.json