1.0.1
  • 1.0.1
  • 1.0.0
  1. Create Task
1.0.1
  • 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
    • Upload Asset File
      POST
    • List Preset Materials
      GET
    • Check Task Status
      GET
    • Get Download Url
      GET
    • Retrieve API Credit Usage
      GET
  • Help
    • Download File Samples
    • Error Codes
    • FAQ
  1. Create Task

Swap Fashion Model

POST
https://api.sellerpic.ai/v1/api/generate/swapModel
Before creating a task, please ensure all required resources have been uploaded.
Refer to Upload Asset File
How to get preset materials:
1.
Retrieve the preset model materials list (type: SWAP_MODEL) Retrieve Preset Model List
2.
Access the preset scene materials (type: SWAP_MODEL_SCENE) Retrieve Preset Scene List
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.
1-original (3).pngModel Image
0cf08a2a8724446d80569d9faf16054d_mask_output.pngModel Mask(Alpha Channel Mask - Black and White)
Credit Cost
This task costs 4 credits(2 images at once)
Refer to Credit Deduction Rules
Concurrency Limits: 10
Refer to Task Concurrency Limits
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/swapModel' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelImageKey": "UPLOAD/MANAGE/SAMPLE/model/1-original.png",
    "modelId": "1731933252204945409"
}'
Response Response Example
200 - Example 1
{
    "code": 0,
    "data": {
        "id": "string"
    },
    "msg": "string",
    "success": true,
    "traceId": "string"
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
*/*
OK
Body

🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Modified at 2025-08-15 10:06:50
Previous
Lifestyle Scene
Next
Background Replacer
Built with