Python Discord bot for using OpenAI's image generator DALL-E
- A discord application and bot user
- An OpenAI account with a set up payment plan
- openai
- discord
-
YOUR_DISCORD_SERVER_ID_HERE
-
YOUR_DISCORD_BOT_API_KEY_HERE
-
YOUR_OPENAI_ORGANIZATION_ID_HERE
-
YOUR_OPENAI_API_KEY_HERE
Now you can invite your bot to your server. It needs message and editing permissions. Then run main.py.
- You can use the command /claude [your prompt]
- Claude will generate an image using OpenAI and will return it as an embedded link.
- You can put in 256x256, 512x512 or 1024x1024 anywhere inside your prompt to specify the image's resolution.
- Please see OpenAI's pricing about the cost of generating each image.