Animated caption styles for your videos. Select a template to see the API code.
{
"captionTemplate": {
"id": "simple-white",
"style": "colored-words",
"config": {
"fontFamily": "Montserrat",
"fontSize": 44,
"fontWeight": "bold",
"textTransform": "none",
"primaryColor": "#ffffff",
"secondaryColor": "#ffffff",
"strokeColor": "#000000",
"strokeWidth": 6,
"maxWidth": 900
}
}
}// POST /v1/createShorts
{
"url": "https://youtube.com/watch?v=...",
"title": "My Video",
"aspect_ratio": "vertical",
"clipDuration": "60",
"captionTemplate": {
"id": "simple-white",
"style": "colored-words",
"config": {
"fontFamily": "Montserrat",
"fontSize": 44,
"fontWeight": "bold",
"textTransform": "none",
"primaryColor": "#ffffff",
"secondaryColor": "#ffffff",
"strokeColor": "#000000",
"strokeWidth": 6,
"maxWidth": 900
}
}
}colored-wordsAlternates highlight color between wordsscaling-wordsScales up the current wordanimated-backgroundColored box behind active wordbounceBouncing animationshakeShaking effectzoomZoom in/out effectfadeFade in/out effectglitchGlitch/tech effectrotatingRotation animationexplosiveExplosive scaling effectglowingPulsing glow effectfontFamily(string)Google Font namefontSize(number)Font size in pixelsfontWeight(string)Font weight (bold, normal, etc)textTransform(string)none | uppercase | lowercaseprimaryColor(string)Main text color (hex)secondaryColor(string)Highlight color (hex)strokeColor(string)Text stroke color (hex)strokeWidth(number)Stroke width in pixelsmaxWidth(number)Max caption width in pixelsUse id: "surprise" to randomly select a template style for each video. Great for A/B testing different caption styles!
{
"captionTemplate": {
"id": "surprise",
"style": "random",
"config": {
"fontFamily": "Montserrat"
}
}
}