The SuperAGI Image Generation Tool helps you generate an image with a prompt using DALL-E.
Set up the SuperAGI by following the instructions given (https://github.com/TransformerOptimus/SuperAGI/blob/main/README.MD)
If you've put the correct OpenAI key during the installation, you'd be able to use the Image Generation tool as well.
You can simply put one of the goals of your agent to create an image and the agent will pick up the Image Generation Tool and will place it in the Output folder of the Resource Manager, from where you'll be able to download it.