Skip to main content

Overview

This guide walks through the complete process of creating and managing AI videos with SlideVid’s API, from initial setup to production deployment.

Step-by-Step Workflow

1. Authentication Setup

First, get your API key from the dashboard:
2

Store Securely

Save your API key in environment variables
3

Test Authentication

2. Choose Your Path

Create from Scratch

Full control over every aspectBest for: Unique, one-off videos

Use Templates

Fast, scalable personalizationBest for: Bulk generation, personalized content

Workflow: From Scratch

Step 1: Fetch Available Resources

Step 2: Select Resources

Step 3: Create Video

Step 4: Monitor Progress

Option A: Using Webhooks (Recommended)
Option B: Polling (Not Recommended)

Workflow: With Templates

Step 1: List Templates

Step 2: Get Template Details

Step 3: Prepare Variables

Step 4: Generate from Template

Step 5: Bulk Generation


Complete Example: Production-Ready

Here’s a complete, production-ready implementation:

Best Practices Summary

Use Webhooks

Always use webhooks instead of polling for better efficiency

Error Handling

Implement comprehensive error handling and retries

Rate Limiting

Respect rate limits and implement backoff strategies

Caching

Cache resources (avatars, voices) to reduce API calls

Next Steps

Bulk Generation

Learn to generate videos at scale

Personalization

Master video personalization techniques

Best Practices

Production-ready patterns