A Discord bot interface for Stable Diffusion
- Set up AUTOMATIC1111's Stable Diffusion AI Web UI.
- AIYA is currently tested on commit
685f9631b56ff8bd43bce24ff5ce0f9a0e9af490
of the Web UI.
- AIYA is currently tested on commit
- Run the Web UI as local host with api (
COMMANDLINE_ARGS= --listen --api
). - Clone this repo.
- Create a text file in your cloned repo called ".env", formatted like so:
# .env
TOKEN = put your bot token here
- Run AIYA by running launch.bat (or launch.sh for Linux)
To generate an image from text, use the /draw command and include your prompt as the query.
- negative prompts
- swap model/checkpoint (see wiki)
- sampling steps
- width/height (up to 1024)
- CFG scale
- sampling method
- seed
- img2img
- denoising strength
- batch count
- Web UI styles
- face restoration
- high-res fix
- CLIP skip
- /settings command - set per-server defaults for the following (see Notes!):
- negative prompts
- model/checkpoint
- sampling steps / max steps
- sampling method
- batch count / max batch count
- CLIP skip
- /identify command - create a caption for your image.
- /stats command - shows how many /draw commands have been used.
- /tips command - basic tips for writing prompts.
- /upscale command - resize your image.
- buttons - certain outputs will contain buttons.
- ๐ - edit prompt, then generate a new image with same parameters.
- ๐ฒ - randomize seed, then generate a new image with same parameters.
- ๐ - view the generated image's information.
- โ - deletes the generated image.
- Ensure AIYA has
bot
andapplication.commands
scopes when inviting to your Discord server, and intents are enabled. - As /settings can be abused, consider reviewing who can access the command. This can be done through Apps -> Integrations in your Server Settings.
- See wiki for optional .env variables you can set.
- See wiki for notes on swapping models.
AIYA only exists thanks to these awesome people:
- AUTOMATIC1111, and all the contributors to the Web UI repo.
- harubaru, my entryway into Stable Diffusion (with Waifu Diffusion) and foundation for the AIYA Discord bot.
- gingivere0, for PayloadFormatter class for the original API. Without that, I'd have given up from the start. Also has a great Discord bot as a no-slash-command alternative.
- You, for using AIYA and contributing with PRs, bug reports, feedback, and more!