Seedance 2.0 API reference
Check Seedance 2.0 availability, inputs, parameters, file requirements, credit pricing, and request examples for Rivya Public API v1. Model ID: seedance-2.
seedance-2
text, file
Required for reference modes
Credit rate: 41–208 per second of total video duration (input + output) The final cost is rounded up to whole credits.
Video
METERED
20000 characters
Request fields
Set model at the top level. Put model-specific controls and reference inputs in params, using the format documented for this model.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | seedance-2 | Set model to seedance-2. |
| prompt | string | Yes | - | Maximum 20000 characters for this model. |
| params | object | No | - | The model-specific params object. Use the documented keys and reference-file format for this model. |
| client_request_id | string | No | - | Optional ID for tracing this request in your system. It does not replace Idempotency-Key. |
Model parameters
| Key | Type | Required | Default | Range | Options | Description |
|---|---|---|---|---|---|---|
| seedance_scene | select | No | text | - | text, frames, reference | Choose text-only generation, a first frame with an optional last frame, or image, video, and audio references. Frame inputs and reference media cannot be combined. Video references require 1080p or 4K output. |
| resolution | select | No | 720p | - | 720p, 1080p, 4K | Resolution |
| aspect_ratio | select | No | 16:9 | - | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive | Aspect ratio |
| duration | number | No | 5 | min 4 / max 15 | - | Duration |
| generate_audio | select | No | true | - | true, false | Generate audio |
| return_last_frame | select | No | false | - | false, true | Ask the model to include the video's final frame as a still image. Review any returned frame before using it as a cover, an editing source, or a reference for another task. |
| web_search | select | No | false | - | false, true | Web search (text mode only) |
Upload policy
Upload reference files through Files API first. Keep the original URLs, verified metadata, and tokens. Follow this model's request example: some models use params.referenceMediaItems, while others use different fields.
Frames and media references: Frame mode needs a first image and may include a last image. Reference mode allows up to 9 images, 3 videos, and 3 audio clips. Use JPEG, PNG, WebP, BMP, TIFF, or GIF images up to 30 MB each; MP4 or MOV video up to 50 MB each; and MP3 or WAV audio up to 15 MB each. Each video or audio clip must be between 2 and 15 seconds. Video references together are limited to 15 seconds, and audio has a separate 15-second total. Video references require 1080p or 4K output. Rivya also checks image dimensions and video frame size and frame rate. Upload through Rivya so the request includes the required signed metadata.
15
image, video, audio
When duration verification is required, use duration_token from /api/v1/files as durationToken in the request. Keep any additional signed metadata this model requires.
| kind | Max size | MIME types |
|---|---|---|
| image | 30 MB | image/jpeg, image/png, image/webp, image/bmp, image/gif, image/tiff |
| video | 50 MB | video/mp4, video/quicktime |
| audio | 15 MB | audio/mpeg, audio/wav, audio/x-wav |
Minimal request
{
"model": "seedance-2",
"prompt": "A camera slowly circles a product bottle on a studio table.",
"params": {
"seedance_scene": "text",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": "true",
"return_last_frame": "false",
"web_search": "false"
}
}Reference-file request
{
"model": "seedance-2",
"prompt": "A camera slowly circles a product bottle on a studio table.",
"params": {
"seedance_scene": "reference",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": "true",
"return_last_frame": "false",
"web_search": "false",
"seedance_reference_videos": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_from_files_api",
"sizeBytes": 8388608,
"mimeType": "video/mp4"
}
],
"videoMetadata": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"token": "video_metadata_token_from_files_api",
"sizeBytes": 8388608
}
]
}
}Example response
An accepted generation request returns a task ID. Poll the status endpoint until the task succeeds or fails. A status request failure does not mean generation failed.
{
"id": "task_seedance_2_example",
"status": "queued",
"model": "seedance-2",
"reserved_credits": 205,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Some modes require Files API reference uploads.
