1. Create Task
  • 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
    • 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. Create Task

Image To Video

POST
https://api.sellerpic.ai/v1/api/generate/imageToVideo
Before creating a task, please ensure all required resources have been uploaded.
1.
Request Upload File URL
2.
Upload File
Upload file limit:
Supported formats: JPG/JPEG/PNG/WEBP
Max file size: 20MB
Quantity: Single image only
Dimension requirements:
Aspect ratio range: 2:5 to 5:2
Minimum short edge: 300px
Credit Cost
Image to video (5-second) 10 credits
Image to video (10-second) 15 credits
Concurrency Limits: 10
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/imageToVideo' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "audioPrompt": "string",
    "autoAudio": true,
    "imageKey": "string",
    "model": "string",
    "prompt": "string",
    "videoDuration": 0
}'
Response Response Example
200 - Example 1
{
  "code": 0,
  "data": {
    "id": "string"
  },
  "msg": "string",
  "success": true,
  "traceId": "string"
}

Request

Header Params
Authorization
string 
required
Example:
Bearer YOUR_API_KEY
Content-Type
string 
required
Example:
application/json
Body Params application/json
audioPrompt
string 
optional
Audio prompt description (required when autoAudio is true)
autoAudio
boolean 
optional
Enable background music auto-generation (default: false)
imageKey
string 
required
Uploaded image storage key
model
string 
optional
Model type (options: CREATIVE/STABLE, default: CREATIVE)
prompt
string 
optional
Text prompt for video generation
videoDuration
integer <int32>
optional
Video duration in seconds (5/10, default: 5)
Examples

Responses

🟢200OK
*/*
OK
Body
code
integer <int32>
required
Result code, where 0 indicates success and non-0 indicates an error.
Please refer to Error Codes
data
object (IdData«string») 
optional
id
string 
required
Task Id
msg
string 
optional
Description of the result, providing additional context or information about the operation outcome.
success
boolean 
required
traceId
string 
required
Trace ID for tracking the request across distributed systems.
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Previous
Get Started
Next
Instruct Edit
Built with