Skip to main content
POST
Create video generation task (seedance compatible protocol)
This endpoint is fully compatible with the official Seedance protocol, so you can reuse the parameter structure from the official documentation. model must be a platform model identifier, which the gateway rewrites to the channel model name after routing. callback_url is overridden and injected by the gateway with a signed default callback address.

Features

  • The content element list supports five types: text, image, video, audio, and draft task
  • Supports first frame / last frame / reference images (1-9 for the 2.0 series) / reference video / reference audio
  • Supports synchronized audio via generate_audio (Seedance 2.0 series and 1.5 Pro only)
  • Supports online/offline inference via service_tier and task timeout via execution_expires_after
  • Supports draft mode draft (1.5 Pro only), last frame return return_last_frame, and task priority priority (2.0 only)
  • Supports video editing (2.5 only), edit the visuals or audio of the original video, adding, deleting, or modifying objects in the video, or redrawing or repairing part of the frame.
  • Supports Video extension (2.5 only), Extend the original video forward or backward.

Authentication

Include the Authorization header in the format Bearer YOUR_API_KEY.

Supported Video Models

Quick example

A successful creation returns the task ID:

Next steps

Headers

Authorization
string
required

API Key token (Bearer sk-xxx)

Content-Type
string

Body

application/json
model
string
required

Platform model identifier (e.g. seedance-2.0), rewritten to the channel model name by the gateway after routing

callback_url
string

Result callback URL (the upstream POSTs notifications on task status changes; when the gateway has a callback configured, it overrides and injects a signed default address)

return_last_frame
boolean

Whether to return the last frame image of the generated video (PNG, same resolution as the video, no watermark), default false; can be used as the first frame of the next task to quickly generate multiple consecutive video segments

service_tier
string

Service tier: default online inference (default) / flex offline inference (50% of the online price); the Seedance 2.0 series only supports online inference and does not support this parameter

execution_expires_after
integer

Task timeout threshold (seconds), counted from created_at, range [3600, 259200], default 172800 (48 hours); the task is automatically terminated and marked as expired after timeout

camera_fixed
boolean

Whether to fix the camera, default false; not supported in reference image scenarios and the Seedance 2.0 series

generate_audio
boolean

Whether to generate audio synchronized with the visuals (voice/sound effects/background music), default true; only supported by the Seedance 2.0 series and 1.5 Pro

safety_identifier
string

Unique end-user identifier (for platform security audit, English only, max 64 characters; it is recommended to pass a hash of the username/user ID/email to avoid leaking privacy)

content
object[]

Content element list (text prompt / image / video / audio / draft task ID)

resolution
string

Generated video resolution: 480p / 720p / 1080p / 4k; the Seedance 2.0 series and 1.5 Pro default to 720p, 1.0 Pro / Pro Fast default to 1080p; 1080p is not supported by 2.0 Fast / 2.0 Mini, 4k is only supported by Seedance 2.0

ratio
string

Generated video aspect ratio: 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive (intelligently selected based on the input)

duration
integer

Generated video duration (integer seconds); choose either duration or frames, frames takes precedence, default 5; Seedance 1.0 Pro / Pro Fast: [2, 12]; 1.5 Pro: [4, 12] or -1 (model intelligently selects the duration); Seedance 2.0 series: [4, 15] or -1

frames
integer

Generated video frame count (choose either duration or frames, frames takes precedence), used to generate fractional-second durations; only supported by Seedance 1.0 Pro / Pro Fast (not supported by the 2.0 series and 1.5 Pro), range [29, 289] and must satisfy 25 + 4n (frame rate 24, frames = seconds x 24)

seed
integer<int64>

Random seed, range [-1, 2^32-1], default -1 (random); not supported by the Seedance 2.0 series

watermark
boolean

Whether the generated video carries an "AI Generated" watermark, default false

draft
boolean

Whether to enable draft mode (480p preview video at a lower cost for quick validation), default false; only supported by Seedance 1.5 Pro; draft mode does not support last frame return or offline inference

priority
integer

Task execution priority 0-9, higher values queue earlier, default 0; only supported by Seedance 2.0, only affects the queue order of the same Endpoint, not supported for offline inference (flex)

Response

200 - application/json
id
string

Task ID