Seedance 2.0
Seedance 2.0
文件快速開始
API 總覽文生影片圖生影片
API 參考

文生影片

使用 Seedance 2.0 Open API 透過文字提示詞生成影片。

當請求中不傳 mediaUrls 時,介面會以純文生影片模式處理。

Endpoint

POST /api/open/v1/video/generations

請求示例

curl --request POST \
  --url https://www.seedance2.ink/api/open/v1/video/generations \
  --header 'Authorization: Bearer sd2_live_your_api_key' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedance-2.0",
    "prompt": "A river flowing through an autumn forest, aerial view, cinematic motion",
    "aspectRatio": "16:9",
    "duration": 5,
    "resolution": "720p",
    "webhookUrl": "https://your-app.com/webhooks/seedance",
    "metadata": {
      "projectId": "proj_1001",
      "sceneId": "scene_08"
    }
  }'

成功回應

{
  "success": true,
  "requestId": "req_1234567890",
  "status": "queued",
  "creditsCharged": 40
}

請求參數

FieldTypeRequiredDescription
modelstringYes可選值:seedance-2.0、seedance-2.0-fast、seedance-1.5-pro。
promptstringYes描述目標影片效果的自然語言提示詞。
aspectRatiostringNo可選值:16:9、9:16、1:1。
durationintegerNoseedance-2.0 與 seedance-2.0-fast 支援 4-15 秒;seedance-1.5-pro 僅支援 5 或 10 秒。
resolutionstringNo可選值:480p、720p、1080p。
webhookUrlstringNo任務完成後接收回調通知的地址。
metadataobjectNo與本次請求一同保存的自訂資料。

查詢結果

curl https://www.seedance2.ink/api/open/v1/video/generations/req_1234567890 \
  --header 'Authorization: Bearer sd2_live_your_api_key'
{
  "success": true,
  "requestId": "req_1234567890",
  "status": "succeeded",
  "model": "seedance-2.0",
  "prompt": "A river flowing through an autumn forest, aerial view, cinematic motion",
  "duration": 5,
  "aspectRatio": "16:9",
  "output": {
    "type": "video",
    "url": "https://pub-your-bucket.r2.dev/open-api-results/req_1234567890.mp4"
  },
  "error": null
}

取消任務

curl --request POST \
  --url https://www.seedance2.ink/api/open/v1/video/generations/req_1234567890/cancel \
  --header 'Authorization: Bearer sd2_live_your_api_key'
{
  "success": true,
  "requestId": "req_1234567890",
  "status": "cancelled"
}

說明

  • creditsCharged 會在任務建立成功時返回。
  • 只有在 status 為 succeeded 時才會返回 output.url。
  • 如果你想用推送方式接收結果,建議設定 Webhook。

API 總覽

了解 Seedance 2.0 Open API 的認證方式、提交流程、狀態查詢與 Webhook 回調。

圖生影片

使用 Seedance 2.0 Open API 透過圖片與參考素材生成影片。

目錄

Endpoint請求示例成功回應請求參數查詢結果取消任務說明