Image generation on Discord

Discord Diffusion

Customizable bot generates images from Discord prompts.

2.6k views 20 saves Freemium
More categories (2)

Free + from $20/mo

Verdict

A quick read before you dig into the full page.

Best if
Customizable bot generates images from Discord prompts
Skip if
Limited to Discord platform
Pick this when
Customizable bot

Overview

Generated by ChatGPT

Discord Diffusion is a fully customizable and easy-to-install Discordbot by Stability AI. It allows users to generate images via Stable Diffusion on their Discord servers.

The bot responds to @Bot your image prompt to generate an image. With the integration of Autocode's API and serverless hosting platform, the bot is editable via Autocode's web editor.

To install Discord Diffusion, users need to link their Discord bot credentials and their Stability AI credentials. To enable the bot to respond to mentions, Privileged Intents must be enabled.

Discord Diffusion makes use of Autocode's built-in Discord event routing to route bot_mention events to a specific file and sends a placeholder message to Discord using the Discord API.

After that, it speaks to Stability AI's API to ask it to generate an image using some default parameters and the prompt the user entered. Finally, it updates the Discord message with the attached image once generated.

To improve the bot, users can play around with different prompts and models via the Stability AI API or connect the Stability AI API to other apps like Twitter, Slack, and Email.

For support, users can visit Autocode's official Discord server or reach out to Autocode directly via e-mail.

Discord Diffusion website

Access & connections

Where you can use Discord Diffusion, and what it plugs into.

Platforms

Web Discord Bot

Integrations

Pros & cons

Pros

  • Customizable bot
  • Generates images from prompts
  • Easy installation
  • Integration with Autocode's API
  • Integration with serverless hosting
  • Editable via web editor
  • Utilizes Autocode's event routing
  • Responds to @Bot mentions
Show 8 more
  • Updates messages with generated images
  • Can improve bot functionality
  • Connect with other APIs/apps
  • Support available via Discord/email
  • Open source
  • Can generate images of any text prompt
  • Bot improves with different prompts/models
  • Autocode has official Discord server

Cons

  • Installation requires linking credentials
  • Reliant on Autocode's platform
  • Requires enabling Privileged Intents
  • Non-responsive without MESSAGE CONTENT intent
  • Requires default image parameters
  • Limited to Discord platform
  • Need Autocode account for installation
  • Editing restricted to Autocode's editor

Releases 1

Initial release January 25, 2023 Current
Initial release of Discord Diffusion.

FAQ 12

What is Discord Diffusion?
Discord Diffusion is a fully customizable and easy-to-install Discord bot developed by Stability AI. It enables image generation via Stable Diffusion right on any Discord server. The bot is fully open source and can be edited via Autocode's web editor. Users can generate images by mentioning the bot with their image prompt.
How does Discord Diffusion generate images?
Discord Diffusion makes use of Stability AI's API to generate images. Once the bot receives an @mention from a user followed by an image prompt, it initially sends a placeholder message via the Discord API indicating the image generation process. Then through Stability AI's API, Discord Diffusion proceeds to generate an image based on the provided image prompt and default parameters. Once the image is generated, the bot updates the placeholder message with the image attached.
What is the Stable Diffusion in Discord Diffusion?
Stable Diffusion is a model utilized in the image generation process. It prompts the Stability AI to generate an image. Different prompts and models can be experimented with through the Stability AI API for possibly diverse and improved image creations.
How to install Discord Diffusion?
To install Discord Diffusion onto a Discord server, the user needs to click on the Install button on the page dedicated to Discord Diffusion. If a user does not have an Autocode account, they'll be asked to create one and will be introduced to Autocode through a walkthrough. After the accounts are linked, the bot will deploy within seconds.
What are the credentials needed for installing Discord Diffusion?
To install Discord Diffusion, users are required to link their Discord bot credentials and their Stability AI credentials. This linking process is essential for successful installation of the bot.
What are Discord Privileged Intents and why are they needed in Discord Diffusion?
Discord Privileged Intents are crucial to enable the Discord bot to respond to mentions. The specific intent needed for the bot to work out-of-the-box is the MESSAGE CONTENT intent. Without enabling the Privileged Intents, the bot will not be able to respond to @mentions.
How to enable Discord Diffusion to respond to mentions?
To enable Discord Diffusion to respond to mentions, Privileged Intents must be enabled on the bot. Particularly, the MESSAGE CONTENT intent is required.
How does Discord Diffusion use Autocode's built-in Discord event routing?
Discord Diffusion uses Autocode's built-in Discord event routing to route bot_mention events to a specific file. This means when the bot is mentioned in any Discord server, an event is triggered and processed in this file.
What is the initial message sent by Discord Diffusion after a mention?
After receiving a mention from a user, Discord Diffusion initially sends a placeholder message via the Discord API on Autocode. This message is intended to inform the user that their image prompt is being processed.
How does Discord Diffusion communicate with Stability AI's API?
Discord Diffusion communicates with Stability AI's API to generate an image using the prompt entered by the user. It sends a request to Stability AI's API and uses some default parameters along with the user's prompt to generate an image. The image generation process is asynchronous, once the image is generated, it is sent back as a response to Discord Diffusion.
How is the image prompt entered by the user processed?
The image prompt entered by the user is processed within the Discord bot_mension.js file. If the message starts with the bot's name, it's removed. The remaining part of the message, which is the user's image prompt, is interpreted and used to request an image from the Stability AI's API.
How does Discord Diffusion update the produced image?
Discord Diffusion updates the produced image by editing the initial placeholder message that it sent via the Discord API on Autocode. This is done using the message update endpoint of Discord's API, where it replaces the placeholder message with the final generated image.
Discord Diffusion Free + from $20/mo