Seedance 2
Seedance 2 视频生成,支持文生视频、图生视频和多模态参考输入
功能特性
- 文生视频生成
- 图生视频生成
- 支持图片、视频和音频参考输入
- Fast 与 Pro 两种模型
- 标准、真人、狂野三种渲染模式
- 支持 4-15 秒输出
定价
| Model / Resolution | 4s | 8s | 12s | 15s |
|---|---|---|---|---|
| seedance2-fast / 720p | 60 (~$0.67) | 120 (~$1.33) | 180 (~$2.00) | 225 (~$2.50) |
| seedance2 / 720p | 72 (~$0.80) | 144 (~$1.60) | 216 (~$2.40) | 270 (~$3.00) |
| seedance2 / 1080p | 108 (~$1.20) | 216 (~$2.40) | 324 (~$3.60) | 405 (~$4.50) |
Example pricing for text/image inputs. Requests with video or audio references use doubled media-reference pricing.
端点
POST
/api/v1/videos/generate参数
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| model | string | 必需 | "seedance2" for Pro quality or "seedance2-fast" for Fast quality |
| mode | string | 可选 | "standard", "real", or "wild" rendering mode. channel is accepted as an alias. |
| type | string | 可选 | "text-to-video", "image-to-video", or "media-to-video" (auto-detected from media_urls/image_urls when omitted) |
| prompt | string | 必需 | Text prompt (3-2500 chars) |
| media_urls | string[] | 可选 | Reference media URLs. Supports images, videos, and audio; detected by file extension. |
| image_urls | string[] | 可选 | Image-only reference URLs. media_urls takes precedence when both are provided. |
| input_image | string | 可选 | Deprecated. Alias for image_urls[0] |
| aspect_ratio | string | 可选 | "1:1", "21:9", "4:3", "3:4", "16:9", or "9:16" (default: 16:9) |
| duration | string | 可选 | "4" through "15" seconds (default: 4) |
| resolution | string | 可选 | "480p", "720p", or "1080p" (default: 720p) |
| fallback | boolean | 可选 | Allow automatic service fallback when available (default behavior) |
请求示例(文生视频)
{
"model": "seedance2",
"mode": "standard",
"type": "text-to-video",
"prompt": "A cinematic drone shot over a futuristic coastal city at sunrise",
"aspect_ratio": "16:9",
"duration": "8",
"resolution": "1080p",
"fallback": true
}请求示例(图生视频)
{
"model": "seedance2-fast",
"mode": "real",
"prompt": "A product spins slowly on a clean studio turntable with soft reflections",
"media_urls": ["https://example.com/product.png"],
"aspect_ratio": "16:9",
"duration": "6",
"resolution": "720p"
}响应示例
{
"success": true,
"data": {
"task_id": "task_seedance2_123",
"credits_used": 216,
"remaining_credits": 784,
"model": "seedance2",
"mode": "standard"
}
}代码示例(文生视频)
curl -X POST https://gateway.bananapro.site/api/v1/videos/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance2",
"mode": "standard",
"type": "text-to-video",
"prompt": "A cinematic drone shot over a futuristic coastal city at sunrise",
"aspect_ratio": "16:9",
"duration": "8",
"resolution": "1080p"
}'代码示例(图生视频)
curl -X POST https://gateway.bananapro.site/api/v1/videos/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance2-fast",
"mode": "real",
"prompt": "A product spins slowly on a clean studio turntable with soft reflections",
"media_urls": ["https://example.com/product.png"],
"aspect_ratio": "16:9",
"duration": "6",
"resolution": "720p"
}'