Seedance 2.0 API
Seedance 2.0 API 的模型能力、计价规格、请求参数和接入示例。使用 VezAPI 账号密钥统一接入。
Seedance 2.0 API 接入文档
使用 VezAPI 密钥接入 Seedance 2.0。下列操作共用同一个账号余额和鉴权方式。
https://api.vezapi.com请求头使用 Authorization: Bearer YOUR_VEZAPI_KEY。每次提交使用唯一的 Idempotency-Key,查询同一笔提交时才复用。
Bytedance Seedance 2.0 Fast
/api/v1/jobs/createTask模型标识: bytedance/seedance-2-fast
| 参数 | 类型 | 说明与限制 |
|---|---|---|
model必填 | string | 用于生成任务的模型名称。必填字段。 - 该接口必须使用 `bytedance/seedance-2-fast` 模型 可选值: 默认: |
callBackUrl可选 | string | 接收生成任务完成通知的回调 URL。可选配置,生产环境建议使用。 - 任务生成完成后,系统会向该 URL 以 POST 方式推送任务状态和结果 - 回调内容包含生成内容的 URL 及任务相关信息 - 你的回调接口需支持接收 POST 请求及 JSON 格式的请求体 - 也可选择调用任务详情接口,主动轮询任务状态 |
input必填 | object | 生成任务的输入参数 |
input.prompt可选 | string | 用于视频生成的文本提示词。必填字段。(最小长度:3,最大长度:20000 字符)
|
input.first_frame_url可选 | string | 首帧图片或者asset://{assetId} (例如: asset://asset-20260404242101-76djj) |
input.last_frame_url可选 | string | 尾帧图片或者asset://{assetId} (例如: asset://asset-20260404242101-76djj) |
input.reference_image_urls可选 | array | 输入图像 URL或者asset://{assetId} (例如: asset://asset-20260404242101-76djj) 列表。 传入单张图片要求: 格式:jpeg、png、webp、bmp、tiff、gif。 宽高比(宽/高): (0.4, 2.5) 宽高长度(px):(300, 6000) 大小:单张图片小于 30 MB。 最多 9 张。
|
input.reference_video_urls可选 | array | 输入视频网址或者asset://{assetId} (例如: asset://asset-20260404242101-76djj)列表。 单个视频要求: 视频格式:mp4、mov。 分辨率:480p、720p 时长:单个视频时长 [2, 15] s,最多传入 3 个参考视频,所有视频总时长不超过 15s。 尺寸: 宽高比(宽/高):[0.4, 2.5] 宽高长度(px):[300, 6000] 总像素数:[640×640=409600, 834×1112=927408],即宽和高的乘积符合 [409600, 927408] 的区间要求。 大小:单个视频不超过 50 MB。 帧率 (FPS):[24, 60]
|
input.reference_audio_urls可选 | array | 输入音频 URL 或者asset://{assetId} (例如: asset://asset-20260404242101-76djj)列表。 单个音频要求: 格式:wav、mp3 时长:单个音频时长 [2, 15] s,最多传入 3 段参考音频,所有音频总时长不超过 15 s。 大小:单个音频不超过 15 MB。
|
input.return_last_frame可选 | boolean | 是否返回视频最后一帧图片 默认: |
input.generate_audio可选 | boolean | 是否生成与画面同步的音频,默认 true。 默认: |
input.resolution可选 | string | 视频分辨率 - 480p 生成速度更快,720p 兼顾速度与画质 可选值: 默认: |
input.aspect_ratio可选 | string | 视频画面比例配置。 可选值: 默认: |
input.duration可选 | integer | 视频时长4-15(秒) 或者 -1。 默认: |
input.web_search可选 | boolean | 是否启用联网搜索,仅用于文生视频。 |
input.nsfw_checker可选 | boolean | 默认 false。为 false 时不额外进行内容过滤,结果由模型直接返回。 |
请求示例
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "bytedance/seedance-2-fast",
"input": {
"prompt": "A serene beach at sunset with waves gently crashing on the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
}'返回值与错误
HTTP 200
请求成功
| 参数 | 类型 | 说明与限制 |
|---|---|---|
code可选 | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). 可选值: |
msg可选 | string | Response message, error description upon failure |
data必填 | object | |
data.taskId必填 | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
Bytedance Seedance 2.0
/api/v1/jobs/createTask模型标识: bytedance/seedance-2
| 参数 | 类型 | 说明与限制 |
|---|---|---|
model必填 | string | 用于生成任务的模型名称。必填字段。 - 该接口必须使用 `bytedance/seedance-2` 模型 可选值: 默认: |
callBackUrl可选 | string | 接收生成任务完成通知的回调 URL。可选配置,生产环境建议使用。 - 任务生成完成后,系统会向该 URL 以 POST 方式推送任务状态和结果 - 回调内容包含生成内容的 URL 及任务相关信息 - 你的回调接口需支持接收 POST 请求及 JSON 格式的请求体 - 也可选择调用任务详情接口,主动轮询任务状态 |
input必填 | object | 生成任务的输入参数 |
input.prompt可选 | string | 用于视频生成的文本提示词。必填字段。(最小长度:3,最大长度:20000 字符)
|
input.first_frame_url可选 | string | 首帧图片地址或者asset://{assetId} (例如: asset://asset-20260404242101-76djj) |
input.last_frame_url可选 | string | 尾帧图片地址或者asset://{assetId} (例如: asset://asset-20260404242101-76djj) |
input.reference_image_urls可选 | array | 输入图像 URL 或者asset://{assetId} (例如: asset://asset-20260404242101-76djj)列表。 传入单张图片要求: 格式:jpeg、png、webp、bmp、tiff、gif。 宽高比(宽/高): (0.4, 2.5) 宽高长度(px):(300, 6000) 大小:单张图片小于 30 MB。 最多 9 张。
|
input.reference_video_urls可选 | array | 输入视频网址或者asset://{assetId} (例如: asset://asset-20260404242101-76djj)列表。 单个视频要求: 视频格式:mp4、mov。 分辨率:480p、720p 时长:单个视频时长 [2, 15] s,最多传入 3 个参考视频,所有视频总时长不超过 15s。 尺寸: 宽高比(宽/高):[0.4, 2.5] 宽高长度(px):[300, 6000] 总像素数:[640×640=409600, 834×1112=927408],即宽和高的乘积符合 [409600, 927408] 的区间要求。 大小:单个视频不超过 50 MB。 帧率 (FPS):[24, 60]
|
input.reference_audio_urls可选 | array | 输入音频 URL或者asset://{assetId} (例如: asset://asset-20260404242101-76djj)列表。 单个音频要求: 格式:wav、mp3 时长:单个音频时长 [2, 15] s,最多传入 3 段参考音频,所有音频总时长不超过 15 s。 大小:单个音频不超过 15 MB。
|
input.return_last_frame可选 | boolean | 是否返回视频最后一帧图片 默认: |
input.generate_audio可选 | boolean | 是否生成与画面同步的音频,默认 true。 默认: |
input.resolution可选 | string | 视频分辨率 - 480p 生成速度更快,720p 兼顾速度与画质, 1080p 高质量的视频,4K 极致超清,呈现完美的视觉细节4k 输出 3840×2160,编码为 H.265(HEVC),其余分辨率为 H.264。请确认播放器或下游流程支持 HEVC。 可选值: 默认: |
input.aspect_ratio可选 | string | 视频画面比例配置。必填字段。 可选值: 默认: |
input.duration可选 | integer | 视频时长4-15(秒) 或者 -1。 默认: |
input.web_search可选 | boolean | 是否启用联网搜索,仅用于文生视频。 |
input.nsfw_checker可选 | boolean | 默认 false。为 false 时不额外进行内容过滤,结果由模型直接返回。 |
请求示例
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "bytedance/seedance-2",
"input": {
"prompt": "A serene beach at sunset with waves gently crashing on the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
}'返回值与错误
HTTP 200
请求成功
| 参数 | 类型 | 说明与限制 |
|---|---|---|
code可选 | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). 可选值: |
msg可选 | string | Response message, error description upon failure |
data必填 | object | |
data.taskId必填 | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
任务状态与回调
异步任务请保存返回的 taskId。调用 GET /api/v1/jobs/recordInfo?taskId=... 查询,或在创建时设置 callBackUrl。只有任务所属账号可以查询任务或基于任务创建派生资源。
超时可能表示请求已经受理。请在控制台查看原请求,不要自动新建任务。回调可能重试并重复到达,请使用 X-VezAPI-Event-Id 去重。
文件、日志与计费
生成媒体通常随上游保留 14 天,上传文件在 24 小时后失效。请在过期前保存所需文件。VezAPI 仅流式转发已登记资源,不提供永久作品库。请求日志保留两个自然月。
调用前预留积分,最终按实际优惠扣分 1:1 结算。用量不明时暂停新付费请求。若保护其他任务预留后余额不足以结算,会保留待结算记录,补足余额后再扣费;模型用量不会将钱包扣成负数。按时长计价的输入文件由服务端读取时长,读取失败时不提交模型任务。
使用你的 VezAPI 密钥发送请求。成功生成将消耗账号积分。
/api/v1/jobs/createTask返回结果将在这里显示。
Seedance 2.0 API 价格
下方费率为参考估算,最终按实际优惠扣分 1:1 结算。按标准充值包换算,1,000 积分约为 10 美元,大额充值包可降低每积分实际单价。
| 规格 | 积分 | 计价单位 | 美元参考 |
|---|---|---|---|
| bytedance/seedance-2 fast, 720p no video input | 24.8 | 每秒 | $0.248 |
| bytedance/seedance-2 fast, 720p with video input | 15 | 每秒 | $0.15 |
| bytedance/seedance-2 fast, 480p no video input | 11.7 | 每秒 | $0.117 |
| bytedance/seedance-2 fast, 480p with video input | 6.8 | 每秒 | $0.068 |
| bytedance/seedance-2, 4K no video input | 208 | 每秒 | $2.08 |
| bytedance/seedance-2, 4K with video input | 128 | 每秒 | $1.28 |
| bytedance/seedance-2, 1080p with video input | 62 | 每秒 | $0.62 |
| bytedance/seedance-2, 1080p no video input | 102 | 每秒 | $1.02 |
| bytedance/seedance-2, 720p no video input | 41 | 每秒 | $0.41 |
| bytedance/seedance-2, 720p with video input | 25 | 每秒 | $0.25 |
| bytedance/seedance-2, 480p no video input | 19 | 每秒 | $0.19 |
| bytedance/seedance-2, 480p with video input | 11.5 | 每秒 | $0.115 |