Seedance 2.5 图生视频 API(Image to Video)
Seedance 2.5 图生视频 API 以你提供的图片作为首帧生成视频,人物、商品和构图与原图保持一致;同时提供首帧和尾帧时,生成两帧之间的过渡。适合商品图动起来、海报动态化、分镜转视频。
doubao-seedance-2-5-261111480p / 720p / 1080p4–30 秒低至 ¥0.5044/秒(国内)· $0.0874/秒(海外)概览
Seedance 2.5 是字节跳动 Seedance 系列目前最新的视频生成模型,单次最长生成 30 秒视频,分辨率 480p / 720p / 1080p,每个请求最多 30 张参考图、10 段参考视频、10 段参考音频。
Decode 通过火山引擎(国内)和 BytePlus(海外)两个官方渠道提供 Seedance 2.5 API,接口与官方完全一致,已接入官方 API 的代码只需更换接口地址和 Key。
调用 API
1. 获取 API Key
注册并登录 Decode,在「钱包」充值,然后在「API 密钥」里创建一个以 sk- 开头的 Key,保存到环境变量:
export DECODE_API_KEY="sk-..."
2. 提交任务并获取视频
视频生成是异步的:先提交任务拿到任务 ID,再查询任务直到完成。完整示例:
curl https://decode8.com/api/v3/contents/generations/tasks \
-H "Authorization: Bearer $DECODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2-5-261111",
"content": [
{
"type": "text",
"text": "女孩转身看向镜头并微笑,头发随风飘动"
},
{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "https://example.com/first-frame.png"
}
}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5,
"generate_audio": true
}'import os
import time
import requests
BASE_URL = "https://decode8.com/api/v3/contents/generations/tasks"
HEADERS = {"Authorization": f"Bearer {os.environ['DECODE_API_KEY']}"}
payload = {
"model": "doubao-seedance-2-5-261111",
"content": [
{
"type": "text",
"text": "女孩转身看向镜头并微笑,头发随风飘动"
},
{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "https://example.com/first-frame.png"
}
}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5,
"generate_audio": True
}
# 1. 提交任务,拿到任务 ID
task_id = requests.post(BASE_URL, headers=HEADERS, json=payload).json()["id"]
# 2. 每 10 秒查询一次,直到结束
while True:
task = requests.get(f"{BASE_URL}/{task_id}", headers=HEADERS).json()
if task["status"] in ("succeeded", "failed", "cancelled", "expired"):
break
time.sleep(10)
print(task["status"], task.get("content", {}).get("video_url"))const BASE_URL = 'https://decode8.com/api/v3/contents/generations/tasks'
const headers = {
Authorization: `Bearer ${process.env.DECODE_API_KEY}`,
'Content-Type': 'application/json',
}
const payload = {
"model": "doubao-seedance-2-5-261111",
"content": [
{
"type": "text",
"text": "女孩转身看向镜头并微笑,头发随风飘动"
},
{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "https://example.com/first-frame.png"
}
}
],
"resolution": "720p",
"ratio": "adaptive",
"duration": 5,
"generate_audio": true
}
// 1. 提交任务,拿到任务 ID
const { id } = await fetch(BASE_URL, {
method: 'POST',
headers,
body: JSON.stringify(payload),
}).then((res) => res.json())
// 2. 每 10 秒查询一次,直到结束
let task
do {
await new Promise((resolve) => setTimeout(resolve, 10_000))
task = await fetch(`${BASE_URL}/${id}`, { headers }).then((res) => res.json())
} while (['queued', 'running'].includes(task.status))
console.log(task.status, task.content?.video_url)使用海外渠道时把 model 换成 dreamina-seedance-2-5-261111,其余字段不变。
认证
所有请求在请求头带上 Authorization: Bearer sk-...。请在服务端调用,不要把 Key 暴露在浏览器或 App 里。接口地址:https://decode8.com(默认)或 https://cn.decode8.com(中国大陆推荐,视频从国内存储下载)。
提交与查询任务
提交任务
POST /api/v3/contents/generations/tasks 返回 { "id": "task_xxxxxxxx" }。
查询任务状态
GET /api/v3/contents/generations/tasks/{id}
curl https://decode8.com/api/v3/contents/generations/tasks/task_xxxxxxxx \
-H "Authorization: Bearer $DECODE_API_KEY"| status | 含义 |
|---|---|
queued | 排队中 |
running | 生成中 |
succeeded | 已完成,视频地址在 content.video_url |
failed | 失败,原因在 error.message,费用全额退还 |
cancelled / expired | 已取消 / 已过期 |
建议每 10 秒左右查询一次。不支持 callback_url。
传入文件
图片、视频、音频可以用三种方式传入:公网可访问的 http(s) URL;base64(data URI);素材库引用 asset://素材ID。所有参考素材都会先存入你的素材库、通过上游审核后再用于生成,同一个 Key 的同一个文件只存一份。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 模型 ID:国内 doubao-seedance-2-5-261111,海外 dreamina-seedance-2-5-261111 |
content | array | 是 | 输入内容数组,见下表 |
resolution | string | 否 | 输出分辨率:480p、720p、1080p |
ratio | string | 否 | 宽高比:adaptive、16:9、9:16、1:1、4:3、3:4、21:9(adaptive 跟随首帧图片) |
duration | integer | 否 | 视频时长(秒),4–30;-1 由模型决定 |
generate_audio | boolean | 否 | 是否同时生成音频(音效、环境声、对白) |
content 数组
| 类型 | 写法 | 说明 |
|---|---|---|
| 文字提示 | { "type": "text", "text": "..." } | 可选,描述动作和镜头 |
| 首帧 | { "type": "image_url", "role": "first_frame", "image_url": { "url": "..." } } | 必填 |
| 尾帧 | { "type": "image_url", "role": "last_frame", "image_url": { "url": "..." } } | 可选,生成首帧到尾帧的过渡 |
返回结果
任务完成后,查询接口返回(其余字段与官方一致):
{
"id": "task_xxxxxxxx",
"model": "doubao-seedance-2-5-261111",
"status": "succeeded",
"content": {
"video_url": "https://...mp4"
},
"usage": {
"completion_tokens": 108000,
"total_tokens": 108000
},
"created_at": 1794459000,
"updated_at": 1794459120
}
usage.completion_tokens 是本次计费的 tokens。视频由 Decode 保存 60 天,请及时下载。
Seedance 2.5 图生视频 API 价格
以 720p、不含视频输入为例:国内渠道官方价 ¥70.00/百万 tokens,Decode ¥52.50(约 ¥1.1340/秒,10 秒视频约 ¥11.34);海外渠道官方价 $10.70/百万 tokens,Decode $9.10(约 $0.1965/秒)。国内 7.5 折(省 25%),海外 8.5 折(省 15%)。
| 模型 | 分辨率 | 官方价 / 百万 tokens | Decode 价 / 百万 tokens | 官方价 / 秒 | Decode 价 / 秒 | 10 秒视频(Decode) | 优惠 |
|---|---|---|---|---|---|---|---|
| Seedance 2.5 | 480p | ¥70.00 | ¥52.50 | ¥0.6725 | ¥0.5044 | ¥5.04 | 7.5 折(省 25%) |
| 720p | ¥70.00 | ¥52.50 | ¥1.5120 | ¥1.1340 | ¥11.34 | 7.5 折(省 25%) | |
| 1080p | ¥77.00 | ¥57.75 | ¥3.7422 | ¥2.8067 | ¥28.07 | 7.5 折(省 25%) |
| 模型 | 分辨率 | 官方价 / 百万 tokens | Decode 价 / 百万 tokens | 官方价 / 秒 | Decode 价 / 秒 | 10 秒视频(Decode) | 优惠 |
|---|---|---|---|---|---|---|---|
| Seedance 2.5 | 480p | $10.70 | $9.10 | $0.1028 | $0.0874 | $0.87 | 8.5 折(省 15%) |
| 720p | $10.70 | $9.10 | $0.2311 | $0.1965 | $1.96 | 8.5 折(省 15%) | |
| 1080p | $11.70 | $9.95 | $0.5686 | $0.4833 | $4.83 | 8.5 折(省 15%) |
数据日期 2026-11-23。官方价:国内为火山方舟人民币刊例价,海外为 BytePlus ModelArk 美元刊例价。按秒价格按 16:9、24 fps 估算(tokens = 宽 × 高 × 24 × 秒数 ÷ 1024),实际以上游返回的 tokens 结算;其他宽高比的像素数略有不同。以上为新用户默认价,月用量大的客户可联系商务申请专属折扣;实时价格以控制台「模型广场」为准。
预算有限?国内特价模型 seedance-2.5-px 按国内官方价 6.4 折计费,参数限制更多,见特价模型价格。
常见问题
Seedance 2.5 图生视频 API 多少钱?
以 720p、不含视频输入为例:国内渠道官方价 ¥70.00/百万 tokens,Decode ¥52.50(约 ¥1.1340/秒,10 秒视频约 ¥11.34);海外渠道官方价 $10.70/百万 tokens,Decode $9.10(约 $0.1965/秒)。国内 7.5 折(省 25%),海外 8.5 折(省 15%)。
Seedance 2.5 能生成多长的视频?
单次 4–30 秒,用 duration 指定;传 -1 由模型决定时长。分辨率支持 480p、720p、1080p。
图片、视频、音频怎么传?
可以用公网 URL、base64,或素材库中的 asset://素材ID。所有参考素材会先存入你的素材库并通过上游审核再用于生成;审核未通过直接返回 400,不扣费。
和官方 API 有什么区别?已经接了官方 API 要改什么?
接口路径、请求和返回格式与火山方舟 / BytePlus ModelArk 官方一致,只需把接口地址换成 https://decode8.com/api/v3、Key 换成 Decode 的 Key。差别:参考素材会自动入库审核;不支持 callback_url,请轮询查询接口。
生成失败会扣费吗?
不会。提交时按预估用量预扣,完成后按上游实际用量多退少补;任务失败全额退还。
相关模型与文档
Seedance 2.5 的其他功能
其他模型的图生视频 API
Seedance 2.5 模型介绍 · 接入教程 · 价格表 · 完整 API 文档