See llms.txt for all machine-readable content.

Back to Templates

Edit and post TikTok videos with Gemini Omni Flash and OpenAI

Created by

Created by: Davide Boizza || n3witalia
Davide Boizza

Last update

Last update a day ago

Categories

Share


Quick overview

This workflow receives a webhook request with a video URL and edit prompt, sends the job to Fal.run’s Gemini Omni Flash for video editing, generates a title with OpenAI, downloads the rendered file, and uploads it to TikTok via the Upload-Post API.

How it works

  1. Receives a webhook request containing a video_url and an editing prompt.
  2. Submits the video edit job to Fal.run’s Gemini Omni Flash queue API.
  3. Polls Fal.run every 60 seconds to check the job status until it returns COMPLETED.
  4. Fetches the completed job details from Fal.run to obtain the final rendered video URL.
  5. Uses OpenAI (GPT-5) to generate an SEO-friendly title from the original prompt.
  6. Downloads the rendered video file from the provided URL and uploads it to TikTok using the Upload-Post.com upload API.
  7. Returns the Upload-Post.com API response to the original webhook caller.

Setup

  1. Create and add Fal.run API header-auth credentials, and ensure the Gemini Omni Flash endpoints are accessible from your n8n instance.
  2. Add an OpenAI API credential for the title generation step and select the model you want to use.
  3. Create an Upload-Post.com account, add its API header-auth credentials, and replace YOUR_USERNAME with your Upload-Post username in the upload request.
  4. Copy the webhook URL from n8n and configure the calling app to send prompt and video_url fields to this endpoint.

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