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

Segment Image By Prompt

POST
https://api.sellerpic.ai/v1/api/generate/promptSegmentation
You can retrieve a black-and-white Mark image through this API interface.
1-original.pngProduct Image
50860d1854e94e7a96f1db3075831235_mask_output.pngProduct Mask(Alpha Channel Mask - Black and White)
Before creating a task, please ensure all required resources have been uploaded.
Refer to Upload Asset File
Upload file limit
Supported formats: jpg|jpeg|png|webp (no animations)
Max file size: 10MB
Max image resolution: 4096px
Credit Cost
This task requires 0 credits (Free).
Refer to Credit Deduction Rules
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/promptSegmentation' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "imageKey": "UPLOAD/MANAGE/SAMPLE/product/1-original.png",
    "prompt": "sofa"
}'
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:26:09
Previous
Background Replacer
Next
Segment Image By Type
Built with