Generate text- and image-to-video content from forms with Pollo API
Go to WorkflowDescription
Quick overview
This workflow collects a video prompt (and optional image URL) via an n8n form, submits a generation request to the Pollo API, polls for completion, and returns the finished video URL and metadata.
How it works
Receives form input for a prompt, optional image URL, model path, and Pollo API key.
Sends a POST request to the Pollo API generation endpoint for the selected model to start a video generation task.
Waits 10 seconds and then requests the task status from the Pollo API using the returned taskId.
Checks whether the first generation result status is succeed and, if not, repeats the wait-and-poll loop.
When the generation succeeds, outputs the taskId, status, video URL, media type, and remaining credit information.
Setup
Create a Pollo API account and generate an API key to use as the x-api-key request header value.
Ensure you have a valid public, API-enabled Pollo model path (for example, kling-ai/kling-v2-1-master) to enter in the form.
If using image-to-video, provide a publicly accessible image URL in the form; otherwise leave it blank for text-to-video.