BOTCF02 Seedance 视频使用教程
使用 BOTCF02 国外满血渠道提交 Seedance 2.0 视频任务、上传真人脸素材并查询生成结果。
使用限制
- 真人脸必须先走
/v1/sd/assets素材上传接口,生成时使用asset://<Id>引用,并选择对应的-hc模型。 - 明星及有版权的内容暂不支持。
- NSFW 内容仅可使用
-ep或-hc版本;作品仅限海外使用,国内请勿发布、传播。
准备工作
在 BotCF 控制台创建令牌,并按需要选择以下分组:
| 分组 | 可用系列 | 适用场景 |
|---|---|---|
🎥SeedDance-Pro-视频-BOTCF02(国外满血渠道可NSFW) | Pro | 支持 480p、720p、1080p、4k |
🎞️SeedDance-Fast-视频-BOTCF02(国外满血渠道可NSFW) | Fast、Mini | 支持 480p、720p,优先速度与成本 |
接口地址和令牌可先写入环境变量:
export BASE_URL="https://botcf.com"
export API_KEY="sk-你的BotCF令牌"
模型列表
| 系列 | 模型 ID | 分辨率 |
|---|---|---|
| Pro | dreamina-seedance-2-0-260128 | 480p / 720p / 1080p / 4k |
| Pro EP | dreamina-seedance-2-0-ep | 480p / 720p / 1080p / 4k |
| Pro HC | dreamina-seedance-2-0-hc | 480p / 720p / 1080p / 4k |
| Fast | dreamina-seedance-2-0-fast-260128 | 480p / 720p |
| Fast EP | dreamina-seedance-2-0-fast-ep | 480p / 720p |
| Fast HC | dreamina-seedance-2-0-fast-hc | 480p / 720p |
| Mini | dreamina-seedance-2-0-mini-260615 | 480p / 720p |
| Mini EP | dreamina-seedance-2-0-mini-ep | 480p / 720p |
| Mini HC | dreamina-seedance-2-0-mini-hc | 480p / 720p |
1. 上传素材
创建图片、视频或音频素材。真人脸图片必须先执行此步骤。
curl --location "$BASE_URL/v1/sd/assets" \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"URL": "https://example.com/avatar.jpg",
"Name": "avatar_front",
"AssetType": "Image"
}'
成功响应中的 data.Id 是素材 ID:
{
"success": true,
"data": {
"Id": "asset-20260705003737-njxmg",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
}
查询素材状态:
curl "$BASE_URL/v1/sd/assets/asset-20260705003737-njxmg" \
--header "Authorization: Bearer $API_KEY"
2. 生成视频
提交任务后接口会立即返回任务 ID。下例使用已上传的人脸素材,因此模型必须为 -hc:
curl --location "$BASE_URL/v1/video/generate" \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "dreamina-seedance-2-0-hc",
"content": [
{
"type": "text",
"text": "这个人在跳舞"
},
{
"type": "image_url",
"image_url": {
"url": "asset://asset-20260705003737-njxmg"
},
"role": "reference_image"
}
],
"duration": 5,
"resolution": "480p",
"ratio": "1:1",
"generate_audio": false,
"watermark": false
}'
响应中的 task.id 是 BotCF 任务 ID:
{
"task": {
"id": "task_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "pending",
"model": "dreamina-seedance-2-0-hc",
"duration_seconds": 5,
"outputs": [],
"error": null,
"created_at": "2026-07-20T08:00:00Z",
"completed_at": null
}
}
content 类型
| 类型 | 字段 | 常用 role |
|---|---|---|
| 文本 | text | 不需要 |
| 图片 | image_url.url | reference_image |
| 视频 | video_url.url | reference_video |
| 音频 | audio.url 或 audio_url.url | reference_audio |
3. 查询任务
轮询单个任务,直到 status 变为 completed 或 failed:
curl "$BASE_URL/v1/video/tasks/task_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
--header "Authorization: Bearer $API_KEY"
任务完成后从 task.outputs 获取视频地址:
{
"task": {
"id": "task_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "completed",
"model": "dreamina-seedance-2-0-hc",
"duration_seconds": 5,
"outputs": ["https://example.com/generated-video.mp4"],
"error": null,
"usage": {
"completion_tokens": 40594,
"total_tokens": 40594
}
}
}
查看当前令牌所属用户提交的任务列表:
curl "$BASE_URL/v1/video/tasks" \
--header "Authorization: Bearer $API_KEY"
价格
BOTCF02 上游密钥实际使用 Standard 计费档,按视频 token 计费,不按秒计费。下表是源站实际结算价上浮 50% 后的最终售价,任务完成时以 usage.total_tokens 结算,单位为美元 / 100 万 token。
| 系列 | 分辨率 | 无参考素材 | 有参考素材 |
|---|---|---|---|
| Pro | 480p / 720p | $10.50 | $6.45 |
| Pro | 1080p | $11.55 | $7.05 |
| Pro | 4k | $6.00 | $3.60 |
| Fast | 480p / 720p | $8.40 | $4.95 |
| Mini | 480p / 720p | $5.25 | $3.15 |
任务状态
| status | 说明 |
|---|---|
pending | 已提交,等待处理 |
processing | 正在生成 |
completed | 生成完成,从 outputs 获取视频 |
failed | 生成失败,从 error 查看原因 |