跳到正文
LumiPath API
接口参考内容

本地化 / 配音 / 二次创作一条源视频。

post/api/v1/repurpose

API Key 拥有完整权限(可发布、删除),写操作请在你自己的环境中执行。

鉴权

ApiKeyAuth
header鉴权Bearer <lumi>

Authorization: Bearer lumi_xxx。用户 API Key 拥有完整权限,自主运行的 agent 可以发布视频、取消任务。每个账号只有一把 Key,如需隔离请为 agent 使用单独的 LumiPath 账号。

请求体

application/json
  1. body
sourceUrl*string
长度1 <= length
sourceLang*string
长度1 <= length
targetLang*string
长度1 <= length
dubbing?boolean
dubbingVoiceId?number
backgroundMusic?||
subtitle?boolean
subtitleStyle?string
ocr?boolean
copyright?boolean
autoPublish?
title?string
translateTitle?boolean
durationSeconds?number

响应体

已提交,返回扁平的 { success, localProjectId, data }(不是 {success,data} 包装)。

application/json
  1. response
success*true
Value intrue
localProjectId*string
data*
请求示例
curl -X POST 'https://app.lumipath.cn/api/v1/repurpose' \  -H 'Content-Type: application/json' \  -d '{  "sourceUrl": "string",  "sourceLang": "string",  "targetLang": "string"}'
响应示例
{  "success": true,  "localProjectId": "string",  "data": {    "property1": null,    "property2": null  }}