It would be fun to generate images from texts by using one of the image text-to-image AI models, like OpenAI DALL-E 2 or Google Imagen.
I'm not sure if their APIs are publicly available, but you can check them out here:
https://imagen.research.google/
and
https://openai.com/dall-e-2/