- API Document
- Avatar Marketing Video
- Video Avatar
- Scraper
- Upload
- Product Avatar
- Replace Product Image
- Image2Video
- Category QueryGET
- Public product avatar QueryGET
- Common Task
- image2Video
- Product AnyShoot
- Replace Product Image
- Template CategoryGET
- Template ListGET
- Caption ListGET
- Voice QueryGET
- AiAvatar QueryGET
- check notice urlPOST
- Ethnicity QueryGET
submit task
Developing
POST
/v1/product_avatar/task/image_replace/submit
Request
Header Params
Authorization
string
required
Topview-Uid
string
required
Body Params application/json
avatarId
string
optional
productImageFileId
string
required
templateImageFileId
string
optional
userFaceImageFileId
string
optional
imageEditPrompt
string
required
Example:
Replace the item in the hand of the person in Picture 1 with the one in Picture 2. Keep the composition position and gesture of the person in Picture 1 unchanged, and ensure that the features, appearance and details of the item in Picture 2 remain exactly the same after the change.
productSize
enum<string>
optional
Allowed values:
123456
Default:
2
noticeUrl
string
optional
Example
{
"avatarId": "string",
"productImageFileId": "string",
"templateImageFileId": "string",
"userFaceImageFileId": "string",
"imageEditPrompt": "Replace the item in the hand of the person in Picture 1 with the one in Picture 2. Keep the composition position and gesture of the person in Picture 1 unchanged, and ensure that the features, appearance and details of the item in Picture 2 remain exactly the same after the change.",
"productSize": "2",
"noticeUrl": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.topview.ai/v1/product_avatar/task/image_replace/submit' \
--header 'Authorization;' \
--header 'Topview-Uid;' \
--header 'Content-Type: application/json' \
--data-raw '{
"avatarId": "string",
"productImageFileId": "string",
"templateImageFileId": "string",
"userFaceImageFileId": "string",
"imageEditPrompt": "Replace the item in the hand of the person in Picture 1 with the one in Picture 2. Keep the composition position and gesture of the person in Picture 1 unchanged, and ensure that the features, appearance and details of the item in Picture 2 remain exactly the same after the change.",
"productSize": "2",
"noticeUrl": "string"
}'
Responses
🟢200OK
application/json
Body
code
string
required
message
string
required
result
object
required
taskId
string
required
status
string
required
errorMsg
string
required
Example
{
"code": "string",
"message": "string",
"result": {
"taskId": "string",
"status": "string",
"errorMsg": "string"
}
}
Modified at 2025-05-28 02:53:31