HappyHorse 1.0 Video Edit 基于参考图与文本提示对输入视频进行编辑。使用异步任务接口——提交任务后轮询直至完成。Documentation Index
Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
Use this file to discover all available pages before exploring further.
⚠️ 必须使用 native 格式。 因为 video-edit 同时需要”视频 + 参考图”,框架统一字段无法表达,必须使用 DashScope 原生风格的请求体(input.media[] 数组)。
核心能力
- 视频编辑 — 修改已有视频中的物体、服饰或场景
- 分辨率 — 720P / 1080P
- 水印控制 — 可选关闭右下角水印
⚠️ 输出视频时长由输入视频长度决定,duration 参数对 video-edit 不一定生效。
工作流
快速示例
参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 必须为 happyhorse-1.0-video-edit |
input.prompt | string | 是 | 编辑描述文本 |
input.media | array | 是 | 恰好 2 个元素:1 个 video + 1 个 reference_image |
input.media[].type | string | 是 | video 或 reference_image |
input.media[].url | string | 是 | 视频或参考图的公开 URL |
parameters.resolution | string | 否 | 720P / 1080P,默认 1080P |
parameters.watermark | boolean | 否 | 默认 true,设为 false 关闭水印 |
parameters.seed | integer | 否 | 随机种子 [0, 2147483647] |
计费
按 分辨率档位 × 计费时长 计费。不传duration 时默认按 5 秒计。失败任务自动退费。
API 参考
HappyHorse 1.0 Video Edit 交互式 Playground。
任务查询
轮询任务状态并获取最终视频 URL。