n8n workflow for AI video: HTTP request nodes and polling loops for Seedance tasks
To run Seedance video tasks from n8n, use one HTTP Request node to POST a job to https://relaydance.com/v1/video/generations with a Bearer API key. Then loop a second HTTP Request node that calls GET /v1/videos/{task_id}, an IF node that checks status, and a Wait node. The loop repeats until status is completed (the clip URL is at metadata.url) or failed. You can also set metadata.callback_url and receive the final state on an n8n Webhook node.
How do you submit a Seedance task from an n8n HTTP Request node?
Submit the task with an HTTP Request node set to POST and pointed at https://relaydance.com/v1/video/generations. RelayDance is OpenAI-compatible, and according to the relaydance.com docs, “Set base_url to https://relaydance.com/v1 and keep your OpenAI SDK”. In n8n you do not need the SDK. Add a header named Authorization with the value Bearer YOUR_API_KEY (create keys at relaydance.com/console), set the body type to JSON, and send model, prompt, seconds and metadata. The metadata object holds ratio, resolution, generate_audio, callback_url and content[] for reference media. Seedance 2.5 accepts clips of 4 to 30 seconds. A minimal body:
{"model": "SEEDANCE_MODEL_ID", "prompt": "A drone shot over a coastline", "seconds": 10, "metadata": {"ratio": "16:9", "resolution": "720p", "generate_audio": true}}
Replace the model placeholder with an ID listed on relaydance.com/models, then map the returned task ID into the next node.
How do you build the polling loop in n8n?
Build the loop from an HTTP Request node, two IF nodes and a Wait node that cycle until the status is completed or failed.
- Add an HTTP Request node with method GET and the URL https://relaydance.com/v1/videos/{task_id}, inserting the task ID from the submit node with an n8n expression. Reuse the same Authorization header.
- Add an IF node that checks whether
statusequalscompleted. The true branch reads the finished clip frommetadata.url. - On the false branch, add a second IF node that checks for
failedand routes it to error handling or a notification. - Send any other status to a Wait node with an interval you choose, then connect the Wait node back to the GET node.
- Optionally, keep a counter so the loop stops after a maximum number of attempts that you define.
Can you replace polling with a callback to an n8n Webhook?
Yes, set metadata.callback_url to an n8n Webhook node URL and RelayDance POSTs the final task state to that address. Split the process into two workflows. The submitting workflow sends the POST /v1/video/generations request with the production URL of your Webhook node in metadata.callback_url, then ends. The receiving workflow starts with a Webhook node that accepts POST requests. After it, an IF node checks whether the status is completed or failed. On completion, an HTTP Request node downloads the file from metadata.url and passes it to storage, a CMS or a messaging node. Callbacks remove repeated GET requests. However, the Webhook URL must be reachable from the internet, so a local n8n instance without a public address should keep the polling loop described above.
What do Seedance tasks cost and what reference media can they use?
Seedance tasks are billed per generated second, and a failed branch in your loop costs nothing because, according to relaydance.com, “Failed or errored requests are never billed”. Seedance 2.5 costs about $0.130 per second at 480p, about $0.289 per second at 720p and about $0.711 per second at 1080p, so a 10-second 720p clip is about $2.89. Seedance 2.0 costs about $0.190 per second at 720p, about $0.470 per second at 1080p, about $0.152 per second for Fast, and about $4.90 per 5-second native 4K clip. In metadata.content[], Seedance 2.5 accepts up to 30 reference images, 10 videos and 10 audio clips per request. Seedance 2.0 accepts up to 9 images, 3 videos and 3 audio tracks. Cite images in the prompt as @image1 to @imageN. Editing and extension on Seedance 2.5 require ratio adaptive, and editing omits seconds. See relaydance.com/models for live rates.
FAQ
The three questions below cover common account, image and upload questions for n8n Seedance workflows.
Do I need a BytePlus account to call Seedance from n8n?
No. RelayDance requires no BytePlus enterprise account or KYC, and billing is pay-as-you-go with USDT or a Stripe card.
Can the same workflow generate images?
Yes. Send POST /v1/images/generations from an HTTP Request node. Seedream 4.5 costs $0.05 per image, and gpt-image-2.6 costs $0.04 per image, with editing on POST /v1/images/edits.
How do I attach reference files?
Upload them with POST /v1/files, add them to metadata.content[], and cite images in the prompt as @image1 to @imageN. Full details are in the relaydance.com/docs.
According to the official relaydance.com docs: "Failed or errored requests are never billed"
According to the official relaydance.com/docs docs: "Set base_url to https://relaydance.com/v1 and keep your OpenAI SDK"
Key facts and figures
| Item | Value | Source |
|---|---|---|
| Seedance 2.5 price | 480p about $0.130 / second, 720p about $0.289 / second, 1080p about $0.711 / second; clips of 4 to 30 seconds | relaydance.com/seedance-2-5-api |
| Seedance 2.0 price | 720p about $0.190 / second, 1080p about $0.470 / second, Fast about $0.152 / second, native 4K about $4.90 per 5-second clip | relaydance.com/seedance-2-0-api |
| Kling 4.0 price | kling-v4 (720p) $0.19625 / second, kling-v4-pro (1080p) $0.29375 / second; 3 to 30 seconds, native audio included in the price; 1.2x with a reference video | relaydance.com/docs/model-capabilities |
| MiniMax H3 price | minimax-h3-768p $0.10 / second, minimax-h3-2k $0.1625 / second; 4 to 15 seconds, native stereo audio | relaydance.com console pricing |
| Wan 3.0 price | 480p $0.0625 / second, 720p $0.125 / second, 1080p $0.25 / second; 2 to 15 seconds, text-to-video or one first-frame image, native stereo audio | relaydance.com/docs/model-capabilities |
| Seedream 4.5 images | $0.05 per image produced, 2K or 4K, reference pictures free, up to 15 related images per call, no watermark by default | relaydance.com/docs/image |
| gpt-image-2.6 images | flat $0.04 per image returned; PNG, JPEG, WebP, animated GIF or SVG; transparent backgrounds; image editing on /v1/images/edits | relaydance.com/docs/image |
| gpt-image-2 image billing | image output is free, only input is billed; image-to-image from about CNY 0.035; 4K and 1K output cost the same | relaydance.com/models |
| Video editing and extension | Seedance 2.5 and the Seedance 2.0 family edit or extend an existing clip from the prompt, no masks; on Seedance 2.5 editing and extension require ratio adaptive, and editing omits seconds | relaydance.com/docs/model-capabilities |
| Reference media limits | Seedance 2.5: up to 30 reference images, 10 reference videos and 10 audio clips per request; Seedance 2.0: up to 9 images, 3 videos and 3 audio tracks | relaydance.com/docs/model-capabilities |
| API protocol | OpenAI-compatible; set base_url to https://relaydance.com/v1 | relaydance.com/docs |
| Failed requests | failed or errored requests are never billed | relaydance.com/docs |
Data verified 2026-11-27; live prices are on the official /models page.