• 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

    Get Started

    For technical support or additional assistance, contact support@sellerpic.ai.


    Obtain Your API Key

    Apply for an API Key to authenticate your API requests.

    Include the API Key in the Authorization header of all API requests as shown below:


    API Request Example

    curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/instructEdit' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "imageKey": "UPLOAD/1911986840705904640/2025/04/16/e562bc9273cb4edab3b7c0ea36787b7f.jpg",
      "prompt": "The model touches her hairband and her face slightly turns to the side."
    }'
    

    Note
    Replace YOUR_API_KEY with the API key obtained from your application.


    Task Concurrency Limits

    This API enforces hard concurrent task limits per account. Task creation requests will fail immediately when the number of in-progress tasks reaches these thresholds:

    Task typeMax Concurrent Tasks
    Image to Video10
    Instruct Edit5
    Segment image by prompt1
    All Other task10

    Note

    1. Task Counting: Includes all tasks in CREATED RUNNING
    2. Rejection Behavior: Receive immediate error code 30003 response
    3. Capacity Release: Task slots become available when tasks reach to SUCCESS or FAILED

    Workflow Overview

    workflow overview.png


    1. Get Upload URL

    Prerequisite
    Ensure all required assets (e.g., source images) are uploaded before initiating generation tasks.

    • Use the Request Upload File URL API to obtain a time-limited upload URL.

    2. Upload Asset Files

    Upload binary asset data by sending a PUT request to the URL returned in Step 1.

    API Reference: Upload File

    HTTP Response Codes:

    • 200 OK: Asset uploaded successfully.
    • 403 Forbidden: The upload URL has expired. Reacquire a URL via the Request Upload File URL API.

    3. Generate Images/Videos

    Prerequisite
    Confirm completion of Steps 1 and 2 before initiating generation.

    Available APIs:

    • Image To Video
    • Instruct Edit
    • Try-On (Apparel)
    • Try-On (Accessories)
    • Lifestyle Scene
    • Swap Fashion Model
    • Background Replacer

    Response Handling
    The response includes a task_id field. Use this ID to monitor task progress via the Retrieve Task Status API.


    4. Monitor Task Status

    Use the Retrieve Task Status API to verify task completion. Polling requests must maintain a minimum interval of 1 minute between consecutive checks.

    Critical Dependency
    Generated files are only accessible via the Download API after the task succeeds.


    5. Retrieve Download URL

    Download Generated Result API
    Returns a time-limited URL for accessing generated files.


    6. Download File

    Execute a GET request against the URL obtained in Step 5 to download the file directly. Please complete the download within 12 hour.

    code examples


    Credit Deduction Rules

    TypeCredits/Task
    Instruct Edit task1
    Image to video task (5-second)10
    Image to video task (10-second)15
    Try-On (Apparel)4
    Try-On (Accessories)2
    Lifestyle Scene4
    Swap Fashion Model4
    Background Replacer1~4

    Error Codes

    The error code list helps you quickly identify issues.

    CodeDescription
    0Success. The request was processed successfully.
    400Failed to validate the parameter.
    403Forbidden.
    404Empty data.
    500Server is busy, please try again later.
    504Request timeout, please try again later.
    5001Data not found.
    5002Unknown enums.
    5003Field validation failed.
    5004Download file failed.
    5005Too many attempts.
    10014API authentication failed. Please check authorization header.
    20000Service unavailable. The requested service is temporarily unavailable.
    20001Authorization failed. Insufficient permissions or invalid access tokens.
    20002Invalid user token. The user authorization token is invalid.
    20014Insufficient credits remaining to use.
    30001Image make timeout.
    30002Image make failed.
    30003Task limit reached. Please wait for completion.
    30004Image param error. Image cannot be fully transparent.
    30005Image param error. Image must have transparent area.
    30006Image make failed.
    30007No setting image operate.
    30008Download file failed.
    30009Image make sensitive content.
    30010Image make version not support.
    30011Free task too much. Please upgrade your account.
    30012Task limit reached. Please wait for completion.
    30013Image not found.
    30014Unable to process the image. Please try a different image.
    30015Animated WEBP file is not supported.
    30016The file size exceeds the limit.
    30017Image not finished.
    30018Image make type not support.
    30019Download format not support.
    30020Image is broken.
    30021Image format error.
    30022Upload file fail.
    30023Model image unrecognized.
    30024Image illegal.
    40000Missing user token. The required user access token is missing.
    40001Missing required parameters. A mandatory parameter is missing in the request.
    40002Invalid parameters. The provided parameters are invalid or malformed.
    40004Business processing failed. The request could not be processed due to business logic issues.
    40005Unknown error. An unexpected error occurred; contact support.
    40006Insufficient permissions. The requester lacks the necessary permissions.
    40007Missing app token. The required application authorization token is missing.
    42900Server busy. The server is overloaded; try again later.
    50001Unauthorized API. The requested API is not authorized for the user.
    Next
    Image To Video
    Built with