OpenAI's image generation model
DALL-E provides image generation.
Use DALL-E from Python to generate images whenever you need them.
Let your Agent decide to return an image on its own by wrapping the DALL-E integration in a Tool. If your Agent determines an image is appropriate, it can choose to use this Tool.