Discussions
Dynamically Create Template Scenes via API?
4 months ago by null
Hello,
Is it possible to not just fill a predefined template via API but to create the template dynamically via API?
Use Case: I AI-generate a presentation structure and want to automatically create a video from a template (fill the generated content in the variables). But the content is generated dynamically, so I don't know beforehand if the whole presentation has 10 scenes or 15 scenes.
Is it possible to only define scene types and create the whole template dynamically based on that via API?
Example:
I define the following scene types:
- Title left + Avatar Video right
- Avatar Video left + image right
- Bullet points left + Avatar video right
Now I get this content from my LLM:
- Title ({{text}}, {{script}})
- Avatar + image ({{image}}, {{script}})
- Avatar + image ({{image}}, {{script}})
- Bullet points + Avatar video ({{text}}, {{script}})
- Bullet points + Avatar video ({{text}}, {{script}})
- Avatar + image ({{image}}, {{script}})
- ....
Now, is there a way to create a template with this structure and then fill the variables, all via API?
Or any other option to achieve my use case?
Thanks a lot!
Oliver