API Notes
doubao_seedance_2_5 uses POST /model/v1/generation to create an asynchronous video task. Place the model parameters in input[0].params.
doubao_seedance_2_5 requires resolution and accepts 720p or 1080p. The task query returns the platform-hosted video at the requested resolution.
The hyphenated doubao-seedance-2-5 model on the /model/sd passthrough route is a different model. It is not the super-resolution model described here.
Authentication
authorization string required
All APIs require authentication via Bearer Token.
Get API Key:
Visit API Key Management Page to get your API Key.
Usage:
Add to request header:
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Model ID to use for the request
Value: doubao_seedance_2_5
content object[] required
Input content for video generation. Supported media include text, image, video, and audio. Supported combinations:
Text only
Text (optional) + image
Text (optional) + video
Text (optional) + image + audio
Text (optional) + image + video
Text (optional) + video + audio
Text (optional) + image + video + audio
Text Information
objectText information input to the model
type
stringrequiredType of input content
Value:
texttext
stringrequiredText prompt input to the model, describing the expected generated video. Chinese and English are supported; keeping the prompt concise is recommended
Image Information
objectImage information input to the model
type
stringrequiredType of input content
Value:
image_urlimage_url
objectrequiredImage object input to the model
url
stringrequiredImage URL, Base64 string of image, or asset ID
Image URL: Enter the public URL of the image
Base64 string: Convert the local file to a Base64 encoded string. Format:
data:image/<image format>;base64,<Base64 string>. Note that<image format>must be lowercase, for exampledata:image/png;base64,{base64_image}Asset ID: ID of preconfigured assets and digital characters, following the format
asset://<ASSET_ID>Requirements for a single uploaded image:
Format:jpeg,png,webp,bmp,tiff,gif
Aspect ratio (width/height): (0.4, 2.5)
Width and height (px): (300, 6000)
Size: A single image must be less than30 MB. Request body size must not exceed64 MB. Do not use Base64 encoding for large files
Number of images: First frame - 1 image; First and last frame - 2 images; Reference image - 1-9 imagesrole
stringconditional requiredPosition or purpose of the image
Image to video (first frame), image to video (first and last frame), and multimodal reference video generation are three mutually exclusive scenarios and cannot be used together. For multimodal reference video generation, you can specify the reference image as the first/last frame via the prompt to indirectly achieve “first and last frame + multimodal reference”. If you need to strictly ensure that the first and last frames are consistent with the specified images, always use the image-to-video first/last frame feature (configure
roletofirst_frame/last_frame)Image to video (first frame):
Pass 1image_urlobject.rolevalue:first_frameor leave blankImage to video (first and last frame):
Pass 2image_urlobjects. First frame:role=first_frame(required). Last frame:role=last_frame(required)Image to video (reference image):
Pass 1-9image_urlobjects.role=reference_image(required)
Video Information
objectVideo input to the model
type
stringrequiredType of input content
Value:
video_urlvideo_url
objectrequiredVideo object input to the model
url
stringrequiredVideo URL or asset ID
role
stringconditional requiredPosition or purpose of the video
Options:
reference_video
Audio Information
objectAudio input to the model. At least 1 reference video or image must be included when using audio input
type
stringrequiredType of input content
Value:
audio_urlaudio_url
objectrequiredAudio object input to the model
role
stringconditional requiredPosition or purpose of the audio
Options:
reference_audio
generate_audio boolean
Controls whether the generated video includes sound synchronized with the footage
true: The video output includes synchronized audio. The model generates matching human voice, sound effects, and background music based on the text prompt and visual content. It is recommended to put dialogue content in double quotes to optimize the audio generation effect
false: The video output is a silent video
All generated videos with audio are mono, regardless of the number of channels of the input audio
Default: false
Options: true, false
resolution string required
Target output video resolution
Options: 720p, 1080p
For 720p, the platform first generates a 480p source video. For 1080p, it first generates a 720p source video. The platform upscales the source to the requested resolution before storing it.
ratio string
Aspect ratio of the generated video
When ratio is set to adaptive, the model automatically adapts the aspect ratio according to the generation scenario:
Text to video: intelligently selects the most appropriate aspect ratio based on the input prompt
First frame / first and last frame to video: automatically selects the closest aspect ratio based on the ratio of the uploaded first frame image
Multimodal reference video generation: judged based on the intent of the user’s prompt. If it is first-frame video generation, video editing, or video extension, select the closest aspect ratio based on the corresponding image or video; otherwise, select the closest aspect ratio based on the first uploaded media file (priority: video > image)
Default: adaptive
Options: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive
Width and height pixel values corresponding to different aspect ratios:
| Resolution | Aspect Ratio | Dimension (Width x Height) |
|---|---|---|
| 720p | 16:9 | 1280x720 |
| 720p | 4:3 | 1112x834 |
| 720p | 1:1 | 960x960 |
| 720p | 3:4 | 834x1112 |
| 720p | 9:16 | 720x1280 |
| 720p | 21:9 | 1470x630 |
| 1080p | 16:9 | 1920x1080 |
| 1080p | 4:3 | 1664x1248 |
| 1080p | 1:1 | 1440x1440 |
| 1080p | 3:4 | 1248x1664 |
| 1080p | 9:16 | 1080x1920 |
| 1080p | 21:9 | 2206x946 |
duration integer
Generated video duration in seconds. Only integers are supported
Note: Video duration is related to billing, please set it carefully
Default: 5
Range: 4 - 30
seed integer
Random seed used for generation
Range: 0 - 2147483647
camera_fixed boolean
Whether to keep the camera fixed
Default: false
Options: true, false
watermark boolean
Whether the generated video contains a watermark
Default: false
Options: true, false
execution_expires_after integer
Task expiration threshold in seconds after submission
Default: 172800 (48 hours)
Range: 3600 - 259200
seedance_tools array
Tools the model can call during generation
type
stringrequiredTool type
Value:
web_search
Polling
Since result generation takes time, you need to poll the task status after creating the task.
The initial response only returns information such as the task ID and initial status. The final result must be obtained by polling the task status endpoint using the task ID.
See the examples on the right for polling requests and responses.
In the create response, status: "completed" means the submission finished. Use its id in GET /model/v1/generation/task/{task_id}. When the query returns completed, read the video URL from output[0].content[0].url. For failed, read error.
Response Format
error object
Error information, only present when status is failed
code
stringError code
message
stringDetailed error message
output array
Generation results, only present when status is completed
content
arrayList of generated resource content
type
stringResource type
Value:
image|videourl
stringProcessed resource URL
jobId
stringRemote task ID
usage object
Usage statistics, only present when status is completed
cost
stringTotal cost in USD
discount
numberDiscount amount
metadata object
Metadata information
Pricing
The platform bills after video generation, super-resolution, and storage succeed. It calculates the billable tokens as round(source completion_tokens × 2.25) and applies the rate for the requested output resolution. The rate includes super-resolution. If any of these steps fails, the task fails without a charge.