视频模型
Seedance
720p 生视频,支持参考图。2.0 最长 15 秒,2.5 最长 30 秒。
提交到 POST /v1/videos/generations,model 取 "seedance-2.0" 或 "seedance-2.5"。
参数
参数(放进 params) | 可选值 | 默认 |
|---|---|---|
ratio 比例 | 16:9 9:16 1:1 4:3 3:4 21:9 | 16:9 |
resolution 清晰度 | 720p | 720p |
duration 时长(秒) | 整数,步长 1。seedance-2.0:5–15seedance-2.5:5–30 | 10 |
duration 是两个模型唯一取值范围不同的参数,超出范围会被拒绝。
参考图:refs.image 最多 9 张。
示例
curl -X POST https://api.gomiservice.com/v1/videos/generations \
-H "Authorization: Bearer sk-gomi-你的Key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5",
"prompt": "航拍雪山日出,云海翻涌",
"params": "{\"ratio\":\"16:9\",\"duration\":20}",
"request_id": "demo-sd-0001"
}'