Doubao Video Generation
Create an asynchronous video generation task using the native Doubao format. The endpoint returns a task ID that can be used to query task status and results.
Request Conventions
| Item | Value |
|---|---|
| Base URL | https://token.wdcloud.ai |
| Authentication header | Authorization: Bearer <API_KEY> |
| JSON content type | Content-Type: application/json |
Endpoint
POST /seedance/api/v3/contents/generations/tasks
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model name; currently supports doubao-seedance-2.0 |
content | array | Yes | Content input array containing text, images, video, or audio; see the table below |
generate_audio | boolean | No | Whether to generate audio automatically; true enables audio generation |
ratio | string | No | Video aspect ratio: 16:9, 9:16, or 1:1 |
duration | integer | No | Video duration in seconds, such as 5 or 10; available durations depend on model support |
watermark | boolean | No | Whether to add a watermark; defaults to false |
content Items
Each item is identified by its type field:
type | Description | Required field | Optional field |
|---|---|---|---|
text | Text prompt | text (prompt content) | — |
image_url | Reference image | image_url.url (image URL) | role (reference_image) |
video_url | Reference video | video_url.url (video URL) | role (reference_video) |
audio_url | Reference audio | audio_url.url (audio URL) | role (reference_audio) |
Request Example
bash
curl --location 'https://token.wdcloud.ai/seedance/api/v3/contents/generations/tasks' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
"model": "doubao-seedance-2.0",
"content": [
{
"type": "text",
"text": "A first-person fruit tea commercial that starts in an apple orchard, shows the fresh preparation process, and ends on the finished drink."
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/pic1.jpg"
},
"role": "reference_image"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/pic2.jpg"
},
"role": "reference_image"
},
{
"type": "video_url",
"video_url": {
"url": "https://example.com/video1.mp4"
},
"role": "reference_video"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://example.com/audio1.mp3"
},
"role": "reference_audio"
}
],
"generate_audio": true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}'Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Task ID used to query task status and results |
model | string | Model name used by the task; request aliases are resolved to the complete model name |
Response Example
json
{
"id": "cgt-20260810111537-s92q8",
"model": "doubao-seedance-2-0-260128"
}