Skip to main content

Overview

Bulk generation allows you to create hundreds or thousands of personalized videos efficiently using templates and automation.
Use Case: Perfect for personalized marketing campaigns, sales outreach, customer onboarding, and more.

Prerequisites

Before bulk generating videos:
You need:
  • A template with defined variables
  • A list of recipients with their data
  • A webhook endpoint to receive completion notifications
  • Sufficient API credits/quota

Basic Bulk Generation

Step 1: Prepare Your Data

Step 2: Simple Bulk Generator

Advanced Bulk Generation

With Rate Limiting & Retries

Processing CSV Files

Read and Process CSV

Database Integration

Generate from Database Records

Webhook Management for Bulk Jobs

Track Completions

Performance Optimization

Tips for Large Batches

1

Use Concurrency

Process multiple videos in parallel (5-10 concurrent requests)
2

Implement Queuing

Use a job queue (Bull, BullMQ) for reliability
3

Cache Templates

Fetch template details once and reuse
4

Monitor Rate Limits

Track and respect API rate limits

Error Handling Strategies

Partial Failure Recovery

Best Practices

Start Small

Test with 5-10 videos before scaling to hundreds

Use Webhooks

Never poll for bulk jobs - always use webhooks

Monitor Progress

Track success rates and errors in real-time

Implement Retries

Handle transient failures with exponential backoff

Example: Complete Bulk Campaign

Next Steps

Personalization Tips

Advanced personalization techniques

Best Practices

Production-ready patterns