Query Doubao Video Tasks
Query a list of Doubao video tasks, or use the task ID returned by the create endpoint to retrieve one task's status and result.
Request Conventions
| Item | Value |
|---|---|
| Base URL | https://token.wdcloud.ai |
| Authentication header | Authorization: Bearer <API_KEY> |
Query Task List
GET /seedance/api/v3/contents/generations/tasks
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_num | integer | No | Page number starting at 1; defaults to 1 |
page_size | integer | No | Number of items per page; defaults to 10 |
filter.status | string | No | Filter by queued, running, succeeded, failed, cancelled, or expired |
Request Example
bash
curl --location 'https://token.wdcloud.ai/seedance/api/v3/contents/generations/tasks?page_size=3&filter.status=succeeded' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>'Response Fields
| Field | Type | Description |
|---|---|---|
total | integer | Total number of tasks matching the query |
items | array | Task list; each item uses the structure below |
model | string | Resolved complete model name |
Task Fields
| Field | Type | Description |
|---|---|---|
id | string | Task ID |
model | string | Resolved complete model name |
status | string | Current task status |
content | object | Task output, returned only when the task has succeeded |
content.video_url | string | Time-limited signed URL for downloading the generated video |
usage | object | Token usage, returned only after task completion |
usage.completion_tokens | integer | Generated token count |
usage.total_tokens | integer | Total token count |
created_at | integer | Task creation time as a Unix timestamp in seconds |
updated_at | integer | Task update time as a Unix timestamp in seconds |
seed | integer | Generation seed, returned after task completion |
resolution | string | Resolution such as 720p, returned after task completion |
ratio | string | Video aspect ratio, returned only after success |
duration | integer | Video duration in seconds from 4 to 15, or -1 for automatic selection; returned only after success |
framespersecond | integer | Video frame rate such as 24, returned after task completion |
service_tier | string | Service tier such as default |
execution_expires_after | integer | Task result retention in seconds |
generate_audio | boolean | Whether audio is generated; defaults to true |
draft | boolean | Whether the output is a draft |
priority | integer | Task priority |
output_format | string | Output format such as mp4 |
Response Example
json
{
"total": 94,
"items": [
{
"id": "cgt-20260810111537-s92q8",
"model": "doubao-seedance-2-0-260128",
"status": "running",
"created_at": 1786331737,
"updated_at": 1786331737,
"service_tier": "default",
"execution_expires_after": 172800,
"generate_audio": true,
"draft": false,
"priority": 0,
"output_format": "mp4"
},
{
"id": "cgt-20260810104630-pn8c6",
"model": "doubao-seedance-2-0-260128",
"status": "succeeded",
"content": {
"video_url": "https://example.com/generated-video.mp4"
},
"usage": {
"completion_tokens": 411300,
"total_tokens": 411300
},
"created_at": 1786329995,
"updated_at": 1786330364,
"seed": 43602,
"resolution": "720p",
"ratio": "16:9",
"duration": 11,
"framespersecond": 24,
"service_tier": "default",
"execution_expires_after": 172800,
"generate_audio": true,
"draft": false,
"priority": 0,
"output_format": "mp4"
}
],
"model": "doubao-seedance-2-0-260128"
}Query One Task
GET /seedance/api/v3/contents/generations/tasks/{task_id}
Path Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Task ID returned by the create endpoint |
Request Example
bash
curl --location 'https://token.wdcloud.ai/seedance/api/v3/contents/generations/tasks/cgt-20260805135727-2vgwr' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>'Response Fields
The response uses the same fields as a task object in the list response. content and usage are returned only after completion, while generation parameters and result details may appear as the task progresses.
Response Example
json
{
"id": "cgt-20260810104630-pn8c6",
"model": "doubao-seedance-2-0-260128",
"status": "succeeded",
"content": {
"video_url": "https://example.com/generated-video.mp4"
},
"usage": {
"completion_tokens": 411300,
"total_tokens": 411300
},
"created_at": 1786329995,
"updated_at": 1786330364,
"seed": 43602,
"resolution": "720p",
"ratio": "16:9",
"duration": 11,
"framespersecond": 24,
"service_tier": "default",
"execution_expires_after": 172800,
"generate_audio": true,
"draft": false,
"priority": 0,
"output_format": "mp4"
}