Seedance 2.5
Doubao Seedance 2.5 asynchronous video generation. Supports text, image, video, and audio references; first/last frames; video editing and extension; native audio; optional content moderation; 480p/720p/1080p output; and automatic or 4-30 second duration.
价格
$0.216/秒
端点
/videos
交付模式
异步任务生命周期
可用状态
当前可用
API 文档
配置并复制请求
选择这个模型支持的选项,下面的代码会实时更新。
https://www.aisplice.store/v1/videosBearer API key异步任务选项这里只展示当前模型已公开支持的选项。
# Requires curl and jq
API_KEY="${API_KEY:-YOUR_API_KEY}"
# 1. Submit once
SUBMITTED=$(curl --fail-with-body -sS https://www.aisplice.store/v1/videos \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: model-docs-$(date +%s)-$$" \\
-d '{
"model": "Seedance 2.5",
"prompt": "A cinematic scene with careful composition",
"nsfw_check": false,
"duration": 5,
"resolution": "720p",
"metadata": {
"generate_audio": true,
"watermark": false,
"output_format": "mp4",
"return_last_frame": false
},
"size": "1:1"
}')
TASK_ID=$(printf '%s' "$SUBMITTED" | jq -r '.task_id // .id // empty')
if [ -z "$TASK_ID" ]; then
printf '%s\n' "$SUBMITTED" >&2
exit 1
fi
echo "task_id=$TASK_ID"
# 2. Poll until terminal
while true; do
STATUS_JSON=$(curl --fail-with-body -sS \
"https://www.aisplice.store/v1/videos/$TASK_ID" \
-H "Authorization: Bearer $API_KEY")
STATUS=$(printf '%s' "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
echo "status=$STATUS"
case "$STATUS" in
completed|succeeded|success) break ;;
failed|failure|cancelled|canceled)
printf '%s\n' "$STATUS_JSON" | jq .
exit 1
;;
esac
sleep 5
done
# 3. Fetch the final result
curl --fail-with-body -sS \
"https://www.aisplice.store/v1/videos/$TASK_ID/content" \
-H "Authorization: Bearer $API_KEY" | jq .- 1提交任务
- 2轮询状态
- 3获取结果内容
生产环境推荐使用公网媒体地址。 先上传本地文件,再把 public_url 放入模型请求;避免发送大体积 Base64 请求体。
查看上传指南参数说明
model本次请求使用的精确模型标识。
doubao-seedance-2.5prompt描述期望结果的指令。
durationOutput seconds; -1 lets Seedance choose automatically.
-1456789101112131415161718192021222324252627282930resolution请求的输出分辨率。
480p720p1080psizeFirst/last-frame and edit modes require adaptive.
adaptive21:916:94:31:13:49:16imagesUp to 30 image references. Use image_tail with exactly one first-frame image for first/last-frame mode.
videosUp to 10 reference videos, each 2-30 seconds and no more than 30 seconds total.
响应流程
查看任务状态、终态和结果响应示例。
响应流程
查看任务状态、终态和结果响应示例。
{
"id": "task_xxx",
"task_id": "task_xxx",
"object": "video",
"model": "Seedance 2.5",
"status": "queued"
}等待中
queued · submitted · in_progress · processing
成功
completed · succeeded · success
失败
failed · failure · cancelled · canceled
错误与生产配置
查看重试规则、幂等要求和最小生产检查清单。
错误与生产配置
查看重试规则、幂等要求和最小生产检查清单。
400 / 422修正请求字段或不支持的选项,不要原样重试。
401检查 API 密钥是否存在、有效,并已通过 Bearer Token 发送。
402账户余额不足。
409Idempotency-Key 正在处理中,或已被其他请求体使用。
429按照 Retry-After 退避后再重试。
5xx使用指数退避重试,并保留原始 Idempotency-Key。
- 面向公众的移动端和浏览器应用应把 API 密钥保存在服务端。
- 为每个会计费的异步操作设置唯一 Idempotency-Key。
- 持久保存 task_id,以便重启后恢复轮询。
- 为每个 HTTP 请求设置超时,并在支持工单中提供请求 ID。
- 读取实时模型元数据,不要硬编码价格和支持选项。
价格与档位
较官方价省 20%按请求计价
$0.216/秒
$0.27
档位定价
基准价 $0.216/秒
档位定价——最终价格取决于请求的参数选项,未列出的档位按基准价计费。 按生成内容的秒数计费。
二选一:未附参考素材时使用文生视频价格;附加图片、视频或音频参考素材时使用参考素材视频价格。两组分辨率价格不会叠加。
- 16:9×1$0.216/秒
- 1:1×1$0.216/秒
- 21:9×1$0.216/秒
- 3:4×1$0.216/秒
- 4:3×1$0.216/秒
- 9:16×1$0.216/秒
- adaptive×1$0.216/秒
- 480p×0.444814814815$0.09608/秒
- 720p×1$0.216/秒
- 1080p×1.781851851852$0.38488/秒
- 480p×0.266666666667$0.0576/秒
- 720p×0.6$0.1296/秒
- 1080p×1.064444444444$0.22992/秒
- 4×4$0.864
- 5×5$1.08
- 6×6$1.296
- 7×7$1.512
- 8×8$1.728
- 9×9$1.944
- 10×10$2.16
- 11×11$2.376
- 12×12$2.592
- 13×13$2.808
- 14×14$3.024
- 15×15$3.24
- 16×16$3.456
- 17×17$3.672
- 18×18$3.888
- 19×19$4.104
- 20×20$4.32
- 21×21$4.536
- 22×22$4.752
- 23×23$4.968
- 24×24$5.184
- 25×25$5.40
- 26×26$5.616
- 27×27$5.832
- 28×28$6.048
- 29×29$6.264
- 30×30$6.48
页面展示的价格即实际计费价格,调用失败会自动退款。
相关模型