Creative Templates decide structure and visual design of your videos. You can either choose one from Shakr Template Library or one of After Effects projects uploaded by your team's designer.
This document will introduce you to choosing a template from Shakr Template Library.
When using Shakr API, there are three resources that comprise a template.
- Template: A group of
TemplateStylethat share similar visual design and structure.
- TemplateStyle: Unique unit of video used in Shakr. One
Templatecan include many
TemplateStyles with various display ratio(i.e. 4:5, 1:1, 9:16, etc) and various lengths(i.e. 15s, 30sec, etc).
- TemplateStyleVersion: Individual version of
TemplateStylethat comes with different languages.
To learn more about terminology and Shakr API's resource model, refer to Terminology.
Choose a template that you want from Shakr Template Library and copy its URL. You can obtain Template ID and TemplateStyle ID from it.
The template URL shown above contains the following information.
|TemplateStyle Name||Template ID||TemplateStyle ID||TemplateStyleVersion Language|
For the next step, you'll need TemplateStyle ID and TemplateStyleVersion Language.
There can be various versions inside
TemplateStyle, one version per each language. You need an ID of a version when you make an API call to create a video. This Template Style Version ID can be acquired by calling
GET /v2/templates/:template_id/styles API endpoint and referring to version_ids key.
version_ids is comprised in key-value structure, and key and value represent language and TemplateStyleVersion ID of the said language, respectively.
If you chose a template and have TemplateStyleVersion ID handy, then it's time to make a video! There are two methods to create a video.
With Shakr API, you can bypass the editor and create videos automatically by providing text and media assets directly to the API.
With Shakr Editor SDK, you can embed Shakr Editor to your web services, enabling your customers to enter text and media assets to create videos on their own.