See llms.txt for all machine-readable content.

Back to Templates

Create captioned short clips from long videos with forms and legit2compute

Quick overview

This workflow collects a public video URL in an n8n form, submits a clipping job to the legit2compute API, polls until processing completes, then redirects the user to a download webhook that streams a ZIP of vertical captioned clips back to the browser.

How it works

  1. Receives a clip request through an n8n form with the video URL, clip count, caption style, language, and optional start and duration limits.
  2. Validates the video URL format and returns a form error page if it is not a valid http(s) link.
  3. Submits a full_clip job to the legit2compute /jobs API endpoint and shows a helpful error page if the request is rejected (for example due to an invalid API key or insufficient balance).
  4. Polls legit2compute at a configurable interval for the job status until it completes, fails/cancels, or reaches a maximum wait time.
  5. When completed, fetches the job outputs from legit2compute, selects clips_package.zip (or falls back to a clip file), and redirects the user to a download URL.
  6. Handles the redirected download webhook by verifying the job belongs to this workflow and is completed, then streams the selected file from legit2compute back to the browser or returns a 404 for invalid/expired links.

Setup

  1. Create a legit2compute API key at https://legit2compute.com/developers/signup, then add an HTTP Header Auth credential in n8n with Name x-api-key and your key as the Value.
  2. Select that Header Auth credential in all HTTP Request nodes that call the legit2compute API.
  3. Activate the workflow and open the form trigger’s Production URL to submit clip requests and download the resulting ZIP.

Requirements

  • A legit2compute account with a prepaid balance (each job is billed; a failed job is not charged), and a public video with clear speech.