保利威文档中心

幫助中心

查詢影片創作任務

更新時間:2025-10-27 18:29:20

介面描述

1、查询视频创作任务
2、接口支持https协议

介面URL

http://api.polyv.net/live/v4/ai/video-produce/get

請求方式

GET

介面限制

1、介面同時支援HTTP、HTTPS,建議使用HTTPS以確保介面安全,介面呼叫有頻率限制,詳細請查看

請求參數說明

參數名 必填 類型 說明
appId true String 帳號appId【詳見取得金鑰
timestamp true Long 目前13位毫秒級時間戳記,3分鐘內有效
aiPPTVideoId true Integer 影片創作任務ID
sign true String 簽名,為32位大寫的MD5值,產生簽名的appSecret金鑰作為通訊資料安全的關鍵資訊,嚴禁儲存在用戶端直接使用,所有API都必須透過客戶自己的伺服器中轉呼叫POLYV伺服器取得回應資料【詳見簽名產生規則

範例

http://api.polyv.net/live/v4/ai/video-produce/get?timestamp=1716107535043&appId=gopl67qi7e&aiPPTVideoId=4229&sign=6625340A6017272DF55CD1F5DC42CFCB

回應參數說明

參數名 類型 說明
code Integer 回應狀態碼,200為成功返回,非200為失敗
status String 回應結果,由業務決定,成功返回success,失敗返回error
success Boolean 回應結果,由業務決定,成功返回true,失敗返回false
data Object 成功回應時返回詳細資訊【詳見data欄位說明
error Object 狀態碼非200時的錯誤資訊【詳見Error欄位說明
requestId String 請求ID,每次請求產生的唯一 UUID,僅可用於排查、除錯,不應與業務掛鉤

data參數說明

參數名 類型 說明
id Long 任務ID
videoName String 影片名稱
type Integer 1: 無數位人任務, 3: 有數位人任務
status Integer 【詳見status參數說明
videoPath String 影片位址
subtitlePath String 字幕位址
videoImage String 影片封面圖位址
videoFileSize Long 影片檔案大小,單位為byte
duration Long 影片長度,單位為秒
digitalHumanId Long 目前任務使用的數位人id
dealTime Long 任務製作完成時間(時間戳記)
createTime Long 任務建立時間(時間戳記)
modifyTime Long 任務最後修改時間(時間戳記)
subtitlePath String 字幕位址
tags List 標籤,字串陣列格式

status參數說明

參數值 類型 說明
5 Integer 草稿狀態
10 Integer 影片等待製作
15 Integer 影片製作中
20 Integer 影片製作成功
30 Integer 影片製作失敗
50 Integer 影片製作任務已過期

回應範例

成功範例

{
  "code": 200,
  "status": "success",
  "requestId": "be442eaa-0e03-426c-b6e8-36a8b4ac7b0d",
  "data": {
    "id": 4229,
    "videoName": "视频名称-测试",
    "fileId": "",
    "fileName": null,
    "type": 3,
    "status": 20,
    "times": 1,
    "uploadStatus": 0,
    "videoPath": "https://oss-live-1.videocc.net/pptvideo/20250714/video/4229_cb77f770eccc4f3ea5435021947e9b98.mp4",
    "videoImage": "https://oss-live-1.videocc.net/pptvideo/20250714/image/4229_cb77f770eccc4f3ea5435021947e9b98.jpg",
    "videoFileSize": 510437,
    "digitalHumanId": 15,
    "digitalHumanPositionSize": "1412,247,467,830",
    "videoPoolId": null,
    "dealTime": 1752478906000,
    "expireTime": 1755070906000,
    "duration": 1,
    "executeTime": null,
    "retry": 0,
    "errorMessage": "",
    "innerErrorMessage": "",
    "createTime": 1752478716000,
    "modifyTime": 1752478906000,
    "draftJsonUrl": null,
    "subtitlePath": "https://oss-live-1.videocc.net/pptvideo/20250714/subtitle/4229_cb77f770eccc4f3ea5435021947e9b98.srt"
  },
  "success": true
}

Error參數說明

參數名 類型 說明
code Integer 錯誤代碼,用於確定具體的錯誤原因
desc String 錯誤描述,與 error.code 對應
联系客服,在线咨询