Skip to content

Seedance 2.5 Video ​

Seedance 2.5 uses an asynchronous video task API: create a task first, then poll for its status and final video URL. Its unified API model name is doubao-seedance-2.5.

Output resolutions are 480p, 720p, and 1080p. Set "resolution": "1080p" in the create request for 1080p video.

For the Pro/Fast 2.0 models, see the separate Seedance 2.0 guide.

Endpoints ​

For character replacement or background edits that preserve source motion, see the video editing guide. Send explicit omni_reference_task_type: "edit", ratio: "adaptive", and duration: -1.

CapabilityMethodPath
Create video task (official-compatible)POST/api/v3/contents/generations/tasks
Retrieve video task (official-compatible)GET/api/v3/contents/generations/tasks/{task_id}
Create video taskPOST/v1/video/generations
Retrieve video taskGET/v1/video/generations/{task_id}
Create asynchronous image moderation taskPOST/v1/images/moderations/tasks
Retrieve asynchronous image moderation taskGET/v1/images/moderations/tasks/{task_id}

Parameters and Capabilities ​

ParameterDescription
modelUse doubao-seedance-2.5 with both the unified and official-compatible APIs
contentSupports text, image_url, video_url, and audio_url
omni_reference_task_typeauto, reference, edit, or extend; use explicit edit for video editing, as shown in the editing guide
durationOutput duration of 4 to 30 seconds, or -1 for intelligent selection; editing requires -1 to follow the selected source
resolution480p, 720p, or 1080p; defaults to 720p
ratioadaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16
generate_audioWhether to generate synchronized audio; not lossless preservation of the source soundtrack
watermarkWhether to add a watermark
toolsUse [ { "type": "web_search" } ] with text-only input when available. Do not combine with images, video, or audio

Output Pixel Sizes ​

Resolution16:94:31:13:49:1621:9
480p854×480752×560640×640560×752480×854992×432
720p1280×7201112×834960×960834×1112720×12801470×630
1080p1920×10801664×12481440×14401248×16641080×19202206×946

1080p Request Example ​

Both the unified and official-compatible video APIs accept resolution: "1080p". The example below uses the official-compatible API. For the unified API, replace the request path with /v1/video/generations and keep the same body.

bash
curl -X POST https://cubicspace.cn/api/v3/contents/generations/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "doubao-seedance-2.5",
  "content": [
    {
      "type": "text",
      "text": "A cinematic aerial shot of a futuristic city waking at sunrise, with a smooth forward camera movement"
    }
  ],
  "duration": 5,
  "resolution": "1080p",
  "ratio": "16:9",
  "generate_audio": false,
  "watermark": false
}'

After creation, query /api/v3/contents/generations/tasks/{task_id}. A successful result contains the video URL in content.video_url.

Standard Seedance 2.5 uses 10-bit color and H.265/HEVC for 1080p output. Some browsers or players cannot play this format directly. Use a player supporting HEVC 10-bit, or transcode the video for playback.

content Item Format ​

content is an array whose items are selected by type. Image, video, and audio URLs must be nested inside the corresponding { "url": "..." } object; do not pass them as plain strings.

typeRequired fieldOptional roleDescription
texttextNoneText prompt; multiple text items are used in order
image_urlimage_url.urlreference_image, first_frame, last_frameReference image, first frame, or last frame; for asynchronously moderated images, use the returned asset_url
video_urlvideo_url.urlreference_videoReference video; defaults to a reference video when role is omitted
audio_urlaudio_url.urlreference_audioReference audio; defaults to reference audio when role is omitted
json
[
  { "type": "text", "text": "Describe the video to generate" },
  { "type": "image_url", "role": "reference_image", "image_url": { "url": "asset://reviewed-image-id" } },
  { "type": "video_url", "role": "reference_video", "video_url": { "url": "https://example.com/reference.mp4" } },
  { "type": "audio_url", "role": "reference_audio", "audio_url": { "url": "https://example.com/reference.mp3" } }
]

Common combinations include text only, text plus image, text plus video, text plus audio, and multimodal combinations of images, videos, and audio. Audio cannot be the only input; content must contain at least one text, image_url, or video_url item.

The API accepts up to 30 reference images, 10 reference videos, and 10 reference audio files. Reference audio cannot be the only input; combine it with text, an image, or a video, for example, text plus audio. Use ratio: "adaptive" for first-frame or first-and-last-frame tasks.

Input Media Limits ​

These limits apply to input media. Set the output resolution separately with resolution.

CheckImageVideoAudio
Formatjpeg/jpg, png, webp, bmp, tiff, gif, heic, heif; ingested images must also satisfy moderation requirementsmp4, movwav, mp3
Per-file sizeLess than 30 MBAt most 200 MBAt most 15 MB
Width and heightEach 300–6000 px, inclusiveEach 300–6000 px, inclusiveNot applicable
Aspect ratio (width/height)0.4–2.5, inclusive0.4–2.5, inclusiveNot applicable
Total pixels (width × height)No additional pixel-count range specified here407696–8295044, inclusiveNot applicable
Frame rateNot applicable24–60 FPSNot applicable
Per-file durationNot applicable2–30 seconds for non-editing tasks; 4–30 seconds for editing2–30 seconds
Reference countUp to 30; first-frame mode uses 1, first-and-last-frame mode uses 2Up to 10Up to 10
Combined duration per media typeNot applicableAt most 30 secondsAt most 30 seconds

