See llms.txt for all machine-readable content.

Back to Templates

Extend videos with audio using Fal, OpenAI, and Upload-Post for TikTok

Created by

Created by: Davide Boizza || n3witalia
Davide Boizza

Last update

Last update 2 days ago

Categories

Share


Quick overview

This workflow accepts a video URL and prompt, uses Fal.ai (ltx-2.3-quality) to extend the video forward with generated audio, generates an SEO-friendly title with OpenAI, downloads the finished video, and uploads it to TikTok via the Upload-Post API.

How it works

  1. Triggers from either an n8n Form submission or an incoming Webhook request containing video_url and prompt.
  2. Sends the video URL and prompt to Fal.ai’s ltx-2.3-quality extend-video endpoint to start an asynchronous high-quality render with audio generation enabled.
  3. Waits 60 seconds and repeatedly polls Fal.ai’s queue status endpoint until the job status returns COMPLETED.
  4. Fetches the completed Fal.ai request details to retrieve the final generated video URL.
  5. Sends the original prompt to OpenAI (GPT-5) to generate a short, clickable, SEO-oriented video title.
  6. Downloads the generated video file and uploads it to Upload-Post with the generated title, targeting the TikTok platform.

Setup

  1. Add a Fal.run API credential (HTTP Header Auth) and confirm the extend-video and status/request URLs match your Fal.ai account and model.
  2. Add an OpenAI API credential and, if needed, change the model in the title-generation step.
  3. Add an Upload-Post API credential (HTTP Header Auth), set your user value (currently YOUR_USERNAME), and confirm the Upload-Post endpoint and TikTok platform parameter.
  4. If triggering externally, copy the Webhook URL and configure the calling app to send video_url and prompt, or use the included n8n Form to submit those fields.
  5. Adjust the polling delay (60 seconds) if you need faster updates or fewer API calls.

Additional info

MY NEW YOUTUBE CHANNEL

👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n.

image


Need help customizing?

Contact me for consulting and support or add me on Linkedin