Overview
Generate videos from templates by providing variable values for each scene. This is perfect for creating personalized video content at scale.How Templates Work
Templates in SlideVid use scenes - each scene has a script with{{variables}} that you replace:
- Get template details to see scenes and variables
- Prepare your data with values for each variable per scene
- Generate video with the
templateIdandscenesarray
Request Body
string
required
Video type (must match template type). Use
class for template-based videos.string
required
The template ID to use (1-20 characters)
string
required
Video title (1-100 characters)
boolean
required
Enable auto-generated captions
string
required
Language code for the video (max 2 characters). Example:
en, es, frarray
required
Array of scenes (1-20 scenes). Each scene contains:
string
URL to receive completion notification (max 500 characters)
object
Custom data to pass through to webhook responses. Use this to correlate videos with your internal systems (e.g., course IDs, user IDs, order numbers). Maximum size: 5KB.
Scene Structure
Each scene in thescenes array must include:
string
required
The script for this scene (can include
{{variables}})array
required
Array of
{key, type, value} pairs to replace in the scriptBulk Generation Example
Generate personalized videos for multiple customers:Bulk Generation
Variable Replacement Rules
Variable Format
Variable Format
Variables in scripts use double curly brackets:
{{variable_name}}Case Sensitive
Case Sensitive
Variable names are case-sensitive:
{{name}}≠{{Name}}{{firstName}}≠{{firstname}}
All Variables Required
All Variables Required
You must provide values for all variables in each scene:
Empty Values
Empty Values
Empty string values are allowed:This replaces
{{optional_field}} with an empty string.Overriding Template Settings
You can override some template settings:- Captions
- Title
- Metadata
Best Practices
Validate First
Get template details and validate your data before generating
Use Webhooks
Always provide webhook URLs for async notification
Rate Limiting
Add delays between bulk requests (1 second recommended)
Error Handling
Check for missing variables before generation
API Limits
Related Endpoints
Template Details
Get template structure and variables
List Templates
Browse available templates
List Videos
View your generated videos