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.

  1. 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.
  2. Add an IF node that checks whether status equals completed. The true branch reads the finished clip from metadata.url.
  3. On the false branch, add a second IF node that checks for failed and routes it to error handling or a notification.
  4. Send any other status to a Wait node with an interval you choose, then connect the Wait node back to the GET node.
  5. 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

ItemValueSource
Seedance 2.5 price480p about $0.130 / second, 720p about $0.289 / second, 1080p about $0.711 / second; clips of 4 to 30 secondsrelaydance.com/seedance-2-5-api
Seedance 2.0 price720p about $0.190 / second, 1080p about $0.470 / second, Fast about $0.152 / second, native 4K about $4.90 per 5-second cliprelaydance.com/seedance-2-0-api
Kling 4.0 pricekling-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 videorelaydance.com/docs/model-capabilities
MiniMax H3 priceminimax-h3-768p $0.10 / second, minimax-h3-2k $0.1625 / second; 4 to 15 seconds, native stereo audiorelaydance.com console pricing
Wan 3.0 price480p $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 audiorelaydance.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 defaultrelaydance.com/docs/image
gpt-image-2.6 imagesflat $0.04 per image returned; PNG, JPEG, WebP, animated GIF or SVG; transparent backgrounds; image editing on /v1/images/editsrelaydance.com/docs/image
gpt-image-2 image billingimage output is free, only input is billed; image-to-image from about CNY 0.035; 4K and 1K output cost the samerelaydance.com/models
Video editing and extensionSeedance 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 secondsrelaydance.com/docs/model-capabilities
Reference media limitsSeedance 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 tracksrelaydance.com/docs/model-capabilities
API protocolOpenAI-compatible; set base_url to https://relaydance.com/v1relaydance.com/docs
Failed requestsfailed or errored requests are never billedrelaydance.com/docs

Data verified 2026-11-27; live prices are on the official /models page.


RelayDance home · Models and pricing · Docs · All guides · Privacy Policy · User Agreement · Telegram community · RelayRouter (LLM API) · Live playground