Seedance 2.0
Use Seedance 2.0 native task APIs for create, get, and list where the token168 deployment enables the bridge.
Creates a Seedance 2.0 native task. The route authenticates with the token168 API key, selects an enabled Seedance-capable channel, then stores a public task ID for polling.
This is a minimal Seedance 2.0 first-frame example: text and image_url items belong in top-level content. Confirm the model ID with GET /v1/models and replace the example image URL. Model-specific parameter limits are listed below.
For Seedance 2.0 first-frame and first-and-last-frame generation, a fixed ratio needs a compatible channel in your group. Set ratio to adaptive to follow the first image. Seedance 2.5 requires adaptive in those modes. For a rejected submission, read error.message for the reason.
POST /api/v3/contents/generations/taskscurl https://www.token168.cc/api/v3/contents/generations/tasks \
-H "Authorization: Bearer $TOKEN168_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dreamina-seedance-2-0-260128",
"content": [
{"type": "text", "text": "A futuristic tech city, but with a strange, surreal quality. People are more open and free, focused on developing themselves. The city blends pristine natural ecosystems with modern technology. Residential areas are highly ecological, green development is advanced, all power comes from green electricity, and controlled nuclear fusion, space elevators, and extremely deep underground spaces have already been achieved."},
{"type": "image_url", "image_url": {"url": "https://example.com/reference.png"}, "role": "first_frame"}
],
"duration": 4,
"resolution": "480p",
"ratio": "adaptive",
"generate_audio": false,
"watermark": false
}'Field boundaries
| Field | Behavior | Error |
|---|---|---|
| callback_url | Not supported. | OperationDenied.CallbackNotSupported |
| service_tier | Only omitted or default is accepted. | InvalidParameter.Unsupported |
| duration | Accepted values are -1 or 4 through 15. | InvalidParameter.InvalidValue |
| frames | Not supported for Seedance 2.0. | InvalidParameter.Unsupported |
| seed | Not supported for Seedance 2.0. | InvalidParameter.Unsupported |
| camera_fixed | Not supported for Seedance 2.0. | InvalidParameter.Unsupported |
| DELETE | DELETE and cancel are not supported and must not imply refund or state change. | Unsupported method |
Generate video from media URLs
For automatic asset preparation from HTTPS URLs, use the separate URL video entry. It still requires an enabled asset key; existing native and manual-asset workflows remain available.
Fetches one Seedance native task for the current token user. The API returns native status, timestamps, request metadata, video URL, and usage when available.
Poll the native endpoint with the task ID returned on creation. Download content.video_url only when status is succeeded; a returned task ID alone does not mean generation has finished.
GET /api/v3/contents/generations/tasks/{id}curl https://www.token168.cc/api/v3/contents/generations/tasks/task_123 \
-H "Authorization: Bearer $TOKEN168_API_KEY"Lists recent Seedance native tasks for the current token user. Supported query parameters include page_num, page_size, filter.task_ids, filter.model, filter.status, and filter.service_tier.
GET /api/v3/contents/generations/taskscurl "https://www.token168.cc/api/v3/contents/generations/tasks?page_num=1&page_size=10&filter.model=doubao-seedance-2-0-260128&filter.status=succeeded&filter.task_ids=task_123&filter.service_tier=default" \
-H "Authorization: Bearer $TOKEN168_API_KEY"