HappyHorse 1.0 - Video Edit
happyhorse_1.0_video_edit
HappyHorse 1.0 Video Edit 可根据提示词和可选参考图像编辑输入视频。
POST /v1/queue/happyhorse_1.0_video_edit # 创建任务GET /v1/queue/happyhorse_1.0_video_edit/requests/{request_id}/status # 查询状态GET /v1/queue/happyhorse_1.0_video_edit/requests/{request_id}/response # 获取结果PUT /v1/queue/happyhorse_1.0_video_edit/requests/{request_id}/cancel # 取消任务curl --location "https://cloud.seaart.ai/model/v1/queue/happyhorse_1.0_video_edit" \ --header "Authorization: Bearer YOUR_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "A red apple slowly rotating on a white table, clean studio lighting, static camera.", "media": [ { "type": "video", "url": "https://static.cdn2.haiyiapi.com/2026-06-01/d8elghle878b7lpvk0o0/053e1094464d3a0e557f6e3437acafd5.mp4" } ], "duration": 5, "resolution": "720P", "audio_setting": "auto" }'文本提示词,用于描述如何编辑输入视频,支持中文和英文,例如 Turn the scene into a warm watercolor animation while keeping the main subject motion unchanged。最大长度为 2500 个字符,每个中文字符或字母计为一个字符,超出限制的内容会被自动截断
输入媒体数组,需要且仅能提供一个输入视频,并可提供最多 5 张参考图像
媒体类型
可选值:video、reference_image
媒体 URL
视频要求:
可公网访问的 HTTP 或 HTTPS URL,或 Base64 编码数据
支持格式:MP4、MOV
编码建议:H.264
时长:3 - 60 秒
短边:不小于 360 像素
宽高比:1:8 到 8:1
文件大小:最大 100MB
帧率:大于 8fps
参考图像要求:
可公网访问的 HTTP 或 HTTPS URL,或 Base64 编码数据
支持格式:JPEG、JPG、PNG、BMP、WEBP
宽高:均不小于 300 像素
宽高比:1:2.5 到 2.5:1
文件大小:最大 10MB
输入视频不超过 15 秒时使用原输入时长,超过 15 秒时截取前 15 秒
视频分辨率,不同分辨率档位单价不同,因此该参数会影响计费成本
可选值:720P、1080P
默认值:1080P
随机种子;如果不指定,系统会自动生成随机种子;如需提升复现性,可在重复调用时使用相同 seed 值
范围:0 - 2147483647
是否在生成视频右下角添加水印,固定水印文字为 Happy Horse
可选值:true、false
默认值:true
声音控制
可选值:auto、origin
默认值:auto
{ "request_id": "mmsu_01hxyz...", "response_url": "https://cloud.seaart.ai/model/v1/queue/happyhorse_1.0_video_edit/requests/mmsu_01hxyz.../response", "status_url": "https://cloud.seaart.ai/model/v1/queue/happyhorse_1.0_video_edit/requests/mmsu_01hxyz.../status", "cancel_url": "https://cloud.seaart.ai/model/v1/queue/happyhorse_1.0_video_edit/requests/mmsu_01hxyz.../cancel", "queue_position": 0}| 字段 | 类型 | 说明 |
|---|---|---|
request_id | string | 任务 ID,后续查询、获取结果和取消都使用它 |
response_url | string | 获取最终结果的 URL |
status_url | string | 查询任务状态的 URL |
cancel_url | string | 取消任务的 URL |
queue_position | int | 队列位置 |