Seedance 2.0 Video
Seedance 2.0 Video uses an asynchronous video task API. Create a task first, then poll the retrieve endpoint for status and the final video URL.
For doubao-seedance-2.5, see the separate Seedance 2.5 guide.
Recommended integration
For new integrations, use the unified /v1/video/generations endpoint with the official-style top-level content array for text, images, videos, and audio.
Endpoints
| Capability | Method | Path |
|---|---|---|
| Create video task (v3 compatible) | POST | /api/v3/contents/generations/tasks |
| Retrieve video task (v3 compatible) | GET | /api/v3/contents/generations/tasks/{task_id} |
| Create video task | POST | /v1/video/generations |
| Retrieve video task | GET | /v1/video/generations/{task_id} |
| Create asynchronous image moderation task | POST | /v1/images/moderations/tasks |
| Retrieve asynchronous image moderation task | GET | /v1/images/moderations/tasks/{task_id} |
Supported Models
| Model | Notes |
|---|---|
doubao-seedance-2.0 | Seedance 2.0 standard model |
doubao-seedance-2.0-fast | Seedance 2.0 fast model; availability depends on account permissions and platform configuration |
Top-Level Parameters
| Parameter | Required | Description |
|---|---|---|
model | Yes | Seedance model name, such as doubao-seedance-2.0 |
content | Recommended | Multimodal content array for prompts, media inputs, media types, and roles |
duration | No | Output duration: integer 4 to 15 seconds, or -1 for intelligent selection; usually defaults to 5. This is not the reference-video duration |
ratio | No | Output aspect ratio. Supported values include adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
resolution | No | Output resolution. Common values are 480p, 720p, and 1080p; doubao-seedance-2.0-fast does not support 1080p |
generate_audio | No | Whether to generate synchronized audio. Set false for silent video |
watermark | No | Whether to add a watermark |
Examples
Text-to-Video
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.0",
"content": [
{
"type": "text",
"text": "A cinematic aerial shot of a futuristic cubic city at sunrise"
}
],
"duration": 5,
"resolution": "720p",
"ratio": "16:9",
"generate_audio": false,
"watermark": false
}'Image-to-Video
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.0",
"content": [
{
"type": "text",
"text": "Use image 1 as the product appearance reference. Generate a clean 5-second studio showcase while preserving the subject."
},
{
"type": "image_url",
"role": "reference_image",
"image_url": {
"url": "asset://reviewed-image-asset-id"
}
}
],
"duration": 5,
"resolution": "720p",
"ratio": "1:1",
"watermark": false
}'First And Last Frame
{
"model": "doubao-seedance-2.0",
"content": [
{
"type": "text",
"text": "Generate a smooth transition video from image 1 to image 2."
},
{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "asset://first-frame-asset-id"
}
},
{
"type": "image_url",
"role": "last_frame",
"image_url": {
"url": "asset://last-frame-asset-id"
}
}
],
"duration": 8,
"resolution": "720p",
"ratio": "16:9"
}Video Reference Input
{
"model": "doubao-seedance-2.0",
"content": [
{
"type": "text",
"text": "Use video 1 as the camera-motion and pacing reference, then generate a new scene in the same style."
},
{
"type": "video_url",
"role": "reference_video",
"video_url": {
"url": "https://example.com/reference.mp4"
}
}
],
"duration": 5,
"resolution": "720p",
"ratio": "16:9"
}Image and Audio Reference
{
"model": "doubao-seedance-2.0",
"content": [
{
"type": "text",
"text": "Use image 1 and audio 1 to create a product showcase video."
},
{
"type": "image_url",
"role": "reference_image",
"image_url": {
"url": "asset://reviewed-image-asset-id"
}
},
{
"type": "audio_url",
"role": "reference_audio",
"audio_url": {
"url": "https://example.com/reference.wav"
}
}
],
"duration": 5,
"ratio": "1:1",
"generate_audio": true
}content Items
| Field | Required | Description |
|---|---|---|
content[].type | Yes | text, image_url, video_url, or audio_url |
content[].text | Conditional | Used when type is text |
content[].image_url.url | Conditional | Public image URL, or an approved image asset://<asset ID> |
content[].video_url.url | Conditional | Public video URL. Cubicspaces checks that the URL is downloadable |
content[].audio_url.url | Conditional | Public audio URL, or an upstream-supported audio asset URL |
content[].role | Conditional | Media role; see the combination rules below |
Media Combination Rules
| Scenario | Recommended input | role requirements |
|---|---|---|
| Text-to-video | Text-only content | No media role needed |
| Single image-to-video | One image_url content item | first_frame, or omit the role |
| First-and-last-frame video | Two image_url content items | First image is first_frame; last image is last_frame |
| Multimodal reference video | Send reference images/videos/audios in content | Images use reference_image, videos use reference_video, audio uses reference_audio |
Limits and guidance:
- At most 9 reference images. First-and-last-frame requests should contain exactly 2 images.
- At most 3 reference videos. Each must be 2 to 15 seconds; their combined duration must not exceed 15 seconds.
- At most 3 reference audio files. Each must be 2 to 15 seconds; their combined duration must not exceed 15 seconds.
- Audio cannot be the only media input; provide at least one image or video as well.
- Do not mix first-frame / first-and-last-frame roles with
reference_image,reference_video, orreference_audio. - In prompts, refer to media by order, such as "image 1", "video 1", or "audio 1". Do not write Asset IDs directly in the prompt.
Media File Limits
These limits apply to input media. Set the output resolution separately with resolution.
| Check | Image | Video | Audio |
|---|---|---|---|
| Format | jpeg/jpg, png, webp, bmp, tiff, gif, heic, heif; ingested images must also pass moderation requirements | mp4, mov | wav, mp3 |
| Per-file size | Less than 30 MB | At most 200 MB | At most 15 MB |
| Width and height | Each 300–6000 px, inclusive | Each 300–6000 px, inclusive | Not applicable |
| Aspect ratio (width/height) | 0.4–2.5, inclusive | 0.4–2.5, inclusive | Not applicable |
| Total pixels (width × height) | No additional pixel-count range specified here | 407696–8295044, inclusive | Not applicable |
| Frame rate | Not applicable | 24–60 FPS | Not applicable |
| Per-file duration | Not applicable | 2–15 seconds | 2–15 seconds |
| Reference count | Up to 9; first-frame mode uses 1, first-and-last-frame mode uses 2 | Up to 3 | Up to 3 |
| Combined duration per media type | Not applicable | At most 15 seconds | At most 15 seconds |
Use H.264/AVC or H.265/HEVC video encoding. MP4 audio tracks support AAC or MP3; MOV also supports PCM. Renaming a file extension does not transcode its contents.
Input video may be 480p, 720p, 1080p, or 4K when it meets all constraints above. resolution selects the output tier. A 4K input is not an instruction to send resolution: "4k"; fast-model output tiers do not determine input dimensions either.
Video must satisfy side lengths, aspect ratio, pixel count, file size, frame rate, and duration together. For example, 640×480 meets side-length and ratio constraints but has only 307200 pixels and fails the video pixel minimum. 1280×720 meets the dimension checks. 6000×6000 exceeds the video pixel maximum despite valid side lengths. Do not apply the video pixel minimum to images.
Media URLs and Request Size
- This guide uses directly downloadable
http/httpsURLs, or a returnedasset_urlfor approved images. Local paths, login pages, file-sharing pages, and URLs requiring extra download headers are not direct media URLs. - Signed URLs must remain valid through queueing and media retrieval. Do not expire or delete the source immediately after submission. Browser playback does not prove server-side access.
- The official image/audio parameters support Base64, but compatibility across all access methods is not guaranteed here. Do not treat Base64, inline binary, or local paths as ordinary URLs. Image moderation accepts only public
http/httpsimage URLs. - The official JSON body limit is 64 MB. With URL references, this is the JSON size rather than the sum of remote file sizes; each remote file must still meet its individual limits.
Acceptance and Results
HTTP 200 and queued confirm acceptance, not final success. Poll the same task every 2 to 5 seconds. If creation times out without a task ID, check task records before submitting again. An amt_xxx moderation ID is neither a video task ID nor an asset_url.
The official service retains task records for 7 days; result video URLs normally last 24 hours and allow at most 100 downloads. Platform history does not make the file permanent or guarantee URL refresh after expiry. Download or transfer successful results promptly. Keep input URLs, approved asset URIs, and result URLs distinct.
Moderate Images
When Seedance uses real-person or library-managed image assets, submit public image URLs to the image moderation endpoint first. After approval and ingestion, use the returned items[].asset_url as content[].image_url.url.
Use the asynchronous moderation task API. Task creation immediately returns a task ID, and the caller polls for completion. This flow supports single images, multiple images, batch processing, and high concurrency.
Submit all images used by the same Seedance generation request together in one asynchronous task under the images array. Do not split them across separate moderation batches; separate batches can lead to inconsistent asset review batches or asset bindings.
POST /v1/images/moderations/tasks
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonRequest Parameters
| Parameter | Required | Description |
|---|---|---|
model | Yes | Used to select Seedance capability. Use doubao-seedance-2.0 |
images | Yes | Image URL array; all images used by the same generation request must be submitted in the same batch |
asset_type | No | Asset type, defaults to Image; keep the default for image moderation |
Images must be public http or https URLs. Base64 and inline binary content are not supported. One task accepts up to 20 images.
Request Example
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.0",
"images": [
"https://example.com/person.png",
"https://example.com/product.png"
],
"client_request_id": "seedance-20-batch-001"
}'Task creation immediately returns a task ID:
{
"code": "success",
"message": "",
"data": {
"id": "amt_xxx",
"model": "doubao-seedance-2.0",
"status": "queued",
"total": 2,
"completed": 0,
"approved": 0,
"rejected": 0,
"failed": 0
}
}Retrieve the moderation task:
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 image items with status: "approved" can use their asset_url.
Response and Retrieval
A successful create request returns a standard video task object:
{
"id": "task_xxx",
"task_id": "task_xxx",
"object": "video",
"model": "doubao-seedance-2.0",
"status": "queued",
"progress": 0,
"created_at": 1770000000
}Retrieve the task:
curl https://cubicspace.cn/v1/video/generations/task_xxx \
-H "Authorization: Bearer YOUR_API_KEY"Use the public task_xxx returned by task creation and the same API key that created the task.
After completion, read the video URL from data.result_url. data.usage.completion_tokens and data.usage.total_tokens are the final effective token counts after settlement. Before completion, data.usage may be omitted.
Status Values
| Query status | Meaning |
|---|---|
NOT_START / SUBMITTED / QUEUED | Waiting or queued |
IN_PROGRESS | Generating |
SUCCESS | Completed; read data.result_url and final data.usage |
FAILURE | Failed; inspect data.fail_reason |
Notes
- Use
ratio: "adaptive"when you are unsure, or omitratioand let upstream defaults apply. - Video reference URLs must be directly downloadable by the platform server. Do not pass URLs that require login, return HTML pages, or block server-side fetching.
- Image references can use public URLs or
asset://<asset ID>returned by the image moderation endpoint. - Actual model, resolution, and tool availability can vary by account permissions and platform configuration.
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
Explicit video editing and extension are Seedance 2.5 features. For InvalidParameter.TaskTypeConstraint on a 2.5 request, see editing and extension parameters.
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 fragment | What to check |
|---|---|
invalid role specified for image content | Check 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.PixelCountTooSmall | Multiply 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 message | Compare 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.FormatUnsupported | Check 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 code | What to do |
|---|---|
InputTextSensitiveContentDetected | Locate the text at content[n] and review the prompt content identified in the message. |
InputVideoSensitiveContentDetected | Review 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.