GlobalAiOpc

Seedance2.0 - Submit Asset

Submit Seedance2.0 assets and use the returned assetId in video generation

POST/kyyReactApiServer/asset/seedance2/assetUpload

Seedance2.0 Submit Asset

Submit an image, video, or audio asset. In video generation, reference your uploaded asset with assetId://{assetId}.
cURL
Authorization: Bearer {{key}}
assetTypestringrequired
Asset type: Image, Video, Audio.
urlstringrequired
Original asset URL. It must be accessible by the server. Base64 input is not supported.
namestring
Asset name. Names longer than 50 Unicode characters are truncated automatically.
In video generation, image_url.url, video_url.url, and audio_url.url can reference assets returned by this API with assetId://{assetId}. After submission, the asset automatically enters processing; use status to determine whether it is ready.
assetIdstring
Asset ID.
assetTypestring
Asset type.
urlstring
Original asset URL.
statusstring
Asset status, usually PROCESSING after submission. Only assets with status=ACTIVE can be used to create video generation tasks.
errorMessagestring
Error message when asset processing fails; otherwise null.
namestring
Asset name.

Asset Statuses

  • NONE: The asset record has been created, but uploading or processing has not started. Query the asset detail later. Do not create a task yet.
  • UPLOADING: The asset is being uploaded. Wait for the status to change. Do not create a task yet.
  • PROCESSING: The asset has been submitted and is being processed. Continue querying the asset detail. Do not create a task yet.
  • ACTIVE: The asset has been processed and is ready. This is the only status that can be used to create a video generation task.
  • FAILED: Asset processing failed. Check errorMessage, resolve the problem, and submit the asset again.
  • EXPIRED: The asset has expired and is unavailable. Query the asset detail and wait for it to be processed to ACTIVE, or submit the asset again if necessary.
  • DELETED: The asset has been deleted or is no longer valid. Submit the asset again and wait until its status becomes ACTIVE.