Use this endpoint to upload media assets (images, videos, audio, or documents) to the Seedance 2.0 asset library. After upload, reference the asset in generation task parameters using theDocumentation Index
Fetch the complete documentation index at: https://docs.xingchaoyiqing.com/llms.txt
Use this file to discover all available pages before exploring further.
asset://{assetId} format instead of a raw public URL.
Base URL: https://zcbservice.aizfw.cn/kyyReactApiServer
Endpoint: POST /kyyVideo2/asset/upload
When to Use This Endpoint
Upload assets to the Seedance 2.0 library when:- You have face images that require moderation review before use in generation tasks.
- You want to reuse the same media across multiple generation tasks without re-supplying a URL each time.
- Your media URLs are not publicly accessible and cannot be referenced directly by the API.
Request Parameters
The type of asset being uploaded. Must be one of the following exact values (case-sensitive, first letter uppercase):
Image— image filesVideo— video filesAudio— audio filesDocument— document files
The publicly accessible URL of the asset to upload. The API must be able to fetch this URL at the time of the request.Example:
https://example.com/portrait.jpgA descriptive name for the asset to help you identify and manage it in the library.Example:
My portrait photoResponse Fields
Response status code.
0 indicates success; any other value indicates failure.Response message. Returns
null on success, or an error description on failure.The response data object, returned on success.
Asset Types and Requirements
| Type | Supported Formats | Use In |
|---|---|---|
Image | jpeg, png, webp, bmp, tiff, gif | referenceImages, first_image, last_image |
Video | 480p, 720p | referenceVideos |
Audio | wav, mp3 | referenceAudios |
Document | document files | — |
Example Request
assetId, reference the asset in a generation task using the asset:// prefix:
After uploading an asset, check its status using the Asset Details endpoint before using it in a generation task. Assets are not always immediately available.