workflows.fit
Back to n8n workflows
n8n templateFreeBy Oneclick AI Squad

Create AI videos from prompts with OpenAI script, TTS & Pexels B-roll assembly

Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready. How it works Send a video topic via webhook (e.g., "Create a 60-second video about morn...

DevelopmentCore NodesData & StorageUtilityOpen AiCodeHttp RequestMerge
Loading interactive preview...

Template notes

Automatically creates complete videos from a text prompt—script, voiceover, stock footage, and subtitles all assembled and ready.

How it works

Send a video topic via webhook (e.g., "Create a 60-second video about morning exercise"). The workflow uses OpenAI to generate a structured script with scenes, converts text to natural-sounding speech, searches Pexels for matching B-roll footage, and downloads everything. Finally, it merges audio with video, generates SRT subtitles, and prepares all components for final assembly.

The workflow handles parallel processing—while generating voiceover, it simultaneously searches and downloads stock footage to save time.

Setup steps

1. Add OpenAI credentials for script generation and text-to-speech 2. Get a free Pexels API key from pexels.com/api for stock footage access 3. Connect Google Drive for storing the final video output 4. Install FFmpeg (optional) for automated video assembly, or manually combine the components 5. Test the webhook by sending a POST request with your video topic

Input format: json { "prompt": "Your video topic here", "duration": 60, "style": "motivational" }

What you get