Use H.264/AVC or H.265/HEVC video encoding. MP4 audio tracks support AAC or MP3; MOV also supports PCM. Renaming an extension does not transcode the file.

Input video may be 480p, 720p, 1080p, or 4K when it meets all limits above; output still uses the 480p, 720p, or 1080p tiers documented here. Input duration and requested output duration differ for reference generation. Editing requires duration: -1 to follow the selected source.

Dimension Examples ​

Video side lengths, aspect ratio, and total pixels must all pass. These examples check dimensions only; file size, frame rate, and duration still require validation.

Video dimensionsTotal pixelsDimension check
640×480307200Fails the pixel minimum despite valid side lengths and ratio
1280×720921600Passes
1920×10802073600Passes
3840×21608294400Passes; does not imply 4k output support
6000×600036000000Fails the pixel maximum

Do not apply the video pixel minimum to images. Crop or pad out-of-range aspect ratios and recheck; proportional resizing does not change the ratio.

Media URLs and Request Size ​

  • Use directly downloadable http/https URLs, or approved image asset_url values unchanged. Local paths, sharing pages, HTML login pages, and links requiring extra download headers are not direct media URLs.
  • Signed URLs must remain valid through queueing and retrieval. Acceptance does not mean the media has already been read; do not immediately delete the source.
  • The official JSON body limit is 64 MB. For URL references, this is the JSON size rather than the combined remote file sizes. Per-file limits still apply.
  • This guide uses URLs or approved image URIs. Official image/audio Base64 support does not guarantee compatibility across all access methods. Image moderation accepts only public http/https image URLs.

Official Capabilities and This API ​

CapabilityThis API's documented scope
Audio-only inputOfficial 2.5 supports it; this API still requires non-empty text, an image, or a video alongside audio. Text plus audio is supported; audio_url alone is not
30 generation images versus moderationThe generation limit does not make moderation a 30-image operation. Asynchronous moderation accepts 20 images per batch. Keep images requiring one moderation batch within 20; do not split batches to bypass this
First frame, first and last frames, multimodal referencesDo not mix these modes or add reference_image/reference_video/reference_audio to a first_frame/last_frame request. Frame-based tasks use ratio: "adaptive"; use frame roles when preserving endpoints matters
Editing and extensionSend explicit edit or extend; editing locks adaptive/-1, extension locks adaptive. Reference media by order, such as video 1 and image 1, rather than relying on inferred task type
Two-stage Draft, format selection, extra fieldsOfficial two-stage draft_task, output_format, safety_identifier, and other unlisted fields are outside this page's guaranteed compatibility. A compatible URL does not imply every official field is supported
Retrieval, cancellation, deletionThis page documents creation and retrieval by ID only. Do not assume official list, cancel, or delete operations that are not documented here

Image approval does not guarantee final generation approval; content or copyright checks can still fail. Changing dimensions or disabling audio does not resolve those restrictions.

Retrieval and Result Lifetime ​

HTTP 200 and queued confirm acceptance, not completion. Poll the same public task ID every 2 to 5 seconds. If creation times out without an ID, check task records before retrying. Do not interchange an amt_xxx moderation ID, an asset://... URI, and a task_xxx video ID.

The official service retains video task records for 7 days; result URLs normally last 24 hours and allow at most 100 downloads. Platform history does not make the file permanent or guarantee refresh after expiry. Download or transfer successful results promptly.

Text-to-Video ​

bash
curl -X POST https://cubicspace.cn/v1/video/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "doubao-seedance-2.5",
    "content": [{
      "type": "text",
      "text": "A cinematic aerial shot of a futuristic city waking at sunrise"
    }],
    "duration": 5,
    "resolution": "720p",
    "ratio": "16:9",
    "generate_audio": true
  }'

A successful create request returns task_xxx with initial status queued.

Asynchronous Image Moderation ​

When image-to-video uses library-managed reference images, create an asynchronous moderation task first. Submit all images used by one video generation request together in the same images array.

bash
curl -X POST https://cubicspace.cn/v1/images/moderations/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "doubao-seedance-2.5",
    "images": [
      "https://example.com/person.png",
      "https://example.com/product.png"
    ],
    "client_request_id": "seedance-25-batch-001"
  }'

Task creation immediately returns amt_xxx. Retrieve the result with:

bash
curl https://cubicspace.cn/v1/images/moderations/tasks/amt_xxx \
  -H "Authorization: Bearer YOUR_API_KEY"

Poll every 2 to 5 seconds. Processing statuses are queued and running; terminal statuses are succeeded, partial_succeeded, failed, and expired. Only approved items can use their asset_url for generation.

