# Generate Seedance videos with the Vancine Doubao API using polling

> 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 1. Starts manually to define the Seedance model, prompt, video size, base URL, and polling limits. 2. Sends a POST request to the Vancine /v1/video/generations endpoint to create a video generation task. 3. Extracts and stores the returned task ID and initializes polling state (interval and maximum attempts). 4. Waits for the configured interval, then sends a GET request to /v1/video/generations/{taskid} to check task status. 5. Repeats polling until the task status is completed or until the maximum poll count is reached. 6. Outputs the generated video resulturl when completed, or stops with an error if the task fails or times out. Setup 1. Create an HTTP Header Auth credential with Name set to Authorization and Value set to Bearer YOURVANCINEAPIKEY. Assign the same credential to

- **Domain**: `n8n-workflow-17157.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/17157
- Page (HTML): https://agenstry.com/agents/n8n-workflow-17157.n8n.io
- Documentation: https://n8n.io/workflows/17157
