ByteDance Seedance Videos API
POSThttps://api.acedata.cloud/seedance/videos
ByteDance Seedance video generation API allows you to input images and text to generate videos.
Related Products
SeeDance - Ace Data Cloud
SeeDance video generation platform, directly interfaces with this API, high-speed and stable availability.
Request Headers
acceptstring
Specify the format of the server response. If not specified, the default format is `application/json`.
Please select
authorizationstring
Bearer token
Request Body
seedinteger
The random seed used for reproducible generation has a value range from -1 to 4294967295; -1 indicates randomness.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select
modelstringRequired parameter
Model ID for video generation
ratiostring
Aspect ratio of the generated video
Please select
framesinteger
The number of frames for generating a video must meet 25+4n (such as 29, 33, 37...289). It is mutually exclusive with the `duration` parameter and cannot be specified at the same time.
contentarrayRequired parameter
Input content for video generation. Each entry must contain either `text` or `image_url`, but cannot contain both at the same time. The meaning of other fields and whether they are required depends on the value of `type`.
durationnumber
The duration of the video, in seconds. It is mutually exclusive with the `frames` parameter and cannot be specified at the same time.
watermarkboolean
Whether to add a watermark to the generated video.
Please select
resolutionstring
Video resolution. The default value depends on the model used: most models default to 720p, while lite models default to 480p.
Please select
camerafixedboolean
Is the camera position fixed during the generation process?
Please select
callback_urlstring
Callback URL for receiving the final result notification of the task. Once provided, the API will immediately return `task_id` and push the results to that URL when the task is completed.
service_tierstring
Service level type used for processing this request
Please select
generate_audioboolean
Whether to generate audio from video. The `doubao-seedance-1-5-pro-251215` and `doubao-seedance-2-0` series models support this parameter, while other models will ignore this parameter.
Please select
return_last_frameboolean
Whether to return the last frame of the generated video.
Please select
execution_expires_afterinteger
Task timeout threshold, unit in seconds
Response
ByteDance Seedance Video Generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
