Seedance 2.0 Fast API 連携
Rivya Public API v1 で Seedance 2.0 Fast を使うための model id seedance-2-fast、対応入力、パラメータ、Files API ルール、クレジット、レスポンス例です。
seedance-2-fast
text, file
参照モードで必要
per_input_and_output_second · 480p_with_video=6.8 · 480p_without_video=11.7 · 720p_with_video=15 · 720p_without_video=24.8 · ⌈total⌉
動画
METERED
20000 文字
リクエスト仕様
モデル ID はトップレベルに送ります。モデル固有の制御項目は params に入れます。
| Key | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| model | string | はい | seedance-2-fast | seedance-2-fast を API モデル ID として使用します。 |
| prompt | string | はい | - | このモデルでは最大 20000 文字です。 |
| params | object | いいえ | - | モデル固有のパラメータオブジェクトです。許可されるキーは下の行で確認してください。 |
| client_request_id | string | いいえ | - | 自社システム内でリクエストを追跡するための任意のクライアント側 ID です。 |
モデルパラメータ
| Key | 型 | 必須 | デフォルト | 範囲 | 選択肢 | 説明 |
|---|---|---|---|---|---|---|
| seedance_scene | select | いいえ | text | - | text, frames, reference | テキストのみ、開始フレームまたは開始・終了フレーム、マルチモーダル参照のどれから生成するかを選びます。 |
| resolution | select | いいえ | 720p | - | 480p, 720p | 解像度 |
| aspect_ratio | select | いいえ | 16:9 | - | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, adaptive | アスペクト比 |
| duration | number | いいえ | 5 | min 4 / max 15 | - | 尺 |
| generate_audio | select | いいえ | true | - | true, false | 音声を生成 |
| return_last_frame | select | いいえ | false | - | false, true | 動画結果に加えて最終フレームを静止画像として返します。カバー、後続実行、後編集に役立ちます。 |
| web_search | select | いいえ | false | - | false, true | Web search |
| nsfw_checker | select | いいえ | false | - | false, true | NSFWチェック |
アップロードポリシー
先に参照ファイルをアップロードし、返された URL と durationToken を params.referenceMediaItems に入れてください。
マルチモーダル参照: Frames: 1–2 signed images. Reference: up to 9 JPEG/PNG/WebP/BMP/TIFF/GIF images under 30 MB each, 3 MP4/MOV videos of 2–15 seconds under 50 MB each, and 3 MP3/WAV audio clips of 2–15 seconds under 15 MB each. Video and audio each have a separate 15-second total limit.
15
image, video, audio
動画と音声の参照では、長さの検証が必要な場合に /api/v1/files の durationToken を含めてください。
| kind | 最大サイズ | MIME タイプ |
|---|---|---|
| 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 |
最小リクエスト
{
"model": "seedance-2-fast",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"seedance_scene": "text",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": "true",
"return_last_frame": "false",
"web_search": "false",
"nsfw_checker": "false"
}
}参照ファイル付きリクエスト
{
"model": "seedance-2-fast",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"seedance_scene": "reference",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": "true",
"return_last_frame": "false",
"web_search": "false",
"nsfw_checker": "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
}
]
}
}作成レスポンス
作成エンドポイントは公開タスク ID を返します。タスクが成功または失敗するまで、ステータスエンドポイントをポーリングしてください。
{
"id": "task_seedance_2_fast_example",
"status": "queued",
"model": "seedance-2-fast",
"reserved_credits": 124,
"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
}一般的なエラー
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
一部のモードでは Files API による参照アップロードが必要です。