The asset object
For active assets, size_bytes and sha256 are required.
- Images and videos also include width and height; audio and video include
duration_ms. - Images omit
duration_ms; audio omits dimensions. - Active assets omit
failure_reason. - Unavailable assets include
failure_reasonand omit all these measurements. - Processing assets omit both measurements and
failure_reason.
Attributes
ID assigned to the asset by the platform.
Current state; see the value notes for its meaning.
processingProcessingactiveAsset is ready to useunavailableUnavailableIdentifies the kind of object returned.
The kind of media in this file.
ID of the model used for this request.
dreamina-seedance-2-0-260128Seedance 2.0dreamina-seedance-2-0-fast-260128Seedance 2.0 Fastdreamina-seedance-2-0-mini-260615Seedance 2.0 MiniOptional display name. Control characters, line or paragraph separators and bidirectional text controls are not accepted.
Creation time as whole seconds since the Unix epoch.
Most recent update time as whole Unix seconds.
Width in pixels, required for active images and videos. Omitted for audio, processing assets and unavailable assets.
Height in pixels, required for active images and videos. Omitted for audio, processing assets and unavailable assets.
Measured duration in milliseconds, required for active audio and video. Omitted for images and for assets that are processing or unavailable.
Stored size in bytes, required when active and omitted while processing or unavailable.
SHA-256 of the bytes actually stored, required when active and omitted while processing or unavailable.
Required reason when unavailable. Omitted while processing and when active.
source_url_not_allowedThe source address does not meet the fetch policysource_fetch_failedThe source file could not be fetchedsource_too_largeThe source file is too largemedia_type_mismatchThe media type does not matchmedia_constraints_violatedThe file does not meet the media requirementsreview_rejectedThe asset did not pass reviewreview_unavailableAsset review is temporarily unavailableinternal_errorThe service could not complete the requestRead this object with Check an asset.