文生/圖生影片, 多解析度檔位, 適合高品質創作
dreamina-seedance-2-0-260128支援文生影片、首幀圖生影片與參考影片生影片。
必填參數: model, prompt
可用參數: model, prompt, content, duration, resolution, aspect_ratio, ratio, seed, watermark, generate_audio, callback_url, wait, camera_fixed, return_last_frame, idempotency_key
必填參數: model, prompt, first_frame_url
可用參數: model, prompt, content, duration, resolution, aspect_ratio, ratio, first_frame_url, last_frame_url, reference_images, seed, watermark, generate_audio, callback_url, wait, camera_fixed, return_last_frame, idempotency_key
必填參數: model, prompt, reference_videos
可用參數: model, prompt, content, duration, resolution, aspect_ratio, ratio, reference_videos, reference_images, seed, watermark, generate_audio, callback_url, wait, camera_fixed, return_last_frame, idempotency_key
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
model | string | 是 | Seedance 模型 ID. 全部 5 個變體: - dreamina-seedance-2-0-260128 (頂級, 支援 V2V/A2V) - dreamina-seedance-2-0-fast-260128 (快速) - seedance-1-5-pro-251215 (Draft 預覽) - seedance-1-0-pro-250528 (旗艦平衡) - seedance-1-0-pro-fast-251015 (經濟快速) - dreamina-seedance-2-0-mini-260615 (輕量經濟, 支援 V2V) 可選: dreamina-seedance-2-0-260128 / dreamina-seedance-2-0-fast-260128 / dreamina-seedance-2-0-mini-260615 / seedance-1-5-pro-251215 / seedance-1-0-pro-250528 / seedance-1-0-pro-fast-251015 |
content | array | 否 | BytePlus 原生輸入陣列 (推薦主用法). 5 種 type: - text: { type:"text", text:"..." } 文本提示詞 - image_url: { type:"image_url", image_url:{ url, role:"first_frame"|"last_frame"|"reference_image" } } 圖生影片 - video_url: { type:"video_url", video_url:{ url, role:"reference_video" } } 影片續寫 (Seedance 2.0) - audio_url: { type:"audio_url", audio_url:{ url } } 音訊生影片 (Seedance 2.0 A2V) - draft_task: { type:"draft_task", draft_task:{ task_id } } Draft 續推 (Seedance 1.5 Pro) 如果不傳, endpoint 會從. |
resolution | string | 否 | 解析度 可選: 480p / 720p / 1080p |
ratio | string | 否 | BytePlus 原生寬高比 可選: 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 21:9 / 9:21 / auto |
duration | integer | 否 | 影片時長 (秒). 統一範圍 4-15s, 各模型實際上限不同 (超出時上游返 400). 具體見 [BytePlus 官方文件](https://docs.byteplus.com/en/docs/ModelArk/2291680) |
generate_audio | boolean | 否 | 生成同步音訊 (BytePlus 原生欄位). 僅 Seedance 2.0 / 2.0 Fast / 1.5 Pro 支援 |
seed | integer | 否 | 隨機種子 (0~2^32-1), 固定後同 prompt 可復現相似影片 |
wait | boolean | 否 | true=阻塞模式 (最長 60s 同步等結果), false=非同步立即返回 task_id (推薦) |
prompt | string | 否 | 提示詞。與 content[] 二選一即可: 只給 prompt 時我們會自動包成文本塊。 |
first_frame_url | string | 否 | 首幀圖 URL —— 以這張圖作為影片第一幀。 |
last_frame_url | string | 否 | 尾幀圖 URL, 與首幀配合可做首尾幀過渡。 |
reference_images | array | 否 | 參考圖 URL 陣列, 用於保持主體/風格一致。 |
reference_videos | array | 否 | 參考影片陣列, 形如 [{"mp4": "https://..."}]。 |
aspect_ratio | string | 否 | 寬高比, 如 16:9 / 9:16。等價於 ratio, 傳其中一個即可; 不傳則由模型按輸入素材自行決定。 |
camera_fixed | boolean | 否 | 固定機位, 抑制鏡頭運動。 |
return_last_frame | boolean | 否 | 同時返回尾幀圖, 便於把多段影片接續起來。 |
watermark | boolean | 否 | 是否給成片加水印。 |
callback_url | string | 否 | 任務終態後回呼該地址。 |
idempotency_key | string | 否 | 冪等鍵, 同一個鍵重複提交返回同一個任務, 不會重複計費。 |
curl https://api.router.ai/v1/videos/generations \
-H "Authorization: Bearer sk-你的令牌" \
-H "Content-Type: application/json" \
-d '{
"model": "dreamina-seedance-2-0-260128",
"prompt": "一只橘猫在窗台上伸懒腰,阳光洒进来",
"duration": 5,
"resolution": "720p"
}'