GlobalAiOpc
Upload Asset
Upload images, videos, audio and other assets to Seedance2.0 asset library
Seedance2.0 Upload Asset
Upload assets to the Seedance2.0 asset library and obtain asset IDs for use in video generation tasks.
Authentication
Get KeyAll requests require a Bearer token in the request header:
cURL
Authorization: Bearer {{key}}
Base URL
https://zcbservice.aizfw.cn/kyyReactApiServerbaseUrl is the shared prefix for all public APIs. The api field in the current page frontmatter shows the full endpoint. Use this baseUrl as the common prefix when reading or composing request paths.Request Parameters
assetTypestringrequiredAsset type, first letter must be capitalized
Available options:
Image- ImageVideo- VideoAudio- AudioDocument- Document
First letter must be capitalized
urlstringrequiredPublic URL of the asset
Example:
https://example.com/image.jpgnamestringAsset name for identification and management
Example:
Cat ImageResponse Parameters
codeintegerResponse status code
0- Success- Other values - Failure
msgstringResponse message,
null on success, error message on failuredataobjectResponse data object
Asset Type Description
Image
Supported formats: jpeg, png, webp, bmp, tiff, gif
Used for
referenceImages, first_image, last_image parametersVideo
Supported resolutions: 480p, 720p
Used for
referenceVideos parameterAudio
Supported formats: wav, mp3
Used for
referenceAudios parameterDocument
Document type assets
Used for other scenarios
Usage Flow
Upload Asset
Call the upload API to obtain
assetIdAsset Review
Assets involving faces or virtual avatars need to wait for review approval
Use Asset
Reference the asset in video generation tasks using
asset://{assetId} formatAdvantages of Using Asset IDs:
- Assets are reviewed and comply with platform standards
- Assets are stored on the platform for faster access
- Avoid issues caused by external URL expiration
- Can reuse uploaded assets multiple times
Best Practices:
- Set meaningful names for assets for easier management
- Upload images involving faces in advance and wait for review
- Save the
assetIdfor reuse in multiple video generation tasks - Ensure asset URLs are accessible during upload
