AI TEXT TO IMAGE GENERATOR DISCORD TEMPLATE
This template can generate 4 images based on the prompt given by the user on Discord.
This template uses deepai's API to generate images and then uploads to imgurimgur for hosting
then it sends the output in the chat.
- A 60 second cooldown is added to avoid errors.
- 4 buttons are also present to crop from one of the results using JIMP library
- I've added both prefix and slash commands!
!imagine
• /imagine
Setup
You need DeepAI's API Key, Go to this link and scroll down.
And copy the whole quickstart part, that's the api key!
You'll also need Imgur Client ID, Go to this link and create an Imgur application easily. (Select OAuth 2 authorisation without a callback URL
in Select Authorization
option)
Now copy the Client ID and you're done.
When installing this app, you'll be asked to enter these two things.
Set the timeout to 30000ms
Some more images:
- 60 Seconds cooldown to work smoothly.
Thanks
- Autocode for this awesome site and the Autocode community
- DeepAI for creating this cool API
- Imgur for easy image hosting!
You can always ping me on Discord, if you face any problem (@Sea-Deep#7922)
This is my first template!!!