官方 API
混剪视频
使用 Sora 2 Remix 视频 API(POST /v1/videos//remix),通过 CometAPI 基于新的 Prompt、风格和变体来转换现有的 video_id。
POST
Create a Sora remix job
使用此端点可基于已完成的 Sora 视频创建一个变体,而无需从头开始。Remix 在你将修改范围控制得较小且表达明确时效果更好。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
优秀的 remix Prompt
- 提出一个清晰的单项修改,而不是重写整个场景
- 对光照、色调、镜头运动或氛围的描述尽量具体
- 从已完成的源视频开始,而不是使用进行中的任务
Remix 流程
先完成基础渲染
使用 Create Video 创建源视频,并等待其完成。
轮询并下载 remix
将 remix 响应视为一个新的异步任务,使用 Retrieve Video 对其进行轮询,然后通过 Retrieve Video Content 下载。
它如何映射到 OpenAI
这遵循 OpenAI 文档中的 remix 模式。CometAPI 保留了相同的概念,但在整个工作流中,你始终使用 CometAPI 的基础 URL 和鉴权模型。授权
Bearer token authentication. Use your CometAPI key.
路径参数
Completed source video id.
请求体
application/json
Describe the change you want to make to the existing video.
示例:
"Shift the color palette to teal, sand, and rust, with a warm backlight."