Skip to main content
POST

Authorizations

Authorization
string
header
required

##All endpoints require Bearer Token authentication##

Get API Key:

Visit the API Key Management Page to obtain your API Key

Add to request header:

Body

application/json
model
enum<string>
default:seedance-2.5-draft-to-video
required

Video generation model name

Available options:
seedance-2.5-draft-to-video
Example:

"seedance-2.5-draft-to-video"

source_task_id
string
required

Task ID of a completed Seedance 2.5 draft

Where to find it: The id field returned when creating a draft (draft: true)

Requirements:

  1. The task must belong to the current account
  2. The task must use one of the five Seedance 2.5 generation models
  3. The task must have been created with draft: true
  4. The task status must be completed
  5. The current time must be earlier than draft_expires_at in the task query response
Example:

"task-unified-1774857405-abc123"

output_format
enum<string>
default:mp4

Output container format, defaults to mp4

Options:

  • mp4: H.264 encoding with the best compatibility and standard color precision, this is the default
  • mov: H.264 + yuv444p chroma sampling + PCM audio for higher color fidelity, recommended for color grading, keying and compositing workflows. Browser inline playback may not support it; download and play with VLC / mpv / ffplay. No extra charge

The draft's output format is not inherited. Specify mov here if required

Available options:
mp4,
mov
Example:

"mp4"

callback_url
string<uri>

HTTPS callback URL for task completion

Callback timing:

  • Triggered when the task is completed or failed
  • Sent after billing confirmation is complete

Security restrictions:

  • Only HTTPS protocol is supported
  • Callbacks to private IP addresses are prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
  • URL length must not exceed 2048 characters

Callback mechanism:

  • Timeout: 10 seconds
  • Up to 3 retries after failure (at 1/2/4 seconds after failure respectively)
  • Callback response body format is consistent with the task query endpoint response format
  • A 2xx status code is considered successful; other status codes trigger retries
Example:

"https://your-domain.com/webhooks/video-task-completed"

Response

Final video conversion task created successfully

created
integer

Task creation timestamp

Example:

1761313744

id
string

Task ID

Example:

"task-unified-1774857405-abc123"

model
string

Actual model name used

Example:

"seedance-2.5-draft-to-video"

object
enum<string>

Specific type of the task

Available options:
video.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Video task details

type
enum<string>

Output type of the task

Available options:
text,
image,
audio,
video
Example:

"video"

usage
object

Usage and billing information