跳转到内容
返回主页

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 # 取消任务
Terminal window
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"
}'
prompt string 必填

文本提示词,用于描述如何编辑输入视频,支持中文和英文,例如 Turn the scene into a warm watercolor animation while keeping the main subject motion unchanged。最大长度为 2500 个字符,每个中文字符或字母计为一个字符,超出限制的内容会被自动截断

media array 必填

输入媒体数组,需要且仅能提供一个输入视频,并可提供最多 5 张参考图像

type string 必填

媒体类型

可选值:videoreference_image

url string 必填

媒体 URL

视频要求:

可公网访问的 HTTP 或 HTTPS URL,或 Base64 编码数据

支持格式:MP4MOV

编码建议:H.264

时长:3 - 60

短边:不小于 360 像素

宽高比:1:88:1

文件大小:最大 100MB

帧率:大于 8fps

参考图像要求:

可公网访问的 HTTP 或 HTTPS URL,或 Base64 编码数据

支持格式:JPEGJPGPNGBMPWEBP

宽高:均不小于 300 像素

宽高比:1:2.52.5:1

文件大小:最大 10MB

duration int

输入视频不超过 15 秒时使用原输入时长,超过 15 秒时截取前 15

resolution string

视频分辨率,不同分辨率档位单价不同,因此该参数会影响计费成本

可选值:720P1080P

默认值:1080P

seed int

随机种子;如果不指定,系统会自动生成随机种子;如需提升复现性,可在重复调用时使用相同 seed 值

范围:0 - 2147483647

watermark bool

是否在生成视频右下角添加水印,固定水印文字为 Happy Horse

可选值:truefalse

默认值:true

audio_setting string

声音控制

可选值:autoorigin

默认值: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_idstring任务 ID,后续查询、获取结果和取消都使用它
response_urlstring获取最终结果的 URL
status_urlstring查询任务状态的 URL
cancel_urlstring取消任务的 URL
queue_positionint队列位置