| Code | Message |
|---|---|
| 200 | Success |
| 4000 | Request parameter error |
| 4001 | Request data format does not match! |
| 4002 | Request digital signature does not match! |
| 4003 | Required parameter cannot be null |
| 4004 | Resource not found! |
| 4005 | Name duplicated |
| 4006 | Request refuse |
| 4007 | Exists unfinished task, please wait until the previous task is completed. |
| 4100 | Credit not enough |
| 5000 | Internal server error! |
| 5001 | Feign invoke error |
| 5003 | Server is busy, please try again later! |
| 5004 | I/O error occurred |
| 5005 | Unknown error occurred |
| 6001 | Security problem detect |
xxxFileId field of the Product Avatar - Replace Product Image - submit task interface requires you to first obtain a temporary file credential. Then, upload the file to S3. After a successful upload, set the fileId from the temporary credential to the xxxFileId field. For detailed steps, see Upload file.productReplaceResultKey field of the Product Avatar - image2Video - submit task interface must be the result-productReplaceResult-key key from the response data of the Product Avatar - Replace Product Image - query task. For example, if the response data from the Replace Product Image - query task is as follows, then the key would be 21f48762080b42f1b718ad722f92c.{
"code": "200",
"message": "Success",
"result": {
"taskId": "176bd1a50ba8437db36af5eb8fd9e5ca",
"taskStatus": "success",
"productReplaceResult": [
{
"key": "21f48762080b42f1b718ad722f92c",
"url": "https://aigc.s3.amazonaws.com/analyzed_video/video/21f48762080b42f1b718ad722f92cbb1/21f48762080b42f1b718ad722f92cbb1.jpg"
}
]
}
}productMaskFileId file must be consistent with the size of the productImageFileId file;templateMaskFileId file must be consistent with the size of the templateImageFileId file;productImageFileId、productMaskFileId、templateImageFileId、templateMaskFileId all require obtaining fileId through upload file;originVoiceFileId conditionsvoiceSpeed is [0.8 ~ 1.2]voiceSpeed is [0.8 ~ 1.2]submit task interface to set the callback address.query task interface to ${noticeUrl}.| bizType |
|---|
| SCRAPER |
| ZERO_SHOT_AVATAR |
| M2V_PREVIEW |
| M2V_EXPORT |
| M2V_SCRIPT |
| PRODUCT_AVATAR_REPLACE_PRODUCT_IMAGE |
| PRODUCT_AVATAR_IMAGE2VIDEO |
| PRODUCT_ANY_SHOOT |
| COMMON_TASK_IMAGE2VIDEO |
| COMMON_TASK_TEXT2VIDEO |
| COMMON_TASK_TEXT2IMAGE |
| COMMON_TASK_VIDEO2AIAVATAR |
| VOICE_CLONE |
| VOICE_TEXT2VOICE |
{
"code": "200",
"message": "Success",
"result": {
"taskId": "0d3a303bfc1f4f0e9a287ba47dbbefbc",
"status": "success",
"errorMsg": null,
"exportVideos": [
{
"scriptId": 0,
"status": null,
"title": null,
"description": null,
"videoUrl": null,
"coverUrl": null,
"videoDuration": null
}
],
"previewVideos": [
{
"scriptId": 0,
"status": "success",
"title": null,
"description": null,
"videoUrl": "https://aigc.s3.amazonaws.com/analyzed_video/task/export/487a84446461405088b751861d497dfd_topview.ai.mp4",
"coverUrl": "https://aigc.s3.amazonaws.com/analyzed_video/task/export/487a84446461405088b751861d497dfd.jpg",
"videoDuration": 36096000
}
]
}
}