↓
Rivya AI Docs
Model API guides

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.

Available via APIText or URL ready; reference modes use Files APIVideo
API model ID

seedance-2

Inputs

text, file

Files API

Required for reference modes

Credit pricing

Credit rate: 41–208 per second of total video duration (input + output) The final cost is rounded up to whole credits.

Capability

Video

Billing

METERED

Prompt limit

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.

KeyTypeRequiredDefaultDescription
modelstringYesseedance-2Set model to seedance-2.
promptstringYes-Maximum 20000 characters for this model.
paramsobjectNo-The model-specific params object. Use the documented keys and reference-file format for this model.
client_request_idstringNo-Optional ID for tracing this request in your system. It does not replace Idempotency-Key.

Model parameters

KeyTypeRequiredDefaultRangeOptionsDescription
seedance_sceneselectNotext-text, frames, referenceChoose 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.
resolutionselectNo720p-720p, 1080p, 4KResolution
aspect_ratioselectNo16:9-1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptiveAspect ratio
durationnumberNo5min 4 / max 15-Duration
generate_audioselectNotrue-true, falseGenerate audio
return_last_frameselectNofalse-false, trueAsk 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_searchselectNofalse-false, trueWeb 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.

Reference rule

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.

Max files

15

Accepted file kinds

image, video, audio

Duration token

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.

kindMax sizeMIME types
image30 MBimage/jpeg, image/png, image/webp, image/bmp, image/gif, image/tiff
video50 MBvideo/mp4, video/quicktime
audio15 MBaudio/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.