As a first step, we create a template containing the design of the video we wish to personalize. A template consists of dynamic content, such as text captions, images, and video clips, all of which can be replaced using the API in the next step.
There are a variety of pre-made banner templates available in Creatomate for customizing, but you can also create your own video template entirely from scratch using the video editor, which allows you to create personalization video for virtually any need.
Now let's generate unique videos (or images) using the REST API. The API can be called from any programming language or no-code tool like Zapier. In this example, we're using cURL to call the API.
We use the personalization template as a basis for calling the REST API, providing the template ID and dynamic values. As you can see, we're inserting the recipient's name, an image, and a discount code. This will return an MP4 video. However, it can also return an image or GIF depending on the options we provide.
As an alternative to the REST API, we may also use the URL-to-video API, which can be accessed by a simple URL. Dynamic data is passed through the URL query.
As you can see, you can easily generate thousands of on-demand personalized videos using the REST or URL-to-video API. You could, for example, create a personalized GIF on demand to embed in your email marketing campaigns. Or you could generate a personalized MP4 to display on a custom landing page.
There is an easier way to create personalized video and images if you do not require a fully automated workflow, and that is by using Creatomate's spreadsheet-to-video or form-to-video features. Take a look at it as well if you're interested in creating personalized media in bulk.