Skip to content

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 ​

CapabilityMethodPath
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 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}

Supported Models ​

ModelNotes
doubao-seedance-2.0Seedance 2.0 standard model
doubao-seedance-2.0-fastSeedance 2.0 fast model; availability depends on account permissions and platform configuration

Top-Level Parameters ​

ParameterRequiredDescription
modelYesSeedance model name, such as doubao-seedance-2.0
contentRecommendedMultimodal content array for prompts, media inputs, media types, and roles
durationNoOutput duration: integer 4 to 15 seconds, or -1 for intelligent selection; usually defaults to 5. This is not the reference-video duration
ratioNoOutput aspect ratio. Supported values include adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
resolutionNoOutput resolution. Common values are 480p, 720p, and 1080p; doubao-seedance-2.0-fast does not support 1080p
generate_audioNoWhether to generate synchronized audio. Set false for silent video
watermarkNoWhether to add a watermark

Examples ​

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.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 ​

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.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 ​

json
{
  "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 ​

json
{
  "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 ​

json
{
  "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 ​

FieldRequiredDescription
content[].typeYestext, image_url, video_url, or audio_url
content[].textConditionalUsed when type is text
content[].image_url.urlConditionalPublic image URL, or an approved image asset://<asset ID>
content[].video_url.urlConditionalPublic video URL. Cubicspaces checks that the URL is downloadable
content[].audio_url.urlConditionalPublic audio URL, or an upstream-supported audio asset URL
content[].roleConditionalMedia role; see the combination rules below

Media Combination Rules ​

ScenarioRecommended inputrole requirements
Text-to-videoText-only contentNo media role needed
Single image-to-videoOne image_url content itemfirst_frame, or omit the role
First-and-last-frame videoTwo image_url content itemsFirst image is first_frame; last image is last_frame
Multimodal reference videoSend reference images/videos/audios in contentImages 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, or reference_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.

CheckImageVideoAudio
Formatjpeg/jpg, png, webp, bmp, tiff, gif, heic, heif; ingested images must also pass 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–15 seconds2–15 seconds
Reference countUp to 9; first-frame mode uses 1, first-and-last-frame mode uses 2Up to 3Up to 3
Combined duration per media typeNot applicableAt most 15 secondsAt 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/https URLs, or a returned asset_url for 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/https image 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.

http
POST /v1/images/moderations/tasks
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Request Parameters ​

ParameterRequiredDescription
modelYesUsed to select Seedance capability. Use doubao-seedance-2.0
imagesYesImage URL array; all images used by the same generation request must be submitted in the same batch
asset_typeNoAsset 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 ​

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.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:

json
{
  "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:

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 image items with status: "approved" can use their asset_url.

Response and Retrieval ​

A successful create request returns a standard video task object:

json
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "video",
  "model": "doubao-seedance-2.0",
  "status": "queued",
  "progress": 0,
  "created_at": 1770000000
}

Retrieve the task:

bash
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 statusMeaning
NOT_START / SUBMITTED / QUEUEDWaiting or queued
IN_PROGRESSGenerating
SUCCESSCompleted; read data.result_url and final data.usage
FAILUREFailed; inspect data.fail_reason

Notes ​

  • Use ratio: "adaptive" when you are unsure, or omit ratio and 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 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.