Skip to main content

Flow

  1. CreateAssetGroup to create an asset group and get Result.Id.
  2. CreateAsset to import an asset from a URL and get Result.Id.
  3. GetAsset until Status=Active.
  4. Create a video generation task that references the asset as asset://<asset ID>, and get id.
  5. Get the video generation task until status=succeeded, then download content.video_url.
Steps 1–3 use HMAC-SHA256 signing and steps 4–5 use Bearer, both with the same API key.

Complete example

Python 3.9+, standard library only.
seedance_demo.py
Run:

cURL example

The asset library management API requires a signature and cannot be called with hand-written cURL. See Authentication and conventions for signing. The video generation API uses Bearer and can be called directly:

Other reference media combinations

Audio must be combined with an image or video. Set generate_audio to true when using reference audio.