1. Try-On Accessory
  • Get Started
    • Api Setup
  • Plan
    • Get Rest Credit
      GET
  • Style
    • Style List
      GET
  • Try-On Accessory
    • Create Try-On Accessory Task
      POST
    • Get Try-On Accessory Result
      GET
  1. Try-On Accessory

Create Try-On Accessory Task

POST
/image/api/make/tryon/accessory/create

Request

Authorization
Add parameter in header
Api-Key
Example:
Api-Key: ********************
Body Params application/json
image
required
Accessory Image.
Restriction: 384x384-4096x4096, jpg/jpeg/png/webp
Any of
Base64 encoded image, Without prefix "data:image/png;base64"
styleId
string 
required
Style identifier. Style List
Example
{
  "image": "https://cdn.sellerpic.ai/UPLOAD/MANAGE/SAMPLE/accessory/1-original.jpg",
  "styleId": "1858369973362098336"
}

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.sellerpic.ai/image/api/make/tryon/accessory/create' \
--header 'Content-Type: application/json' \
--header 'Api-Key;' \
--data-raw '{
    "image": "https://cdn.sellerpic.ai/UPLOAD/MANAGE/SAMPLE/accessory/1-original.jpg",
    "styleId": "1858369973362098336"
}'

Responses

🟢200OK
*/*
OK
Body
code
integer 
required
200: Success, Other: Error
data
object 
required
id
string 
required
Task Id
msg
string 
required
Response message
msgKey
string 
required
Error code if any
traceId
string 
required
Request tracking ID
Example
{
  "code": 200,
  "data": {
    "id": "string"
  },
  "msg": "string",
  "msgKey": "string",
  "traceId": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Previous
Style List
Next
Get Try-On Accessory Result
Built with