Skip to content

Simple Discord Bot for interfacing with ComfyUI and/or the Stability AI API for text2image generation using the SDXL model

License

Notifications You must be signed in to change notification settings

eigenpunk/ComfyUI-SDXL-DiscordBot

 
 

Repository files navigation

SDXL-DiscordBot

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.

Support my work

Key Features:

  1. 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.

  2. 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.

  3. Upscale Outputs: Enhance the clarity of generated images by upscaling them. Perfect for when you need higher resolution visuals.

  4. 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.
  5. 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.

Quick Start

1. Download & Extract

2. Configuration

  • Open config.properties using a text editor.
  • Set your Discord bot token: Find [BOT][TOKEN] and replace the placeholder with your token.

3. Choose Your Source

Option A: The Stability AI API

  • 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'.

Option B: Local System via ComfyUI

  • Set your ComfyUI URL: Replace the placeholder in [LOCAL][SERVER_ADDRESS] with your ComfyUI URL (default is 127.0.0.1:8188).
  • Update the source: Change [BOT][SDXL_SOURCE] to 'LOCAL'.
  • Download and add models to ComfyUI:
  • Ensure that ComfyUI is running while the bot is running

4. Run the App

  • 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.

Advanced setup

For more advanced configuration and custom workflows visit the wiki

About

Simple Discord Bot for interfacing with ComfyUI and/or the Stability AI API for text2image generation using the SDXL model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%