{"generateImageMode":"auto","templateImageFileId":"c62216b7e35e4e8598edc29a4041c7b6","productImageWithoutBackgroundFileId":"722e4c0ebdc148e295df9fe30c3160bd","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."}
Request Code 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.302.ai/topview/v3/product_avatar/task/image_replace/submit' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"generateImageMode": "auto",
"templateImageFileId": "c62216b7e35e4e8598edc29a4041c7b6",
"productImageWithoutBackgroundFileId": "722e4c0ebdc148e295df9fe30c3160bd",
"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."
}'