Text template variables
Last updated
Was this helpful?
Last updated
Was this helpful?
You can use dynamic template variables in any text element, by simply typing a variable name between curly braces.
Take the following example:
,,,
Hey {name}, we’ve been improving!
Our newest feature, {feature_name}, is live!
,,,
In this text we created two template variables: name
and feature_name
.
You can replace these template variables with their values, by sending their values in the request body when generating a video. The API will replace the placeholders in the text with the corresponding values you provide.
For example:
On how to generate a video you can find more information here: Video Generation