Try-On (Apparel)
POST
https://api.sellerpic.ai/v1/api/generate/tryOnApparel
This task costs 4 credits, Since AI-generated content involves randomness, each request produces 4 images for selection, and each successful image costs 1 credit
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/tryOnApparel' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"modelImageKey": "string",
"modelMaskKey": "string",
"bottom": {
"imageKey": "string",
"maskKey": "string"
},
"top": {
"imageKey": "string",
"maskKey": "string"
},
"onePiece": {
"imageKey": "string",
"maskKey": "string"
}
}'
Response Response Example
200 - Example 1
{
"code": 0,
"data": {
"id": "string"
},
"msg": "string",
"success": true,
"traceId": "string"
}
Request
Header Params
Authorization
string
required
Example:
Bearer YOUR_API_KEY
Content-Type
string
required
Example:
application/json
Body Params application/json