Skip to main content
POST
Create video generation and wait

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required
Example:

"seedance-2.0"

prompt
string
required
duration
string
Example:

"10s"

resolution
string
Example:

"720p"

ratio
string
Example:

"16:9"

input_images
string<uri>[]
input_videos
string<uri>[]
input_audio
string<uri>[]
callback_url
string<uri>

Response

Completed video task.

task_id
string
required
Example:

"task_123"

status
enum<string>
required
Available options:
pending,
processing,
completed,
failed,
expired
model
string
created_at
string<date-time>
completed_at
string<date-time> | null
result
object

Completed task result. Image tasks use the OpenAI image format (image URL at data[0].url); video and audio tasks expose video_url/audio_url plus a urls[] array.

error
any | null