Lottie for video

Hello I would have a simple way to create animations from texts applying a template. It could be a sort of API service or a script, and I need to export/output in a gif/png animation with alpha transparency, or best would be to have a .ass file (subtitles).