Topview-api-English version
  1. Replace Product Image
Topview-api-English version
  • API Document
  • Avatar Marketing Video
    • script
      • List script content
      • Update script content
    • Submit task
      POST
    • Query task
      GET
    • Export
      POST
  • Video Avatar
    • submit task
      POST
    • query task
      GET
  • Scraper
    • submit scraper task
      POST
    • query scraper task
      GET
  • Upload
    • Get Upload Credential
      GET
    • Get Upload Check
      GET
  • Product Avatar
    • Replace Product Image
      • submit task
      • query task
    • Image2Video
      • submit task
      • query task
    • Category Query
      GET
    • Public product avatar Query
      GET
  • Common Task
    • image2Video
      • submit task
      • query task
  • Product AnyShoot
    • Replace Product Image
      • submit task
        POST
      • query task
        GET
    • Template Category
      GET
    • Template List
      GET
  • Caption List
    GET
  • Voice Query
    GET
  • AiAvatar Query
    GET
  • check notice url
    POST
  • Ethnicity Query
    GET
  1. Replace Product Image

submit task

Developing
POST
/v1/product_anyShoot/task/submit

Request

Header Params
Authorization
string 
optional
Topview-Uid
string 
optional
Body Params application/json
productImageFileId
string 
required
Product image fileId
productMaskFileId
string 
optional
Product mask fileId. [Need to be consistent in size with the original image] If uploaded, users need to generate it themselves
templateId
string 
optional
TemplateId
templateImageFileId
string 
optional
Template image fileId. TemplateId and Template image fileId cannot be empty at the same time. If both the templateId and the template image FileId exist, the templateImageFileId will be used as the priority.
templateMaskFileId
string 
required
Template mask fileId. [Need to be consistent in size with the original image] Users need to generate it themselves
mode
string 
required
Mode。easy/advanced
easyModePrompt
string 
optional
Easy mode prompt
generatingCount
integer 
required
Generating Count。Support 1 to 4
noticeUrl
string 
optional
Please refer to the API documentation for details
Example
{
    "productImageFileId": "string",
    "productMaskFileId": "string",
    "templateId": "string",
    "templateImageFileId": "string",
    "templateMaskFileId": "string",
    "mode": "string",
    "easyModePrompt": "string",
    "generatingCount": 0,
    "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_anyShoot/task/submit' \
--header 'Authorization;' \
--header 'Topview-Uid;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "productImageFileId": "string",
    "productMaskFileId": "string",
    "templateId": "string",
    "templateImageFileId": "string",
    "templateMaskFileId": "string",
    "mode": "string",
    "easyModePrompt": "string",
    "generatingCount": 0,
    "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-06-07 13:55:48
Previous
query task
Next
query task
Built with