Loading...
Loading...
通过inference.sh CLI使用阿里巴巴HappyHorse 1.0模型生成和编辑视频。包含模型:HappyHorse T2V、I2V、R2V、视频编辑模型。功能:文本转视频、图片转视频、参考图转视频、自然语言视频编辑、角色保留、支持720P/1080P分辨率、最长15秒时长。适用场景:真实物理效果视频、视频编辑、角色一致性内容、产品演示、社交媒体。触发关键词:happyhorse、happy horse、alibaba video、happyhorse 1.0、dashscope video、alibaba happyhorse、video editing ai、ai video editor
npx skill4agent add infsh-skills/skills happyhorse需要inference.sh CLI(工具)。安装说明belt
belt login
belt app run alibaba/happyhorse-1-0-t2v --input '{"prompt": "a horse galloping across a sunlit meadow"}'| 模型 | App ID | 最佳适用场景 |
|---|---|---|
| T2V | | 文本转视频、真实物理运动效果 |
| I2V | | 单张图片动效生成 |
| R2V | | 保留最多9张参考图中的角色特征 |
| Video Edit | | 用自然语言编辑现有视频 |
belt app run alibaba/happyhorse-1-0-t2v --input '{
"prompt": "a golden retriever running through autumn leaves in a park, slow motion",
"duration": 10,
"resolution": "1080P",
"ratio": "16:9"
}'belt app run alibaba/happyhorse-1-0-i2v --input '{
"first_frame": "https://your-image.jpg",
"prompt": "gentle camera zoom, clouds moving in the sky",
"duration": 8,
"resolution": "720P"
}'belt app run alibaba/happyhorse-1-0-r2v --input '{
"prompt": "a woman walking through a busy market street",
"reference_images": ["https://portrait.jpg"],
"duration": 10,
"resolution": "720P"
}'belt app run alibaba/happyhorse-1-0-r2v --input '{
"prompt": "two friends sitting at a cafe having coffee",
"reference_images": ["https://person1.jpg", "https://person2.jpg"],
"ratio": "16:9"
}'belt app run alibaba/happyhorse-1-0-video-edit --input '{
"video": "https://your-video.mp4",
"prompt": "change the background to a snowy mountain landscape"
}'belt app run alibaba/happyhorse-1-0-video-edit --input '{
"video": "https://your-video.mp4",
"prompt": "replace the person with the character from the reference image",
"reference_images": ["https://character.jpg"]
}'belt app run alibaba/happyhorse-1-0-video-edit --input '{
"video": "https://your-video.mp4",
"prompt": "make the scene look like a rainy day",
"audio_setting": "generate"
}'| 分辨率 | 价格 |
|---|---|
| 720P | 每秒0.14美元 |
| 1080P | 每秒0.24美元 |
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| string | 必填 | 视频的文字描述 |
| integer | 5 | 视频时长(3–15秒) |
| enum | 720P | 720P或1080P |
| enum | 16:9 | 16:9、9:16、1:1、4:3、3:4、21:9 |
| integer | 随机值 | 用于生成可复现的视频 |
| boolean | false | 添加HappyHorse水印 |
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| file | 必填 | 首帧图片(支持JPEG、PNG、WebP格式) |
| string | - | 可选的文字描述 |
| integer | 5 | 视频时长(3–15秒) |
| enum | 720P | 720P或1080P |
| integer | 随机值 | 用于生成可复现的视频 |
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| string | 必填 | 场景的文字描述 |
| array | 必填 | 最多9张角色参考图 |
| integer | 5 | 视频时长(3–15秒) |
| enum | 720P | 720P或1080P |
| enum | 16:9 | 16:9、9:16、1:1、4:3、3:4、21:9 |
| integer | 随机值 | 用于生成可复现的视频 |
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| file | 必填 | 待编辑的视频(支持MP4/MOV格式,H.264编码) |
| string | 必填 | 编辑指令 |
| array | - | 最多5张参考图 |
| enum | auto | auto、generate或keep_original |
| enum | 720P | 720P或1080P |
| integer | 随机值 | 用于生成可复现的编辑效果 |
belt app list --search "happyhorse"# 全平台技能(包含250+应用)
npx skills add inference-sh/skills@infsh-cli
# 所有视频生成模型
npx skills add inference-sh/skills@ai-video-generation
# Seedance 2.0
npx skills add inference-sh/skills@seedance
# Google Veo
npx skills add inference-sh/skills@google-veo
# 图片生成(用于图片转视频)
npx skills add inference-sh/skills@ai-image-generationbelt app list --category video