- API Document
- Avatar Marketing Video
- Video Avatar
- Scraper
- Upload
- Product Avatar
- Replace Product Image
- Image2Video
- Category QueryGET
- Public product avatar QueryGET
- Common Task
- image2Video
- Product AnyShoot
- Replace Product Image
- Template CategoryGET
- Template ListGET
- Caption ListGET
- Voice QueryGET
- AiAvatar QueryGET
- check notice urlPOST
- Ethnicity QueryGET
Submit task
POST
/v1/m2v/task/submit
Parameter Description#
1.
Request
Header Params
Topview-Uid
string
required
Authorization
string
required
Body Params application/json
productLink
string
Product link
fileIds
array[string]
Custom material files
productName
string
Product name
productDescription
string
Product description
aspectRatio
string
Expected output resolution
language
string
Language
Language list:
English: en
Arabic (العربية): ar
Bulgarian (Български): bg
Croatian (Hrvatski): hr
Czech (Čeština): cs
Danish (Dansk): da
Dutch (Nederlands): nl
Filipino (Filipino): fil
Finnish (Suomi): fi
French (Français): fr
German (Deutsch): de
Greek (Ελληνικά): el
Hindi (हिन्दी): hi
Hungarian (Magyar): hu
Indonesian (Bahasa Indonesia): id
Italian (Italiano): it
Japanese (日本語): ja
Korean (한국어): ko
Malay (Bahasa Melayu): ms
Norwegian (Norsk): nb
Polish (Polski): pl
Portuguese (Português): pt
Romanian (Română): ro
Russian (Русский): ru
Simplified Chinese (简体中文): zh-CN
Slovak (Slovenčina): sk
Spanish (Español): es
Swedish (Svenska): sv
Traditional Chinese (繁體中文): zh-Hant
Turkish (Türkçe): tr
Ukrainian (Українська): uk
Vietnamese (Tiếng Việt): vi
Thai (ภาษาไทย): th. Currently, the supported voiceIds for Thai are: 5d188a658b5a424e98bf0dbbcb8f97d8, eea5e5a4fb534231a5b4cf4766dd7a5f, 537e2643719c47bdac1d8a2c7f0c844a, e22db502aa8d40d9ba791083c9f4ab35
voiceId
string
Voice ID
captionId
string
Obtain it through the Caption List interface. If it is not specified, it will be randomly selected.
aiavatarId
string
AI avatar ID
videoLengthType
integer
Output video length type
endcardFileId
string
End card file ID
endcardAspectRatio
string
Expected resolution of the end card file
endcardBackgroundColor
string
End card background color
logoFileId
string
Logo file ID
preview
boolean
Whether it is in preview mode
When set to true, a preview video will be returned first. When you need to export the video, you need to trigger the export interface for export.
When set to false or empty, an exported video will be returned.
noticeUrl
string
notice_url
Example
{
"productLink": "string",
"fileIds": [
"string"
],
"productName": "string",
"productDescription": "string",
"aspectRatio": "string",
"language": "string",
"voiceId": "string",
"captionId": "string",
"aiavatarId": "string",
"videoLengthType": 0,
"endcardFileId": "string",
"endcardAspectRatio": "string",
"endcardBackgroundColor": "string",
"logoFileId": "string",
"preview": true,
"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/m2v/task/submit' \
--header 'Topview-Uid;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"productLink": "string",
"fileIds": [
"string"
],
"productName": "string",
"productDescription": "string",
"aspectRatio": "string",
"language": "string",
"voiceId": "string",
"captionId": "string",
"aiavatarId": "string",
"videoLengthType": 0,
"endcardFileId": "string",
"endcardAspectRatio": "string",
"endcardBackgroundColor": "string",
"logoFileId": "string",
"preview": true,
"noticeUrl": "string"
}'
Responses
🟢200成功
application/json
Body
code
string
required
message
string
required
result
object
required
taskId
string
Task ID
status
string
Task status
errorMsg
null
Task error information
Example
{
"code": "string",
"message": "string",
"result": {
"taskId": "string",
"status": "string",
"errorMsg": null
}
}
Modified at 2025-06-10 07:06:17