Skip to main content
POST
Upload a publicly downloadable image, video or audio link as an asset. After submission status is processing; use Get asset for the review result.
Assets are stored in the model provider’s shared asset library, where other customers of that provider may be able to see and download them. Do not upload private or sensitive content.

Authorizations

string
required
Bearer YOUR_API_KEY

Request parameters

string
required
The model that will reference the asset: seedance-2.0, seedance-2.0-fast, seedance-2.0-mini, seedance-2.5.
string
required
Asset type: image, video, audio.
string
required
Publicly downloadable http(s) link, up to 4096 characters. The duration of video and audio is read at upload; if it cannot be read the request returns 400. Use MP4 / MOV / WebM for video and WAV / MP3 for audio.
string
A label, up to 128 characters.
Any other field returns 400 (invalid_request).

Response

string
Asset ID, starting with ast_. Used to get and delete the asset.
string
Always asset.
string
The model sent at upload.
string
image, video or audio.
string
The label; an empty string if not sent.
string
Always processing on a successful upload.
number
Duration of a video or audio asset in seconds, read at upload. Absent for images.
integer
Creation time (Unix seconds).
integer
Last update time (Unix seconds).

Error codes