Generate AI video clips from YouTube using Reka Vision API and Gmail

Go to Workflow
258 views
Built by Frank Boucher Frank Boucher
Created on June 07, 2026

Description

Try It Out!
This n8n template demonstrates how to use Reka API via HTTP to AI generate a clip automatically from a YouTube video and send email notifications.

How it works
Looking at the RSS feed of a YouTube channel, the flow will be triggered when there is a new video published.
Using Reka's API, we will submit a request for creating a clip using AI. You can customize:
the prompt to generate the clip
decide if you want captions or not
decide the minimum or maximum duration of the clip

Wait a little while, the magic happens
Check if the job status is completed
If yes, it send an success email
If no, it will loop
As a failsafe, after 10 iterations in the loop, it will send an error email

๐Ÿ”ง Configurations

After importing the template, here is some information to customize your clips the way you like them.

๐Ÿ”˜ When New Video

Set the Feed URL to the YouTube channel you want to follow
ex: https://www.youtube.com/feeds/videos.xml?channel_id=UCAr20GBQayL-nFPWFnUHNAA

๐Ÿ”˜ Create Reel Creation Job

This API call will upload the video into your Reka's library and create a job for the clip.

Parameters

video_urls (string, required): URLs of input videos
prompt (string, required): Description of the reel to generate

generation_config

template (โ€œmomentsโ€ | โ€œcompilationโ€, default: โ€œmomentsโ€)
num_generations (integer, default: 1)
min_duration_seconds (integer, optional)
max_duration_seconds (integer, optional)

rendering_config

subtitles (boolean, default: true)
aspect_ratio (string, default: โ€œ9:16โ€) examples: โ€œ9:16โ€, โ€œ16:9โ€, โ€œ1:1โ€, โ€œ4:5โ€

Example of a complete JSON

{
"video_urls": ["{{ $json.link }}"],
"prompt": "Create an engaging short video highlighting the best moments",
"generation_config": {
"template": "moments",
"num_generations": 1,
"min_duration_seconds": 0,
"max_duration_seconds": 30
},
"rendering_config": {
"subtitles": true,
"aspect_ratio": "9:16"
}
}

๐Ÿ”˜ Send Clip Ready EMail

Using the information of all previous nodes, customize an email that contains all the information the way you like.

Here is an example:
Hello! Your clip is ready to be downloaded.

Title: {{ $('Check clip job status').item.json.output[0].title }}

Download it here: {{ $('Check clip job status').item.json.output[0].video_url }}

Description: {{ $('Check clip job status').item.json.output[0].caption }}

Requirements
Reka AI API key (it's free! Get yours from here from Reka)
Gmail account (feel free to change it to another mail provider)

Need Help?
Join the Discord

Happy clipping!

Nodes Used (2)

Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest