Id 必选。这是判断素材能否使用的权威接口。Result 字段:Id、Name、AssetType、GroupId、Status、ProjectName、CreateTime、UpdateTime,失败时另有 Error.Code / Error.Message。Status = Active(可用)/ Processing(预处理中,不可用)/ Failed(处理失败)。Failed 的 Error.Code 分五类:| 类别 | Code |
|---|---|
| 下载与格式 | DownloadFailed TypeMismatch FormatUnsupported FormatUndetectable |
| 规格越界 | DurationTooShort DurationTooLong WidthTooSmall HeightTooSmall WidthTooLarge HeightTooLarge AspectRatioTooSmall AspectRatioTooLarge FileSizeTooLarge PixelCountTooSmall PixelCountTooLarge FpsTooLow FpsTooHigh |
| 音轨 | AudioTrackRequired AudioTrackForbidden |
| 审核 | ContentRestricted InputTextSensitiveContentDetected InputImageSensitiveContentDetected InputVideoSensitiveContentDetected InputAudioSensitiveContentDetected |
| 真人一致性 | FaceMismatch |
| 其他 | TranscodingFailed |
FaceMismatch 换素材。curl --location '/volc/?Action=GetAsset&Version=2024-01-01' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"Id": "asset-20260410114236-8cdfz"
}'{
"ResponseMetadata": {
"RequestId": "202609140804468423AF90FD6CA6BA26F6",
"Action": "GetAsset",
"Version": "2024-01-01",
"Service": "ark",
"Region": "cn-beijing"
},
"Result": {
"Id": "asset-20260410114236-8cdfz",
"Name": "主角正脸",
"AssetType": "Image",
"GroupId": "assetgroup-20260410113901-qk2mv",
"Status": "Active",
"ProjectName": "default",
"CreateTime": "2026-04-10T11:42:36Z",
"UpdateTime": "2026-04-10T11:42:41Z"
}
}