# 视频2D卡通化-API Access

能将视频2d卡通化的生成类算法

# Task Creation

Create an algorithm task based on the input parameters and return the task id

# Request Address

/v3/pic/vct/batch

# Request Parameter

Method

post

Header

Field Required Type Value Description
Content-Type YES string application/json
Authorization YES string Basic xxxxxxxxx Basic base64 (appkey:appsecret) created by users combining appkey and secret

Body

Field Son Field Required Type Value Description
file_link - YES string 初始视频链接
file_info - YES object 链接信息
- file_size YES number
- file_md5 YES string
- file_time YES number
- file_ext YES string 图片类型
priority - YES integer Priority, range [0,9]

Sample Code

{
    "file_link":"pcloud/3DgKgrL4Qt1666755280000.mp4",
    "file_info":{
        "file_size":10778976,
        "file_md5":"1bf1f1e6f112b2fb5836c1c3abcb5411",
        "file_time":10,
        "file_ext":"mp4"
    },
    "priority":1
}

# Input File Restriction

# Return Data

Body

Field Son Field Required Type Value Description
code - YES number Status Code
msg - YES string Request Information
data - YES object Response Data
- task_id YES string Task id

Sample Code

{
    "code": 0,
    "msg": "",
    "data": {
      "task_id": "6a4eab77-be30-430a-bf0e-3048042a34ef"
    }
}

# Result Acquisition

Request task processing result based on task id

# Request Address

/v3/pic/vct/result/{stask_id}

# Request Parameter

Method

get

Header

Field Required Type Value Description
Content-Type YES string application/json
Authorization YES string Basic xxxxxxxxx Basic base64 (appkey:appsecret) created by users combining appkey and secret

Path Parameter

Field Son Field Required Type Value Description
task_id - YES string Task id

# Return Data

Body

Field Son Field Grandson Field Required Type Value Description
code - - YES number Status Code
msg - - YES string Request Information
data - - YES object Response Data
- status - YES string Task Status: 1- Waiting; 2 - In progress; 3 - Task complete; 4 - Task failure; 5 - Task closed; 6 - Task timed out
- wait_time - YES string The waiting time before the next request, with unit of s
- video_result - YES string 处理后下载链接
- reason - YES string Cause of failure
Last Updated: 11/15/2023, 9:50:38 PM