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
- Receives a clip request through an n8n form with the video URL, clip count, caption style, language, and optional start and duration limits.
- Validates the video URL format and returns a form error page if it is not a valid http(s) link.
- 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).
- Polls legit2compute at a configurable interval for the job status until it completes, fails/cancels, or reaches a maximum wait time.
- 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.
- 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
- 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.
- Select that Header Auth credential in all HTTP Request nodes that call the legit2compute API.
- 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.