{
"model": "doubao-seedance-2-0-260128",
"prompt": "一只小猫在窗边打哈欠,清晨阳光,电影感",
"resolution": "720p",
"duration": 5,
"metadata": {
"ratio": "16:9",
"generate_audio": true,
"watermark": false
}
}| 模型 | 说明 |
|---|---|
doubao-seedance-2-0-260128 | Seedance 2.0,支持文生视频、图生视频、多模态参考生视频 |
doubao-seedance-2-0-fast-260128 | Seedance 2.0 fast,不支持 1080P |
| 字段 | 类型 | 说明 |
|---|---|---|
model | string | 模型 ID,必填 |
prompt | string | 文本提示词。适配器会写入 content 的 text 条目 |
image | string | 单张输入图片 URL。适合首帧图生视频 |
images | string[] | 多张输入图片 URL。适合 首尾帧或参考图 |
resolution / size | string | 输出分辨率,支持 480p、720p、1080p |
duration / seconds | integer / string | 视频时长,单位秒。推荐使用 duration |
metadata | object | 方舟视频生成扩展参数,见下文 |
metadata 支持字段metadata 会被合并到方舟请求体中,可用于传入官方接口参数。| 字段 | 类型 | 说明 |
|---|---|---|
content | object[] | 完整覆盖或补充官方 content 数组,支持 text、image_url、video_url、audio_url、draft_task |
service_tier | string | 服务等级,default / flex。Seedance 2.0 系列不支持修改 |
execution_expires_after | integer | 任务超时阈值,单位秒 |
generate_audio | boolean | 是否生成同步音频。Seedance 2.0 系列、Seedance 1.5 pro 支持 |
draft | boolean | 是否开启样片模式。仅 Seedance 1.5 pro 支持 |
resolution | string | 分辨率。也可放顶层,顶层优先用于统一计费参数识别 |
ratio | string | 宽高比,例如 16:9、9:16、adaptive |
duration | integer | 视频时长。也可放顶层 |
frames | integer | 帧数。与 duration 二选一,具体支持以官方模型为准 |
seed | integer | 随机种子 |
camera_fixed | boolean | 是否固定摄像头 |
watermark | boolean | 是否添加 AI 生成水印 |
content 写法prompt、image、images 构造 content:prompt 会转换为 {"type":"text","text":"..."}。images 会转换为多个 {"type":"image_url","image_url":{"url":"..."}}。role、视频、音频、样片任务 ID,请使用 metadata.content。{
"type": "text",
"text": "一只小猫对着镜头打哈欠"
}{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "https://example.com/first.png"
}
}role:| 场景 | role |
|---|---|
| 首帧图 | first_frame,也可不填 |
| 尾帧图 | last_frame |
| Seedance 2.0 参考图 | reference_image |
{
"type": "video_url",
"role": "reference_video",
"video_url": {
"url": "https://example.com/reference.mp4"
}
}{
"type": "audio_url",
"role": "reference_audio",
"audio_url": {
"url": "https://example.com/reference.mp3"
}
}{
"type": "draft_task",
"draft_task": {
"id": "cgt-xxxx"
}
}{
"model": "doubao-seedance-2-0-260128",
"prompt": "写实风格,晴朗的蓝天之下,一大片白色的雏菊花田,镜头逐渐拉近,最终定格在一朵雏菊花的特写上,花瓣上有几颗晶莹的露珠",
"resolution": "720p",
"duration": 5,
"metadata": {
"ratio": "16:9",
"generate_audio": true
}
}{
"model": "doubao-seedance-2-0-260128",
"prompt": "女孩抱着狐狸,女孩睁开眼,温柔地看向镜头,狐狸友善地抱着,镜头缓缓拉出,女孩的头发被风吹动,可以听到风声",
"image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/i2v_foxrgirl.png",
"resolution": "720p",
"duration": 5,
"metadata": {
"ratio": "9:16",
"generate_audio": true
}
}role。{
"model": "doubao-seedance-2-0-260128",
"prompt": "从第一张图自然过渡到第二张图,镜头平滑移动",
"resolution": "720p",
"duration": 5,
"metadata": {
"content": [
{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "https://example.com/first.png"
}
},
{
"type": "image_url",
"role": "last_frame",
"image_url": {
"url": "https://example.com/last.png"
}
},
{
"type": "text",
"text": "从第一张图自然过渡到第二张图,镜头平滑移动"
}
],
"generate_audio": false
}
}{
"model": "doubao-seedance-2-0-260128",
"prompt": "全程使用视频1的第一视角构图,全程使用音频1作为背景音乐。第一人称视角果茶宣传广告,seedance牌「苹苹安安」苹果果茶限定款;首帧为图片1,你的手摘下一颗带晨露的阿克苏红苹果,轻脆的苹果碰撞声;2-4 秒:快速切镜,你的手将苹果块投入雪克杯,加入冰块与茶底,用力摇晃,冰块碰撞声与摇晃声卡点轻快鼓点,背景音:「鲜切现摇」;4-6 秒:第一人称成品特写,分层果茶倒入透明杯,你的手轻挤奶盖在顶部铺展,在杯身贴上粉红包标,镜头拉近看奶盖与果茶的分层纹理;6-8 秒:第一人称手持举杯,你将图片2中的果茶举到镜头前(模拟递到观众面前的视角),杯身标签清晰可见,背景音「来一口鲜爽」,尾帧定格为图片2。背景声音统一为女生音色。",
"resolution": "1080p",
"duration": 15,
"metadata": {
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg"
},
"role": "reference_image"
},
{
"type": "image_url",
"image_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg"
},
"role": "reference_image"
},
{
"type": "video_url",
"video_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4"
},
"role": "reference_video"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3"
},
"role": "reference_audio"
}
],
"generate_audio":true,
"watermark": false
}
}status 会映射为本系统任务状态:| 方舟状态 | 本系统状态 | 说明 |
|---|---|---|
queued / pending | QUEUED | 排队中 |
running / processing | IN_PROGRESS | 运行中 |
succeeded | SUCCESS | 成功 |
failed / expired / cancelled / canceled | FAILURE | 失败或过期 |
{
"code": "success",
"data": {
"task_id": "task_xxx",
"status": "SUCCESS",
"result_url": "https://..."
}
}metadata.url。usage.completion_tokens 重新计算实际费用。| 参数 | 说明 |
|---|---|
duration / seconds | 时长倍率。Seedance 基础时长为 5 秒 |
resolution / size | 分辨率倍率 |
是否包含 video_url | 视频输入倍率。Seedance 2.0 系列有视频输入和无视频输入价格不同 |
estimated_tokens,再乘分辨率 token 单价倍率、视频输入倍率、时长倍率和分组倍率。也就是说,下表中的基础段价不是最终 token 单价,只用于提交阶段估算预扣量。基础额度 × estimated_tokens × resolution × video_input × duration × 分组倍率estimated_tokens:基础段价 / 无视频输入 token 单价。resolution:当前分辨率无视频输入 token 单价 / 480P 无视频输入 token 单价;倍率为 1 时不写入。video_input:当前分辨率有视频输入 token 单价 / 当前分辨率无视频输入 token 单价;仅请求中包含 video_url 时写入。duration:请求时长 / 5;基础 5 秒时不写入。| 模型 | 480P | 720P | 1080P |
|---|---|---|---|
doubao-seedance-1-5-pro-251215 | 0.80 | 1.73 | 3.89 |
doubao-seedance-2-0-260128 | 2.31 | 4.97 | 12.39 |
doubao-seedance-2-0-fast-260128 | 1.86 | 4.00 | 不支持 |
doubao-seedance-1-0-pro-250528 | 2.31 | 4.97 | 12.39 |
doubao-seedance-1-0-lite-t2v | 2.31 | 4.97 | 12.39 |
doubao-seedance-1-0-lite-i2v | 2.31 | 4.97 | 12.39 |
usage.completion_tokens 为准。completion_tokens 缺失,则使用 usage.total_tokens 兜底;视频生成模型输入 token 为 0,因此通常二者一致。| 模型 | 输入类型 | 480P | 720P | 1080P |
|---|---|---|---|---|
doubao-seedance-2-0-260128 | 无视频输入 | 46 | 46 | 51 |
doubao-seedance-2-0-260128 | 有视频输入 | 28 | 28 | 31 |
doubao-seedance-2-0-fast-260128 | 无视频输入 | 37 | 37 | 不支持 |
doubao-seedance-2-0-fast-260128 | 有视频输入 | 22 | 22 | 不支持 |
| 输入 | 归一化 |
|---|---|
480p / 480P | 480P |
720p / 720P | 720P |
1080p / 1080P | 1080P |
| 模型 | 默认分辨率 |
|---|---|
| Seedance 2.0 系列 | 720p |
doubao-seedance-2-0-fast-260128 不支持 1080p。如果请求模型不支持的分辨率,上游可能返回参数错误,本系统不会自动降级计费。metadata.content 会透传并参与构造上游 content,适合需要 role、视频、音频、样片任务等高级输入的场景。prompt 和 metadata.content 中的 text,适配器会保留 metadata.content 中的非 text 内容,并追加顶层 prompt 作为 text。