doubao-seedance-2-5-260628
Seedance 2.5
Before use, press Access Basics to set
SHANHAI_BASE_URL(this site’s root address) andSHANHAI_API_KEY(this site’s token). The following command is suitable for Bash; the material example address must be replaced with a real address that can be downloaded directly.
request parameters
| Parameter | Value |
|---|---|
model |
doubao-seedance-2-5-260628 |
seconds |
4–30 s |
metadata.resolution |
480p / 720p / 1080p |
prompt |
A small sailboat at sea. The camera slowly moves closer. |
metadata.ratio |
16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive |
metadata.content |
Reference images and videos |
metadata.generate_audio |
true / false |
Request Example
curl --fail-with-body "$SHANHAI_BASE_URL/v1/videos" \
-H "Authorization: Bearer $SHANHAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2-5-260628",
"prompt": "海面上的一艘小帆船,镜头缓慢靠近。",
"seconds": "4",
"metadata": {"resolution": "480p"}
}'
POST /v1/videos → id → GET /v1/videos/{task_id} → GET /v1/videos/{task_id}/content
Video task status and downloads
API: Generate directly from a photo link
With the consent of the person pictured, you can generate a video directly from an HTTPS photo link. No asset registration is required.
Replace image_url.url with a direct HTTPS link to the original photo, not a sharing page. It must download without signing in and stay valid until the video task finishes.
curl --fail-with-body "$SHANHAI_BASE_URL/v1/videos" \
-H "Authorization: Bearer $SHANHAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2-5-260628",
"prompt": "The person in the photo looks at the camera and smiles.",
"seconds": "4",
"metadata": {
"resolution": "480p",
"content": [
{"type": "image_url", "role": "reference_image", "image_url": {"url": "https://media.example.com/portrait.jpg"}}
]
}
}'
Seedance portrait photos and videos
encountered a problem
If you encounter problems with calling or configuration, please contact the site customer service and provide the model name, error time and error information to facilitate troubleshooting.