Seedance 2.5 video editing

Before use, press Access Basics to set SHANHAI_BASE_URL (this site’s root address) and SHANHAI_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.

To edit a video with Seedance 2.5 or 2.5 Flash, provide at least one 4–30 s reference video. These metadata settings keep the original duration and aspect ratio — omni_reference_task_type = edit, ratio = adaptive, duration = -1.

On /v1/videos, top-level seconds: -1 also works. Use either form. To extend a video, use extend and ratio: "adaptive" and choose the extension length.

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": "保留船的动作与镜头轨迹,把天空换成晚霞。",
    "metadata": {
      "omni_reference_task_type": "edit", "duration": -1, "ratio": "adaptive", "resolution": "720p",
      "content": [{"type": "video_url", "role": "reference_video", "video_url": {"url": "https://media.example.com/boat.mp4"}}]
    }
  }'

Seedance portrait photos and videos · Video task status and downloads

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.