Skip to content

获取对口型视频列表

说明

获取对口型视频列表

QPS   10/s

请求地址

http
POST /open/v1/video_lip_sync/list
http
access_token: {{access_token}}

参数说明

请求参数body

字段类型说明
pageint【可选,默认1】
page_sizeint【可选,默认10】

响应参数

字段类型二级字段类型三级字段类型说明
trace_idstring链路追踪id
codeint响应状态码
msgstring响应消息
dataobject数据
listarray[object]列表
idstring视频id
statusint任务状态。0-排队中、10-生成中、20-生成成功、30-生成失败
progressint任务进度0~100
msgstring任务信息
video_urlstring视频地址
preview_urlstring封面地址
durationint视频时长(单位ms)
create_timeint创建时间(unix秒级时间戳)
page_infoobject
pageint
sizeint
total_countint
total_pageint

请求示例

json
{
  "page": 1,
  "page_size": 10
}

响应JOSN

json
{
  "trace_id": "8d10659438827bd4d59eaa2696f9d391",
  "code": 0,
  "msg": "success",
  "data": {
    "list": [
      {
        "id": "9499ed79995c4bdb95f0d66ca84419fd",
        "status": 20,
        "progress": 100,
        "msg": "success",
        "video_url": "https://res.chanjing.cc/xxx/lip-sync/9499ed79995c4bdb95f0d66ca84419fd.mp4",
        "preview_url": "https://res.chanjing.cc/xxx/lip-sync/9499ed79995c4bdb95f0d66ca84419fd.jpg",
        "create_time": 1738636800
      }
    ],
    "page_info": {
      "page": 1,
      "size": 10,
      "total_count": 1,
      "total_page": 1
    }
  }
}

响应状态码说明

code说明
0响应成功
10400AccessToken验证失败
40000参数错误
40001超出QPS限制
50000系统内部错误

示例代码

bash
curl -L 'https://open-api.chanjing.cc/open/v1/video_lip_sync/list' \
  -H 'access_token: {{access_token}}' \
  -H 'Content-Type: application/json' \
  -d '{"page":1,"page_size":10}'
go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://open-api.chanjing.cc/open/v1/video_lip_sync/list"
	payload := []byte(`{"page":1,"page_size":10}`)

	req, err := http.NewRequest("POST", url, bytes.NewBuffer(payload))
	if err != nil {
		panic(err)
	}
	req.Header.Set("access_token", "{{access_token}}")
	req.Header.Set("Content-Type", "application/json")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	b, _ := io.ReadAll(resp.Body)
	fmt.Println(string(b))
}
java
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"page\":1,\"page_size\":10}");
Request request = new Request.Builder()
  .url("https://open-api.chanjing.cc/open/v1/video_lip_sync/list")
  .method("POST", body)
  .addHeader("access_token", "{{access_token}}")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
py
import requests
import json

url = "https://open-api.chanjing.cc/open/v1/video_lip_sync/list"

payload = json.dumps({
  "page": 1,
  "page_size": 10
})
headers = {
  'access_token': '{{access_token}}',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)