- Get Started
- Plan
- Style
- 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
Restriction: 384x384-4096x4096, jpg/jpeg/png/webp
Any of
styleId
string
required
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
*/*
Body
code
integer
required
data
object
required
id
string
required
msg
string
required
msgKey
string
required
traceId
string
required
Example
{
"code": 200,
"data": {
"id": "string"
},
"msg": "string",
"msgKey": "string",
"traceId": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found