Seedance 2.0
Seedance 2.0
ドキュメントはじめに
API 概要テキストから動画画像から動画
API リファレンス

テキストから動画

Seedance 2.0 Open API でテキストプロンプトから動画を生成します。

mediaUrls を送らない場合、このエンドポイントは純粋な text-to-video として処理されます。

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
modelstringYesseedance-2.0、seedance-2.0-fast、seedance-1.5-pro のいずれかです。
promptstringYes生成したい動画を説明する自然言語プロンプトです。
aspectRatiostringNo16:9、9:16、1:1 のいずれかです。
durationintegerNoseedance-2.0 と seedance-2.0-fast は 4-15 秒、seedance-1.5-pro は 5 または 10 秒です。
resolutionstringNo480p、720p、1080p のいずれかです。
webhookUrlstringNo完了時に結果を受け取るコールバック URL です。
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 はジョブ受理時に計算されます。
  • output.url は status が succeeded のときのみ返ります。
  • ポーリングではなく通知を受け取りたい場合は Webhook を設定してください。

API 概要

Seedance 2.0 Open API の認証、送信フロー、ステータス確認、Webhook を確認できます。

画像から動画

Seedance 2.0 Open API で画像や参照素材から動画を生成します。

目次

Endpointリクエスト例成功レスポンスリクエスト項目結果の確認ジョブをキャンセルメモ