← 動画モデル

Seedance 2.0 API

token168 デプロイでブリッジが有効な場合、Seedance 2.0 ネイティブタスク API で作成、取得、一覧表示を行います。

Seedance 2.0 ネイティブタスクを作成します。ルートは token168 API Key で認証し、有効な Seedance 対応チャネルを選択して、ポーリング用の公開タスク ID を保存します。

Seedance 2.0 の最小限の先頭フレーム例です。テキストと image_url を最上位の content に指定します。GET /v1/models でモデル ID を確認し画像 URL を置き換えてください。パラメータの制限は下表を参照してください。

Seedance 2.0 の先頭フレームおよび先頭・末尾フレーム生成で固定アスペクト比を指定するには、グループ内に対応チャネルが必要です。先頭画像に合わせるには ratio を adaptive に設定します。Seedance 2.5 ではこれらのモードで adaptive が必須です。作成が拒否された場合は error.message で理由を確認してください。

POST /api/v3/contents/generations/tasks
curl https://www.token168.cc/api/v3/contents/generations/tasks \
  -H "Authorization: Bearer $TOKEN168_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dreamina-seedance-2-0-260128",
    "content": [
      {"type": "text", "text": "A futuristic tech city, but with a strange, surreal quality. People are more open and free, focused on developing themselves. The city blends pristine natural ecosystems with modern technology. Residential areas are highly ecological, green development is advanced, all power comes from green electricity, and controlled nuclear fusion, space elevators, and extremely deep underground spaces have already been achieved."},
      {"type": "image_url", "image_url": {"url": "https://example.com/reference.png"}, "role": "first_frame"}
    ],
    "duration": 4,
    "resolution": "480p",
    "ratio": "adaptive",
    "generate_audio": false,
    "watermark": false
  }'
フィールドの境界
フィールド動作エラー
callback_url非対応です。OperationDenied.CallbackNotSupported
service_tier省略するか default の場合のみ受け付けます。InvalidParameter.Unsupported
duration有効な値は -1 または 4 から 15 です。InvalidParameter.InvalidValue
framesSeedance 2.0 では未対応です。InvalidParameter.Unsupported
seedSeedance 2.0 では未対応です。InvalidParameter.Unsupported
camera_fixedSeedance 2.0 では未対応です。InvalidParameter.Unsupported
DELETEDELETE とキャンセルは未対応であり、返金や状態変更を示すものではありません。未対応のメソッド
素材 URL から動画を生成

HTTPS URL から素材を自動準備する場合は専用の URL 動画入口を使います。有効な素材キーは引き続き必要です。既存のネイティブ API と手動素材処理も利用できます。