1.0.0
  • 1.0.1
  • 1.0.0
  1. Create Task
1.0.0
  • 1.0.1
  • 1.0.0
  • Get Started
  • API Reference
    • Create Task
      • Image To Video
        POST
      • Instruct Edit
        POST
      • Try-On (Apparel)
        POST
      • Try-On (Accessories)
        POST
      • Lifestyle Scene
        POST
      • Swap Fashion Model
        POST
      • Background Replacer
        POST
      • Segment Image By Prompt
        POST
      • Segment Image By Type
        POST
      • Background Remover
        POST
    • Get Upload URL
      GET
    • Upload File
      PUT
    • List Preset Materials
      GET
    • Retrieve Generation Task Status
      GET
    • Download Generated Result
      GET
    • Retrieve API Credit Usage
      GET
  • Help
    • Download File Samples
    • Error Codes
    • FAQ
  1. Create Task

Try-On (Accessories)

POST
https://api.sellerpic.ai/v1/api/generate/tryOnAccessories
Before creating a task, please ensure all required resources have been uploaded.
1.
Request Upload File URL
2.
Upload File
Upload file limit:
Supported formats: JPG/JPEG/PNG/WEBP (no animations)
Max file size: 10MB
Max image resolution: 4096px
Mask Image: Alpha Channel Mask - Black and White, and the resolution of Model Mask and Model Image must be the same.
model.pngModel Image
model_mask.pngModel Mask(Alpha Channel Mask - Black and White)
Credit Cost
This task costs 2 credits, Since AI-generated content involves randomness, each request produces 2 images for selection, and each successful image costs 1 credit
Concurrency Limits: 10

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
*/*
OK
Body

🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/tryOnAccessories' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelImageKey": "string",
    "modelMaskKey": "string",
    "modelId": "string",
    "productImageKey": "string",
    "category": "string"
}'
Response Response Example
200 - Example 1
{
    "code": 0,
    "data": {
        "id": "string"
    },
    "msg": "string",
    "success": true,
    "traceId": "string"
}
Modified at 2025-07-27 15:10:07
Previous
Try-On (Apparel)
Next
Lifestyle Scene
Built with