SDXL-DiscordBot is a Discord bot designed specifically for image generation using the renowned SDXL 1.0 model. It's inspired by the features of the Midjourney Discord bot, offering capabilities like text-to-image generation, variations in outputs, and the ability to upscale these outputs for enhanced clarity.
-
Text-to-Image Generation: Convert your ideas into visuals. Just type in a positive+negative prompt, and the bot will generate an image that matches your text.
-
Variations on Outputs: Not satisfied with the first image? The bot can produce multiple variations, giving you the freedom to choose the one that fits best.
-
Upscale Outputs: Enhance the clarity of generated images by upscaling them. Perfect for when you need higher resolution visuals.
-
Integration Flexibility:
- Public Stability AI API: For those who prefer a hassle-free setup, the bot can integrate seamlessly with the public Stability AI API. All you need is your API key.
- Local ComfyUI System: For users who prioritize data privacy or want to work offline, the bot can run locally using the ComfyUI system.
-
Custom Workflows with ComfyUI: The bot comes with default configurations that cater to most users. However, if you have specific needs, it supports custom ComfyUI workflows, allowing you to tailor the bot's operations to your exact requirements.
- Download the latest executable suitable for your OS.
- Extract the zip file to your desired location.
- Open
config.properties
using a text editor. - Set your Discord bot token: Find
[BOT][TOKEN]
and replace the placeholder with your token.
- Set your API key: Replace the placeholder in
[API][API_KEY]
with your StabilityAI API key. - Update the source: Change
[BOT][SDXL_SOURCE]
to 'API'.
- Set your ComfyUI URL: Replace the placeholder in
[LOCAL][SERVER_ADDRESS]
with your ComfyUI URL (default is127.0.0.1:8188
). - Update the source: Change
[BOT][SDXL_SOURCE]
to 'LOCAL'. - Download and add models to ComfyUI:
- SDXL 1.0 Base model →
checkpoints
folder - SDXL 1.0 Refiner model →
checkpoints
folder - ESRGAN 2x Upscaler model →
upscale_models
folder
- SDXL 1.0 Base model →
- Ensure that ComfyUI is running while the bot is running
- Double-click on
SDXL-Bot.exe
to launch. - Note for Windows users: If Windows Defender warns about an "unknown publisher", you can safely ignore it. You might also need to whitelist this app in your antivirus software.
For more advanced configuration and custom workflows visit the wiki