1.0.1
  • 1.0.1
  • 1.0.0
  1. API Reference
1.0.1
  • 1.0.1
  • 1.0.0
  • Get Started
  • API Reference
    • Create Task
      • Image To Video
      • Instruct Edit
      • Try-On (Apparel)
      • Try-On (Accessories)
      • Lifestyle Scene
      • Swap Fashion Model
      • Background Replacer
      • Segment Image By Prompt
      • Segment Image By Type
      • Background Remover
    • 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. API Reference

Upload Asset File

POST
https://api.sellerpic.ai/v1/api/upload
The file must be one of the allowed image formats: jpg | jpeg | png | webp.
Only one image can be uploaded per request.
File size limits vary by task type and maximum image size: 40MB, for details, refer to the corresponding API endpoints for creating each task.
The response critical field :
fileKey: This value will be required when creating the task later.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/upload' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@""'
Response Response Example
{
    "msg": "SUCCESS",
    "code": 0,
    "traceId": "ZHB8oC1p4Ziy",
    "data": {
        "fileKey": "UPLOAD/1910256820110163968/2025/07/18/6d3ca949065843f5a246d49831477274.jpg"
    },
    "success": true,
    "request_id": "df8d2243a9704f688ee0721951591973"
}

Request

Header Params

Body Params multipart/form-data

Responses

🟢200OK
*/*
OK
Body

🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Modified at 2025-07-21 11:41:07
Previous
Background Remover
Next
List Preset Materials
Built with