This is a template to build a text-to-image Discord chat bot using a Stable Diffusion model and the Banana API.
Set your model's environment variables in an .env
file
DISCORD_TOKEN = <YOUR_DISCORD_TOKEN>
BANANA_API_KEY = <YOUR_API_KEY>
BANANA_MODEL_KEY = <YOUR_MODEL_KEY>
npm i
node bot.js
python bot.py
docker build -t img2text .
Then deploy container to Cloud, ex: Google Cloud Run