跳转到主要内容
POST
https://dashlyai.cc
/
v1
/
videos
/
{video_id}
/
remix
curl --request POST \
  --url https://dashlyai.cc/v1/videos/task_01K8SGYNNNVBQTXNR4MM964S7K/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "Add a puppy playing in the scene",
    "size": "16:9",
    "duration": 15
  }'
{
  "id": "task_vid_remix_abc123",
  "object": "generation.task",
  "model": "sora-2",
  "status": "queued",
  "progress": 0,
  "created_at": 1703884800,
  "metadata": {}
}
  • Sora2 视频混音功能
  • 支持基于现有视频进行二次创作
  • 可修改视频风格、内容等
  • 异步任务管理,通过任务 ID 查询结果

Authorizations

Authorization
string
必填
所有接口均需要使用 Bearer Token 进行认证获取 API Key:访问 API Key 管理页面 获取您的 API Key

Path Parameters

video_id
string
必填
原始视频的任务 ID从视频生成接口返回的 id 字段获取

Body

model
string
默认值:"sora-2"
必填
模型名称支持的模型:
  • sora-2 - 支持 10 或 15 秒
  • sora-2-pro - 支持 15 秒(HD)或 25 秒
prompt
string
必填
混音指令描述描述如何修改视频的详细提示词
size
string
视频宽高比支持的格式:
  • 16:9 (横屏)
  • 9:16 (竖屏)
  • 1:1 (方形)
duration
integer
视频时长(秒)
  • sora-2:支持 10、15 秒
  • sora-2-pro:支持 15、25 秒

Response

id
string
任务唯一标识符,用于查询任务状态
object
string
对象类型,固定为 generation.task
model
string
使用的模型名称
status
string
任务状态
  • queued - 排队等待处理
  • in_progress - 处理中
  • completed - 成功完成
  • failed - 失败
progress
integer
任务进度百分比(0-100)
created_at
integer
任务创建时间戳(Unix 时间戳)
metadata
object
任务元数据
curl --request POST \
  --url https://dashlyai.cc/v1/videos/task_01K8SGYNNNVBQTXNR4MM964S7K/remix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "sora-2",
    "prompt": "Add a puppy playing in the scene",
    "size": "16:9",
    "duration": 15
  }'
{
  "id": "task_vid_remix_abc123",
  "object": "generation.task",
  "model": "sora-2",
  "status": "queued",
  "progress": 0,
  "created_at": 1703884800,
  "metadata": {}
}