跳转到内容
EN

混剪视频

先调用「创建视频」,用返回的 ID 替换 video_123;下载前须轮询至 completed。

POST/model/v1/videos/{video_id}/remix○ 未支持

请求参数

  • video_idstring必填

    path: Id of the video job whose output you want, the id returned by createVideo. The job must be completed; before that the call answers 400.

返回

400 混剪尚未支持,请勿重试。

未支持,调用返回 400;不要重试。

鉴权、限流、参数校验等平台错误按 problem+json 返回;OCR 的错误也为 problem+json,其它模型调用的错误按该端点所属格式(OpenAI 或 Anthropic)返回,参见 错误码

请求示例

curl
# 先调用「创建视频」,用返回的 ID 替换 video_123;下载前须轮询至 completed。
curl -X POST https://api.deepraxis.com/model/v1/videos/video_123/remix \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# 先调用「创建视频」,用返回的 ID 替换 video_123;下载前须轮询至 completed。
import requests

opts = dict(
    base_url="https://api.deepraxis.com/model/v1",
    api_key="$PRAXIS_API_KEY",
)

response = requests.request("POST", f"{opts['base_url']}/videos/video_123/remix",
    headers={"Authorization": f"Bearer {opts['api_key']}"}
)
response.raise_for_status()
print(response.json())
TypeScript
// 先调用「创建视频」,用返回的 ID 替换 video_123;下载前须轮询至 completed。
const opts = {
  baseURL: "https://api.deepraxis.com/model/v1",
  apiKey: "$PRAXIS_API_KEY",
};

const response = await fetch(`${opts.baseURL}/videos/video_123/remix`, {
  method: "POST",
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

响应

此端点没有声明成功响应。

先创建视频,保存返回的 id;再读取视频轮询 status,queued / in_progress 时继续等待,failed 时停止并查看 error;只有 completed 后才下载视频内容。