Skip to main content
POST
Create video task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Validation notes: prompt is required; model, ratio, and function_mode must use supported values; duration must be between 4 and 15; when function_mode=first_last_frames, at most 2 images are allowed; when function_mode=omni_reference, audio-only input is not allowed, so if audio_urls is provided, include at least one image or video.

prompt
string
required

Text prompt for video generation.

model
enum<string>
default:seedance_2_0
Available options:
seedance_2_0,
seedance_2_0_fast
function_mode
enum<string>
default:omni_reference
Available options:
first_last_frames,
omni_reference
ratio
enum<string>
default:16:9
Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
duration
integer
default:5
Required range: 4 <= x <= 15
image_urls
string<uri>[]
Maximum array length: 9
audio_urls
string<uri>[]
Maximum array length: 3
video_urls
string<uri>[]
Maximum array length: 3

Response

Task created successfully

code
integer
Example:

200

trace_id
string
Example:

"45c30d76f06549b199a3775544523689"

message
string | null
Example:

null

data
object