Image-to-Video ​

json
{
  "model": "doubao-seedance-2.5",
  "content": [
    { "type": "text", "text": "Preserve the person in image 1 while they play with a dog in a sunny meadow" },
    {
      "type": "image_url",
      "role": "reference_image",
      "image_url": { "url": "asset://reviewed-person-asset-id" }
    }
  ],
  "duration": 5,
  "resolution": "720p",
  "ratio": "16:9"
}

First and Last Frame ​

json
{
  "model": "doubao-seedance-2.5",
  "content": [
    { "type": "text", "text": "Transition smoothly from image 1 to image 2" },
    { "type": "image_url", "role": "first_frame", "image_url": { "url": "asset://first-frame-id" } },
    { "type": "image_url", "role": "last_frame", "image_url": { "url": "asset://last-frame-id" } }
  ],
  "duration": 8,
  "resolution": "720p",
  "ratio": "adaptive"
}

Text and Audio Reference ​

json
{
  "model": "doubao-seedance-2.5",
  "content": [
    { "type": "text", "text": "Create a cinematic dance video that follows the rhythm of audio 1" },
    { "type": "audio_url", "role": "reference_audio", "audio_url": { "url": "https://example.com/reference.wav" } }
  ],
  "duration": 10,
  "resolution": "720p",
  "ratio": "16:9"
}

A request containing only audio_url is rejected. When using reference audio, also provide at least one non-empty text, image, or video item.

Official-Compatible API ​

Existing official-style clients can use:

http
POST /api/v3/contents/generations/tasks
GET /api/v3/contents/generations/tasks/{task_id}

Use model name doubao-seedance-2.5. Responses are unwrapped official-compatible objects.

Retrieve a Task ​

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

Use the public task_xxx returned by creation and the same API key that created it. Read the final video URL from data.result_url. data.usage.completion_tokens and data.usage.total_tokens are the final effective token counts after completion.

StageStatus
ProcessingNOT_START, SUBMITTED, QUEUED, IN_PROGRESS
SuccessSUCCESS
FailureFAILURE

Image, video, and audio URLs must be directly downloadable by the platform server. Result video URLs can expire, so download and retain the file promptly.

Error Codes ​

If submission fails, read the error code and message in that response. If you already have a task_id, poll the existing task. On the unified API, read data.fail_reason when data.status is FAILURE. On the native-compatible API, read error. A reference to content[n] identifies the input at zero-based index n in your request.

Generated video failed moderation ​

OutputVideoSensitiveContentDetected or OutputVideoSensitiveContentDetected.PolicyViolation means the generated video failed output moderation. Approved reference images and the finished video undergo separate reviews. Check the rights to the source material and any copyrighted content in the result when the message explicitly mentions copyright. For a generic moderation message, show the reason as returned.

Editing or extension parameters conflict ​

InvalidParameter.TaskTypeConstraint means the parameters conflict with the detected task type. For the 2.5 series, choose the fields below according to your intent. With auto, this error can also appear after the task starts.

IntentParameters
Edit a videoSupply a 4–30 second source as reference_video. Set omni_reference_task_type: "edit", ratio: "adaptive", and duration: -1 to retain the source duration.
Extend a videoSet omni_reference_task_type: "extend" and ratio: "adaptive". Set duration to the number of seconds to add. For example, 5 adds five seconds.

Invalid media parameters or image role ​

Submission can return HTTP 400 with InvalidParameter. A failed task can also return a more specific code. Locate the input named in the message, then check the corresponding field.

Error code or message fragmentWhat to check
invalid role specified for image contentCheck the image item's role. Use reference_image for an ordinary reference, first_frame for the opening frame, and last_frame for the closing frame.
InvalidParameter.PixelCountTooSmallMultiply the video width by its height. For example, 640 × 360 is 230,400 pixels, below the minimum of 407,696.
InvalidParameter.HeightTooLarge or a width or height limit in the messageCompare the source image dimensions with the reported limits. If a message starts with Error while downloading image and gives the actual dimensions, check those dimensions first.
InvalidParameter.FormatUnsupportedCheck the actual container and codec. If the detected format is AVI, convert the video to an MP4 or MOV that meets the input requirements. Renaming the file extension leaves the format unchanged.

Input text, video, or portrait failed moderation ​

Error codeWhat to do
InputTextSensitiveContentDetectedLocate the text at content[n] and review the prompt content identified in the message.
InputVideoSensitiveContentDetectedReview the identified input video and use reference material that meets the content requirements.
InputImageSensitiveContentDetected.PrivacyInformation (sometimes shown as ***.PrivacyInformation)Check the image for a real person's likeness and confirm you have permission to use it. If registration is required, submit it with the generation model to POST /v1/images/moderations/tasks. Poll GET /v1/images/moderations/tasks/{task_id}. Find the matching image in data.items[]. Once its status is approved, copy that item's full asset_url into content[].image_url.url and generate with the same model.

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.