API Document
Domain Name
Authorization
1.
2.
3.
4.
Upload
1.
Upload - Get Upload Credential
2.
3.
Upload - Get Upload Check
Avatar Marketing Video
Submit Task:
Query Task:
1.
2.
3.
4.
Script
Get Script Content
Modify Script
Video Avatar
Submit Task:
Query Task:
Product Avatar
1. Supported interface
Ethnicity list query
Public model avatar category query
Public model avatar list query
2. Replace Product Image Task
Submit Task
Query Task
3. Image2Video Task
Submit Task
Query Task
1.
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.2.
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"
}
]
}
}
Product Anyshoot
1、Supported interface
Template List Query
Template Category Query
2. Anyshoot Replace Product Image Task
Submit Task
Query Task
1.
productMaskFileId
file must be consistent with the size of the productImageFileId
file;2.
templateMaskFileId
file must be consistent with the size of the templateImageFileId
file;3.
productImageFileId
、productMaskFileId
、templateImageFileId
、templateMaskFileId
all require obtaining fileId through upload file;4.
Common Task
Image2Video
Submit Task
Query Task
Notice Url
1.
2.
submit task
interface to set the callback address.3.
query task
interface to ${noticeUrl}
.
4.
Step1: The noticeUrl is http://127.0.0.1:8080/notice. Assume that the check notice url is called to validate its legality.
Step2: Add noticeUrl to the Avatar Marketing Video - submit task API interface.
{
"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
}
]
}
}
Modified at 2025-06-11 08:27:07