Seedance 2
POST https://api.beatapi.io/v1/videos/tasks
Generate 4–15 second videos from text, first/last frames, or multimodal references, with optional generated audio.
Supported modes
Async flow: Create the task, save data.id, then poll the Task with GET /v1/tasks/{task_id}. On succeeded, read data.output.media. On failed, read data.error_code and data.error_message, then follow the error and retry policy.
Using a local file? upload a local input first and pass the returned data.url.
Authorization
Authorization string required
Send your BeatAPI API key as a Bearer token. Create one on the Dashboard.
Keep permanent API keys on trusted servers. Content-Type: application/json is required for the request body. Idempotency-Key is optional when the endpoint exposes it and is recommended for safe retries with the exact same body.
Request body
model string required
Must be seedance-2.
Value: seedance-2
prompt string required
Video generation instructions.
Length: 1 to 5000 characters
images string[] optional
One first-frame image or first- and last-frame images as public HTTPS URLs.
Count: 1 to 2 items
reference_images string[] optional
Public HTTPS image references for multimodal reference generation.
Count: 1 to 9 items
reference_videos string[] optional
Public HTTPS video references for multimodal reference generation.
Count: 1 to 3 items
reference_audios string[] optional
Public HTTPS audio references. Audio also requires at least one reference image or video.
Count: 1 to 3 items
duration integer optional
Requested output duration in seconds.
Default: 5
Range: 4 to 15
aspect_ratio enum<string> optional
Output video aspect ratio.
Available options: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
Default: "adaptive"
resolution enum<string> optional
Output resolution tier. 4k and 4K are equivalent. 1080p is not supported with reference images.
Available options: 480p, 720p, 1080p, 4k, 4K
Default: "720p"
generate_audio boolean optional
Generate synchronized audio with the video.
Default: true
Request examples
Text to video
First frame
Multimodal references
Response
A successful request returns HTTP 201.

