n8n AI Video Workflow: Seedance, Veo and More by HTTP
Build an n8n AI video workflow with the HTTP Request node: submit a clip, wait for it or take the webhook, save the file, and cap the cost of every run.
Updated 6 min read
An n8n AI video workflow needs no extra node: n8n's built-in HTTP Request node can call a video generation API directly. With Frameport, one credential reaches all 13 video models, from Seedance 2.5 and Veo 3.1 Fast to Wan 3.0, and the workflow submits a clip, waits for it, and saves the file wherever your next node writes.
This guide builds that workflow node by node: the submit request, two ways to wait (a polling loop or a webhook), saving to Drive, S3 or a CMS, and the settings that keep each run inside a budget.
What the workflow does
Each row of a sheet holds a prompt and an id of your own. The workflow takes the rows to make, starts a clip for each, waits until it is done, stores the file and writes the result back to the row:
Schedule Trigger → Google Sheets (rows to make) → HTTP Request (submit the clip)
→ Wait → HTTP Request (read the generation) → If: still rendering? back to Wait
→ HTTP Request (download as a file) → Google Drive (upload) → Google Sheets (update the row)Any model of the catalog fits in the same request. A few that suit short social clips:
| Model | model | Lengths | Resolutions | Formats | Sound | From |
|---|---|---|---|---|---|---|
| Seedance 2.5 | seedance-2-5 | 4 to 30 seconds | 480p and 720p | 16:9, 4:3, 1:1, 3:4, 9:16 and 21:9 | On or off, same price | $0.12 / s |
| Veo 3.1 Fast | veo-3-1-fast | 4, 6 or 8 seconds | 720p, 1080p and 4K | 16:9 and 9:16 | On or off, priced apart | $0.093 / s |
| Wan 3.0 | wan-3 | 2 to 30 seconds | 480p, 720p and 1080p | 16:9, 4:3, 1:1, 3:4 and 9:16 | On or off, same price | $0.06 / s |
| Frameport Motion 1 | fp-motion-1 | 5 to 15 seconds | 480p, 768p, 1080p and 2K | 16:9, 9:16, 1:1, 4:3 and 3:4 | On or off, same price | $0.02 / s |
The HTTP Request node: submit a clip
First, the credential. Create an API key in the dashboard (it starts with fp_live_), then in n8n create a Header Auth credential: name Authorization, value Bearer followed by a space and your key. Every request below uses it, so the key never sits in a node.
Add an HTTP Request node and set:
| Field | Value |
|---|---|
| Method | POST |
| URL | https://frameport.ai/v1/videos/generations |
| Authentication | Generic Credential Type › Header Auth, with the credential above |
| Send Headers | On: Idempotency-Key, from the row's id (below) |
| Send Body | On: JSON, Using JSON (below) |
The body is the clip. Switch the JSON field to an expression so the prompt comes from the row; JSON.stringify keeps quotes in a prompt from breaking the JSON:
{
"model": "seedance-2-5",
"prompt": {{ JSON.stringify($json.prompt) }},
"duration": 5,
"resolution": "720p",
"aspect_ratio": "9:16",
"max_cost_usd": 1.35
}clip-{{ $json.id }}The Idempotency-Key makes a retry safe: the same key with the same body returns the first generation for 24 hours instead of starting and charging a second clip. That lets you turn on Retry On Fail in the node's settings, and run the workflow again on the same rows without paying twice. You can also fill the node with Import cURL and this command, then pick the credential:
curl https://frameport.ai/v1/videos/generations \
-H "Content-Type: application/json" \
-d '{"model": "seedance-2-5", "prompt": "A paper boat drifts down a rain-soaked street at dusk", "duration": 5, "resolution": "720p", "aspect_ratio": "9:16"}'The node gets 202 Accepted at once: the generation, its id, status: "queued" and reserved_usd, the price held on your balance. A refused request, such as a duration off the model's grid or a balance too low, answers 400 or 402 with a message that says why. Set the node's On Error setting to Continue (using error output) and send that output to a node that writes the reason back to the row.
Wait for the result: polling loop or webhook
A clip is not ready when the request returns, so the workflow has to wait. There are two ways.
A polling loop keeps everything in one workflow. Add a Wait node (Resume: After Time Interval, 30 seconds), then an HTTP Request node that reads the generation with the same credential:
https://frameport.ai/v1/generations/{{ $json.id }}Then an If node that sends the item back to the Wait node while the clip is still rendering, with a bound so the loop cannot run forever: here, 40 rounds of 30 seconds.
{{ ['queued', 'running'].includes($json.status) && $runIndex < 40 }}On the false branch, a second If node checks for status equal to succeeded. A failed clip carries error.message and costs nothing; write it to the row.
A webhook saves the loop and the waiting executions. Build a second workflow that starts with a Webhook node (method POST, respond immediately), activate (publish) it, and add its production URL under Webhooks in the Frameport dashboard with the events generation.succeeded and generation.failed. The submit workflow then ends by writing the generation's id to the row; the webhook workflow picks up from there:
{{ $json.body.data.id }}Two rules make it safe. A webhook covers every generation of the workspace, including the ones you start in the Studio, so skip any id that is not in your sheet. And read the generation again with your key before you act on it, rather than trusting the body: a forged request to your webhook URL then leads nowhere. The webhooks guide explains deliveries, retries and signatures.
Save to Drive, S3 or a CMS
Each finished output has a signed url that works without a key for about an hour. Download it with one more HTTP Request node (no credential), with Options › Response › Response Format set to File:
{{ $json.outputs[0].url }}The file arrives as binary data, which the next node can store: a Google Drive node to upload it to a folder, an S3 node to upload it to a bucket, or an HTTP Request to your CMS's media endpoint. Then update the row with the file's link and the generation's cost_usd, what the clip was charged. Files are not kept forever on our side, so store the ones you keep (files).
Cap the cost of every run
max_cost_usdin the body. A request priced above it is refused with400 max_cost_exceededbefore anything is held. It catches a row that asks for 30 seconds at the top resolution.- A quote first, if you want a gate. Send the same body to
POST https://frameport.ai/v1/generations/quoteand continue only whenenough_balanceis true. Quotes hold nothing and are not rate-limited (quotes). - A workspace for the workflow. A key has no spending limit of its own: it spends from its workspace. Give the workflow its own workspace and key, funded with what the month may cost, with auto top-up off.
- Paid on success. A failed clip costs nothing. To try it again, give it a new key (
clip-<id>-2): the old key returns the failed generation.
The guide on pricing a clip before it runs covers quotes, holds and budgets in detail.
A faceless-channel example
A daily short for a channel with no one on camera fits the same workflow:
- A Schedule Trigger fires each morning.
- Google Sheets reads the next row with an empty status: a topic and an id.
- An AI node of your choice turns the topic into a visual prompt: the scene, the camera move, the sound.
- The submit node starts a vertical clip:
aspect_ratio9:16on Wan 3.0, where 10 seconds at 720p costs $1.20, or on Seedance 2.5. - The webhook workflow saves the clip to a review folder and marks the row ready.
You review the folder and post what you keep. Swap the model in one place to compare: Frameport Motion 1 makes 5-second drafts at 480p for $0.10. For still images in the same style, see n8n image generation.
For a whole faceless channel run this way, see faceless video automation.
FAQ
Does n8n need a special node for AI video?
No. The HTTP Request node calls the API directly: a Header Auth credential with your key, a JSON body, and the same request works for every model in the catalog.
Can I use Veo 3.1 in n8n?
Yes. Set model to veo-3-1 or veo-3-1-fast, with a duration of 4, 6 or 8 seconds. Veo 3.1 Fast prices sound apart: "audio": false makes 8 seconds at 720p cost $0.744 instead of $0.96.
How long should the Wait node wait?
About 30 seconds per round, in a loop with a bound, since a clip is rendered after the request returns. For many clips at once, use the webhook instead: no execution waits, and each clip arrives when it is ready.
Is there a free n8n AI video generator?
The workflow uses n8n's standard nodes. The clips are paid from your prepaid balance and only when they succeed; quotes and reads are free, and a failed clip costs nothing.
What happens when a clip fails in n8n?
The generation ends with status: "failed" and a reason in error, and nothing is charged. Write the reason to the row, then send it again with a new idempotency key.