Skip to main content

Create viral videos from reference images with VIDU & upload to YouTube/TikTok

Workflow preview

Workflow preview
100%
Create viral videos from reference images with VIDU & upload to YouTube/TikTok preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates the process of creating short videos from multiple image references (up to 7 images). It uses "Vidu Reference to Video" model, a video generation API to transform a user pro...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.formtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Create viral videos from reference images with VIDU & upload to YouTube/TikTok
Workflow name
Create viral videos from reference images with VIDU & upload to YouTube/TikTok

This workflow automates the process of creating short videos from multiple image references (up to 7 images). It uses "Vidu Reference to Video" model, a video generation API to transform a user-provided prompt and image set into a consistent, AI-generated video.

This workflow automates the process of generating AI-powered videos from a set of reference images and then uploading them to TikTok and Youtube. The process is initiated via a user-friendly web form.


Advantages

  • Consistent Video Creation: Uses multiple reference images to maintain subject consistency across frames.
  • Easy Input: Just a simple form with prompt + image URLs.
  • Automation: No manual waiting—workflow checks status until video is ready.
  • SEO Optimization: Automatically generates a catchy, optimized YouTube title using AI.
  • Multi-Platform Publishing: Uploads directly to Google Drive, YouTube, and TikTok in one flow.
  • Time Saving: Removes repetitive tasks of video generation, download, and manual uploading.
  • Scalable: Can run periodically or on-demand, perfect for content creators and marketing teams.
  • UGC & Social Media Ready: Designed for creating viral short videos optimized for platforms like TikTok and YouTube Shorts.

How It Works

  1. Form Trigger: A user submits a web form with two key pieces of information: a text Prompt describing the desired video and a list of Reference images (URLs separated by commas or new lines).
  2. Data Processing: The workflow processes the submitted image URLs, converting them from a text string into a proper array format for the AI API.
  3. AI Video Generation: The processed data (prompt and image array) is sent to the Fal.ai VIDU API endpoint (reference-to-video) to start the video generation job. This node returns a request_id.
  4. Status Polling: The workflow enters a loop where it periodically checks the status of the generation job using the request_id. It waits for 60 seconds and then checks if the status is "COMPLETED". If not, it waits and checks again.
  5. Result Retrieval: Once the video is ready, the workflow fetches the URL of the generated video file.
  6. Title Generation: Simultaneously, the original user prompt is sent to an AI model (GPT-4o-mini via OpenRouter) to generate an optimized, engaging title for the social media post.
  7. Upload & Distribution:
    • The video file is downloaded from the generated URL.
    • A copy is saved to a specified Google Drive folder for storage.
    • The video, along with the AI-generated title, is automatically uploaded to YouTube and TikTok via the Upload-Post.com API service.

Set Up Steps

This workflow requires configuration and API keys from three external services to function correctly.

Step 1: Configure Fal.ai for Video Generation

  1. Create an account and obtain your API key.
  2. In the "Create Video" HTTP node, edit the "Header Auth" credentials.
  3. Set the following values:
    • Name: Authorization
    • Value: Key YOUR_FAL_API_KEY (replace YOUR_FAL_API_KEY with your actual key)

Step 2: Configure Upload-Post.com for Social Media Uploads

  1. Get an API key from your Upload-Post Manage Api Keys dashboard (10 free uploads per month).
  2. In both the "HTTP Request" (YouTube) and "Upload on TikTok" nodes, edit their "Header Auth" credentials.
  3. Set the following values:
    • Name: Authorization
    • Value: Apikey YOUR_UPLOAD_POST_API_KEY (replace YOUR_UPLOAD_POST_API_KEY with your actual key)
  4. Crucial: In the body parameters of both upload nodes, find the user field and replace YOUR_USERNAME with the exact name of the social media profile you configured on Upload-Post.com (e.g., my_youtube_channel).

Step 3: Configure Google Drive (Optional Storage) The "Upload Video" node is pre-configured to save the video to a Google Drive folder named "Fal.run". Ensure your Google Drive credentials in n8n are valid and that you have access to this folder, or change the folderId parameter to your desired destination.

Step 4: Configure AI for Title Generation The "Generate title" node uses OpenAI to access the gpt-5-mini model..


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Wait 60 sec.

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 3 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Completed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Set data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Create Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Get Url Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Get File Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Upload Video

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 13 - Generate title

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Upload on TikTok

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 18 - Array

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Upload to Youtube

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow Create viral videos from reference images with VIDU & upload to YouTube/TikTok
Complexity advanced
Nodes 20
Categories Content Creation, Multimodal AI
Author Davide
Published 18 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8709/8709.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create viral videos from reference images with VIDU & upload to YouTube/TikTok do?

This workflow automates the process of creating short videos from multiple image references (up to 7 images). It uses "Vidu Reference to Video" model, a video generation API to transform a user pro...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.