Skip to main content
POST
Create Video Generation Task

Authorizations

Authorization
string
header
required

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

Body

application/json
model
enum<string>
required

AnyFast model ID.

Available options:
seedance-2.5
Example:

"seedance-2.5"

content
object[]
required

Input content. Put the optional text prompt first, then media items. Seedance 2.5 accepts up to 30 reference images, 10 reference videos, and 10 reference audio clips. Reference videos and audio clips may total at most 30 seconds per media type. The complete request body must not exceed 64 MB; avoid Base64 for large files.

Required array length: 1 - 51 elements
Example:
callback_url
string<uri>

Optional callback URL that receives POST notifications when the asynchronous task status changes.

execution_expires_after
integer
default:172800

Maximum time in seconds that a queued or running task may execute before it expires.

priority
integer
default:0

Task execution priority.

safety_identifier
string

Stable end-user identifier used for safety tracing.

seed
integer
default:-1

Random seed. Use -1 for a random seed.

service_tier
string
default:default

Task service tier.

generate_audio
boolean
default:true

Generate synchronized dialogue, sound effects, and background audio.

resolution
enum<string>
default:720p

Output video resolution.

Available options:
480p,
720p
ratio
enum<string>
default:adaptive

Output aspect ratio. For text and ordinary reference generation, adaptive selects the best supported ratio. Video editing and extension follow the selected source video; frame-guided generation follows the first frame. Editing, extension, and first-frame/first-and-last-frame tasks require adaptive.

Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16,
adaptive
duration
enum<integer>
default:-1

Output duration in seconds. Use -1 to let the model choose a duration from 4–30 seconds. Video editing requires -1 and follows the source duration, possibly up to 0.4 seconds shorter. Extension and frame-guided generation accept -1 or 4–30.

Available options:
-1,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
output_format
enum<string>
default:mp4

Output container. MOV uses high-color-fidelity H.264/yuv444p video and PCM audio for editing workflows.

Available options:
mp4,
mov
tools
object[]

Optional generation tools. Web search is available for text-to-video.

watermark
boolean
default:false

Add an AI-generated watermark to the lower-right corner.

return_last_frame
boolean
default:false

Return the generated video's final frame as an image.

Response

Video generation task created

id
string
required

Task ID used for polling.

Example:

"asyntask_h81efT0qwtLnzyt6VENmCZ6VXSfNxE2E"

task_id
string
required

Task ID, identical to id.

Example:

"asyntask_h81efT0qwtLnzyt6VENmCZ6VXSfNxE2E"

object
enum<string>
required
Available options:
video
Example:

"video"

model
enum<string>
required
Available options:
seedance-2.5
Example:

"seedance-2.5"

status
enum<string>
required

Initial asynchronous task status.

Available options:
queued
Example:

"queued"

progress
integer
required

Initial task progress percentage.

Example:

0

created_at
integer
required

Unix timestamp.

Example:

1786084139