Topview-api-English version
  1. image2Video
Topview-api-English version
  • API Document
  • Avatar Marketing Video
    • script
      • List script content
      • Update script content
    • Submit task
      POST
    • Query task
      GET
    • Export
      POST
  • Video Avatar
    • submit task
      POST
    • query task
      GET
  • Scraper
    • submit scraper task
      POST
    • query scraper task
      GET
  • Upload
    • Get Upload Credential
      GET
    • Get Upload Check
      GET
  • Product Avatar
    • Replace Product Image
      • submit task
      • query task
    • Image2Video
      • submit task
      • query task
    • Category Query
      GET
    • Public product avatar Query
      GET
  • Common Task
    • image2Video
      • submit task
        POST
      • query task
        GET
  • Product AnyShoot
    • Replace Product Image
      • submit task
      • query task
    • Template Category
      GET
    • Template List
      GET
  • Caption List
    GET
  • Voice Query
    GET
  • AiAvatar Query
    GET
  • check notice url
    POST
  • Ethnicity Query
    GET
  1. image2Video

submit task

Developing
POST
/v1/common_task/image2video/submit

Request

Header Params
Authorization
string 
optional
Topview-Uid
string 
optional
Body Params application/json
imageFileId
string 
required
Image fileId
prompt
string 
optional
Prompt
negativePrompt
string 
optional
Negative prompt
duration
enum<integer> 
required
Video duration。Support 5 to10
Allowed values:
510
mode
enum<string> 
required
Mode
Allowed values:
liteproplusbest
generatingCount
integer 
required
Generating count。Support 1 to 4
noticeUrl
string 
optional
Please refer to the API documentation for details
Example
{
    "imageFileId": "string",
    "prompt": "string",
    "negativePrompt": "string",
    "duration": 5,
    "mode": "lite",
    "generatingCount": 0,
    "noticeUrl": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.topview.ai/v1/common_task/image2video/submit' \
--header 'Authorization;' \
--header 'Topview-Uid;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "imageFileId": "string",
    "prompt": "string",
    "negativePrompt": "string",
    "duration": 5,
    "mode": "lite",
    "generatingCount": 0,
    "noticeUrl": "string"
}'

Responses

🟢200OK
application/json
Body
code
string 
required
message
string 
required
result
object 
required
taskId
string 
required
status
string 
required
errorMsg
string 
required
Example
{
    "code": "string",
    "message": "string",
    "result": {
        "taskId": "string",
        "status": "string",
        "errorMsg": "string"
    }
}
Modified at 2025-06-05 10:36:32
Previous
Public product avatar Query
Next
query task
Built with