๐ฌ Generate Seedance videos with the Vancine Doubao API using polling
โก 8 views ยท ๐ฌ Content Creation & Video
Description
Quick overview
Generate Seedance videos through the Vancine API, automatically poll asynchronous tasks, return the final video URL, and handle failed or timed-out generations with bounded retries.
How it works
- Starts manually to define the Seedance model, prompt, video size, base URL, and polling limits.
- Sends a POST request to the Vancine
/v1/video/generationsendpoint to create a video generation task. - Extracts and stores the returned task ID and initializes polling state (interval and maximum attempts).
- Waits for the configured interval, then sends a GET request to
/v1/video/generations/{task_id}to check task status. - Repeats polling until the task status is completed or until the maximum poll count is reached.
- Outputs the generated video
result_urlwhen completed, or stops with an error if the task fails or times out.
Setup
- Create an HTTP Header Auth credential with Name set to Authorization and Value set to Bearer YOUR_VANCINE_API_KEY. Assign the same credential to both HTTP Request nodes: submitTask and pollTask.
- Confirm the Vancine API base URL in the workflow (default
https://vancine.com) matches your environment. - Update the prompt, model, size, and polling settings (intervalSeconds and maxPolls) to fit your use case and expected render time.
Requirements
- Requires an n8n instance with standard HTTP Request, Wait, IF, Merge, Set, Code, and Stop And Error nodes, plus a Vancine account, API key, available credit, and access to the supported Seedance model. Verified on n8n 2.30.4.
Customization
- Replace the Manual Trigger with a Webhook, Form, or Schedule Trigger; customize the model, prompt, video size, polling interval, and maxPolls in setFields; then route result_url to storage, databases, messaging apps, or publishing workflows.
Additional info
API documentation: https://vancine.com/docs#video
Tested cURL, Node.js, Python, Postman, and n8n examples: https://github.com/VancineAI/seedance-api-starter
๐ Nodes Used
HTTP Request, Stop and Error
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File