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

Get Upload URL

GET
https://api.sellerpic.ai/v1/api/upload/url
The format query parameter is ​required and must be one of the allowed image formats: jpg, jpeg, png, or webp.
The response contains two critical fields:
imageUrl:
Validity: 30 minutes (from generation time)
Usage: Perform a PUT request to this URL to upload your file ,See Upload File
fileKey: This value will be required when creating the task later.

Request

Query Params

Header Params

Responses

🟢200OK
*/*
OK
Body

🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.sellerpic.ai/v1/api/upload/url?format' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example 1
{
    "code": 0,
    "data": {
        "fileKey": "string",
        "imageUrl": "string"
    },
    "msg": "string",
    "success": true,
    "traceId": "string"
}
Modified at 2025-07-27 14:57:00
Previous
Background Remover
Next
Upload File
Built with