Seedance 是火山引擎的视频生成模型,支持文生视频、图生视频、视频到视频等多种模式。
可用模型
支持的统一入参
| 统一字段 | 支持 | 说明 |
|---|---|---|
model | ✅ | model |
prompt | ✅ | content[] 中的 { type: "text", text } |
image | ✅ | content[] 中的 image_url 项 |
video | ✅ | content[] 中的 video_url 项 |
audio | ✅ | content[] 中的 audio_url 项 |
ratio | ✅ | ratio |
resolution | ✅ | resolution |
headers | ✅ | 自定义 HTTP 请求头 |
upstream_options 支持的参数
| 参数 | 类型 | 说明 |
|---|---|---|
callback_url | string | 回调地址 |
return_last_frame | boolean | 返回尾帧 |
service_tier | 'default' | 'flex' | 服务等级 |
execution_expires_after | number | 执行超时 |
generate_audio | boolean | 生成音频 |
draft | boolean | 草稿模式 |
tools | Array<{ type: string }> | 工具定义 |
safety_identifier | string | 安全标识 |
priority | number | 优先级 |
duration | number | 视频时长 |
frames | number | 帧数 |
seed | number | 随机种子 |
camera_fixed | boolean | 固定镜头 |
watermark | boolean | 水印开关 |
媒体入参映射
媒体输入参数处理规则:
| 用户传入 | 处理结果 |
|---|---|
image: "https://..." | { "type": "image_url", "image_url": { "url": "..." }, "role": "reference_image" } |
image: { "type": "first_frame", "url": "..." } | { "type": "image_url", "image_url": { "url": "..." }, "role": "first_frame" } |
video: "https://..." | { "type": "video_url", "video_url": { "url": "..." }, "role": "reference_video" } |
video: { "type": "reference_video", "url": "..." } | { "type": "video_url", "video_url": { "url": "..." }, "role": "reference_video" } |
audio: "https://..." | { "type": "audio_url", "audio_url": { "url": "..." }, "role": "reference_audio" } |
audio: { "type": "reference_audio", "url": "..." } | { "type": "audio_url", "audio_url": { "url": "..." }, "role": "reference_audio" } |
数组会逐项展开;字符串使用默认 role,对象使用对象上的 type 作为 role。
示例:文生视频
curl -X POST https://51kik.com/video/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedance-1-0-pro-250528",
"prompt": "一只金毛犬在海边奔跑,夕阳逆光,慢动作",
"resolution": "720p",
"ratio": "16:9",
"upstream_options": {
"duration": 5,
"watermark": false,
"service_tier": "default"
}
}'
示例:视频输入
curl -X POST https://51kik.com/video/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedance-1-0-pro-250528",
"prompt": "基于参考视频生成续集,保持人物和场景一致",
"video": { "type": "reference_video", "url": "https://example.com/reference.mp4" },
"resolution": "720p",
"upstream_options": { "duration": 5 }
}'
示例:多模态参考(图片 + 视频 + 音频)
curl -X POST https://51kik.com/video/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedance-1-0-pro-250528",
"prompt": "根据首帧、参考视频和背景音乐生成广告片",
"image": { "type": "first_frame", "url": "https://example.com/first.jpg" },
"video": "https://example.com/reference.mp4",
"audio": "https://example.com/bgm.mp3",
"resolution": "1080p",
"ratio": "16:9",
"upstream_options": {
"duration": 8,
"generate_audio": true,
"watermark": false
}
}'
计费
Seedance 使用 billingMethod: "modality_tokens":
请求是否包含 video | 对客价格字段 | 用量字段 |
|---|---|---|
| 否 | output_tokens_pricing | usage.output_tokens |
| 是 | input_video_output_tokens_pricing | usage.output_tokens |
has_input_video 只由统一请求体的 video 字段判断:非空字符串、非空 URL 对象或数组中任一有效视频即为 true。