跳转到主要内容
HappyHorse

HappyHorse -- 视频编辑

提交 HappyHorse 视频编辑任务

POST
/services/aigc/video-generation/video-synthesis
cURL - 视频编辑(指令+参考图)
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
  -H 'X-DashScope-Async: enable' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "happyhorse-1.0-video-edit",
  "input": {
    "prompt": "让视频中的马头人身角色穿上图片中的条纹毛衣",
    "media": [
      {
        "type": "video",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260409/dozxak/Wan_Video_Edit_33_1.mp4"
      },
      {
        "type": "reference_image",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260415/hynnff/wan-video-edit-clothes.webp"
      }
    ]
  },
  "parameters": {
    "resolution": "720P"
  }
}'
{
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx",
  "output": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
    "task_status": "PENDING"
  }
}
输入视频与参考图,结合文本指令完成风格变换、局部替换等编辑任务。支持 720P/1080P 分辨率,输入视频时长 3~60 秒,输出视频上限 15 秒。

鉴权

string
header
必填

千问云 API Key。详见获取 API Key

Header 参数

enum<string>
必填

必须设置为 enable,表示异步提交任务。

enable

请求体

application/json
enum<string>
必填

模型名称。固定值:happyhorse-1.0-video-edit

happyhorse-1.0-video-edit
happyhorse-1.0-video-edit
object
必填

输入的基本信息,包括待编辑的视频、参考图片和提示词。

object

视频编辑参数。

响应

200-application/json
string

请求唯一标识,用于链路追踪和问题排查。

4909100c-7b5a-9f92-bfe5-xxxxxx
object