See llms.txt for all machine-readable content.

Back to Templates

Turn product photos into Veo 3.1 videos with Tokenhot and form input

Quick overview

This workflow collects a product photo URL and shot prompt via an authenticated n8n form, submits a Veo 3.1 video generation request to Tokenhot, polls the task status until completion, and downloads the resulting 720p MP4 so it’s available as a binary file in the execution output.

How it works

  1. Receives a submission from an n8n Form trigger (Basic Auth) with a public HTTPS product photo URL and a shot-direction prompt.
  2. Validates the inputs and builds a Tokenhot Veo 3.1 request for a 16:9, 720p video using the image as a visual reference.
  3. Sends the request to the Tokenhot video generations API and extracts the returned task ID.
  4. Polls the Tokenhot task status every 15 seconds (up to 60 checks) until the generation succeeds, fails, or times out.
  5. When the task succeeds, downloads the MP4 from the returned result URL and attaches it as a binary file to the workflow output.
  6. If the task fails or doesn’t finish in time, stops with an error message that includes the Tokenhot task ID for follow-up.

Setup

  1. Create an API key at TokenHot and check the Veo 3.1 price and available balance. Create an n8n Header Auth credential with Authorization as the name and Bearer followed by a space and your API key as the value. Select this credential in both TokenHot request nodes.
  2. Create and select an n8n Basic Auth credential for the form so only authorized users can submit video requests.
  3. Execute the workflow and submit a direct, publicly accessible HTTPS image URL and prompt via the form, then download the MP4 from the final step’s Binary output in the execution details.

Additional info

The template is free. TokenHot charges for video generation. If a task times out, check its ID before starting a second paid generation.