Skip to content

Seedance 2.5 Video Editing ​

Use doubao-seedance-2.5 to edit an existing video, for example to replace a character, change a background, or add or remove objects. Editing uses the existing video task endpoints, not a separate edit URL.

This guide applies to standard Seedance 2.5, not models with super-resolution in their names.

Preflight Checklist ​

Field or inputEditing requirement
modeldoubao-seedance-2.5
omni_reference_task_typeExplicitly set to edit at the top level of the JSON body
Source videoAt least one video_url in content, with role reference_video
Source duration4 to 30 seconds
Source dimensionsWidth and height each 300–6000 px; width/height 0.4–2.5; width × height 407696–8295044, all inclusive
Source filemp4 or mov, H.264/AVC or H.265/HEVC; at most 200 MB per file; 24–60 FPS
Multiple videosUp to 10, combined duration at most 30 seconds; multiple clips are not automatically concatenated into one editing target
ratioMust be adaptive, following the selected source video
durationMust be the number -1, following the selected source duration
resolution480p, 720p, or 1080p
Reference imagesUse reference_image; complete image moderation when required

See input media limits for image dimensions, audio constraints, and input/output differences. Generation accepts up to 30 reference images, but asynchronous image moderation accepts 20 per batch. Keep images requiring a single approval batch within 20; do not split batches to bypass this.

The model selects the video to edit from the prompt; output ratio and duration follow that selected source. The combined input-duration limit is not a sum of output durations. The 2–30-second non-editing input range does not permit a two-second editing source.

Do not send a fixed ratio: "16:9" or duration: 9 for editing. To edit only nine seconds, trim the source to the intended segment first and submit that clip. The editing duration field does not crop the output.

Media URLs must be directly downloadable by the service, without login pages. Submit reference images in the same Seedance 2.5 moderation batch and use each returned asset_url unchanged. Do not put Asset IDs in the prompt.

Complete Create Example ​

Replace the source video URL, approved image asset URI, and platform API key. Identify each reference by its media-specific order, such as video 1 and image 1, and state what to change and preserve.

bash
curl -X POST 'https://www.cubicspace.cn/v1/video/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "doubao-seedance-2.5",
    "omni_reference_task_type": "edit",
    "content": [
      {
        "type": "text",
        "text": "Edit video 1: replace the person with the character in image 1. Preserve the UI, character motion, camera movement, background, and lighting. Only replace the character appearance."
      },
      {
        "type": "video_url",
        "role": "reference_video",
        "video_url": { "url": "https://YOUR_MEDIA_HOST/original.mp4" }
      },
      {
        "type": "image_url",
        "role": "reference_image",
        "image_url": { "url": "asset://REPLACE_WITH_APPROVED_ASSET_ID" }
      }
    ],
    "resolution": "720p",
    "ratio": "adaptive",
    "duration": -1,
    "generate_audio": true
  }'

generate_audio controls audio generation; it does not promise lossless preservation of the original audio track. Requests to preserve the UI, movement, or lighting are editing instructions, not guarantees of pixel-identical or frame-identical output. Inspect the result.

For turnaround views or face details, append more reference_image items and explain the role of image 2 or image 3 in the prompt. Do not label character references as first_frame, which would mix first-frame generation with video editing.

A successful create response contains a public task ID. Relevant fields:

json
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "model": "doubao-seedance-2.5",
  "status": "queued"
}

Polling and Results ​

bash
curl 'https://www.cubicspace.cn/v1/video/generations/task_xxx' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Use the returned public task ID and the same platform API key. Poll every 2 to 5 seconds. For the unified endpoint, read data.status:

StatusAction
NOT_START, SUBMITTED, QUEUED, IN_PROGRESSContinue polling the same task; do not create another
SUCCESSRead data.result_url and save the video promptly
FAILUREInspect data.fail_reason, correct the request, and then decide whether to create a replacement

HTTP 200 and queued mean the task was accepted, not that generation succeeded. Editing a query response cannot rerun a failed task. If creation times out without a task ID, check task records before submitting again.

Official-Compatible Endpoints ​

The same JSON body also works with:

http
POST https://www.cubicspace.cn/api/v3/contents/generations/tasks
GET https://www.cubicspace.cn/api/v3/contents/generations/tasks/{task_id}

Keep omni_reference_task_type at the top level of the HTTP JSON body; do not wrap it in metadata or extra_body. Official-compatible query responses have no data wrapper. Read status; success is succeeded, with the video at content.video_url. On failure, inspect error.code and error.message. Do not mix response fields from the two protocols.

Common Errors ​

See Seedance 2.5 error codes for input and output moderation, media errors, and extension parameters.

See the official Volcengine Ark error codes for parameter validation, rate limits, and other errors. Use the error details returned by the API or task to identify the cause.

Error or symptomAction
InvalidParameter.TaskTypeConstraint requires ratio=adaptive and duration=-1Correct the create request with explicit edit and these values; verify the source is 4 to 30 seconds
Reference generation is interpreted as editingFor a new video, use omni_reference_task_type: "reference" and clearly request only style or motion references; do not simultaneously ask to preserve the source and replace only its character
Unreadable media or failed moderationCheck URL accessibility, format, permissions, and moderation results; an unapproved image is not an approved asset
Content or copyright restrictionReview the specific media and editing request; changing ratio or duration does not resolve content restrictions

Applications should expose a separate video editing mode that sends edit, adaptive, and -1, with ratio and duration shown as following the source. Keep ordinary reference generation separate; not every request containing a video is an edit.