1. API Reference
  • 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
    • 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. API Reference

List Preset Materials

GET
https://api.sellerpic.ai/v1/api/presets
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.sellerpic.ai/v1/api/presets?pageNum&pageSize&type'
Response Response Example
200 - Example 1
{
  "code": 0,
  "data": {
    "hasMore": true,
    "list": [
      {
        "id": "string",
        "imageUrl": "string",
        "name": "string",
        "thumbUrl": "string",
        "userUpload": true
      }
    ],
    "total": 0
  },
  "msg": "string",
  "success": true,
  "traceId": "string"
}

Request

Query Params
pageNum
integer <int32>
optional
Page number (starting from 1)
pageSize
integer <int32>
optional
Number of records per page(default: 10, max: 50)
type
string 
required
Must be one of the following: SWAP_MODEL, SWAP_MODEL_SCENE, AI_BACKGROUND, BACKGROUND

Responses

🟢200OK
*/*
OK
Body
code
integer <int32>
optional
Result code, where 0 indicates success and non-0 indicates an error.
data
object (PageResultVo«ApiImageStyleResult») 
optional
hasMore
boolean 
optional
Whether there is more data
list
array[object (ApiImageStyleResult) {5}] 
optional
List data
total
integer <int64>
optional
Total number of records
msg
string 
optional
Description of the result, providing additional context or information about the operation outcome.
success
boolean 
optional
traceId
string 
optional
Trace ID for tracking the request across distributed systems.
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Previous
Upload File
Next
Retrieve Generation Task Status
Built with