Text-to-image generator and API