文生/图生视频, 多分辨率档位, 适合高质量创作
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"
}'