AI Image Generation for Discord

Transform text prompts into stunning visuals directly in your Discord server using the power of Stable Diffusion

Try It Now!

Features

A complete suite of AI image generation tools integrated directly into your Discord server

Text-to-Image

Generate high-quality images from text prompts with customizable parameters including aspect ratio, detail steps, and CFG scale.

🔄

Image-to-Image

Transform existing images by simply uploading them with a description of your desired changes. No command needed!

⚙️

Model Selection

Choose from different Stable Diffusion models to get the perfect style for your specific generation needs.

🔍

One-Click Upscaling

Enhance the resolution of generated images with ESRGAN technology for higher quality results.

🎭

Image Variations

Create multiple variations of generated images with simple controls to explore different creative directions.

📝

Prompt Library

Access a collection of example prompts to help inspire your creations and improve your results.

Commands

Simple set of commands to unleash your creativity

Command Description Example
/imagine Generate 4 images from a text prompt with optional parameters /imagine prompt: mountain landscape aspect: 16:9 steps: 30 cfg: 7
/models View and select different Stable Diffusion models /models
/negative View or update the negative prompt used in generation /negative
/resolution Set the resolution for generated images /resolution
/prompt Get example prompts to inspire your creations /prompt
/help Display available commands and features /help

Quick Setup

Get up and running in minutes

1

Prerequisites

Make sure you have the following:

  • Python 3.8 or higher
  • Discord Bot Token
  • Stable Diffusion WebUI with API enabled
2

Clone Repository

Get the bot code from GitHub:

git clone https://github.com/paolowu5/stable-diffusion-discord-bot.git
cd stable-diffusion-discord-bot
3

Install Dependencies

Install the required Python packages:

pip install -r requirements.txt
4

Configure Bot

Edit CONFIG/config.py with your Discord token and API URL:

TOKEN = "YOUR_DISCORD_BOT_TOKEN"
url = "http://127.0.0.1:7860"
5

Start Stable Diffusion

Launch Stable Diffusion WebUI with API enabled:

python launch.py --api
6

Launch the Bot

Start the Discord bot:

python main.py