12API logo12API

Happy Horse 1.1

Happy Horse 1.1 的多图参考、首帧参数、输出尺寸和请求示例

happy-horse-1.1 的重点是多图参考,最多可用 9 张图片约束人物、产品、服装、场景或品牌视觉;也可以只提供 1 张首帧生成视频。

快速了解

项目支持范围
任务流程POST /v1/task/submit 提交,GET /v1/task/{task_id} 查询
视频时长3–15 秒
清晰度720p、1080p
画面比例1:13:44:316:99:16
素材输入最多 9 张参考图,或 1 张首帧
提示词增强AUTO 自动增强,OFF 保持原提示词
音频生成支持,默认开启

请求使用 Bearer 认证,生成参数统一放在 input 对象中:

Authorization: Bearer $API_KEY

input 参数

字段类型必填说明
promptstring提示词,最多 5000 个字符
durationinteger3–15 秒
aspect_ratiostring1:13:44:316:99:16
resolutionstring720p1080p
image_referencesarray参考图,最多 9 张
start_framesarray首帧,只能传 1 张
imagesarraystart_frames 的兼容别名,只读取第 1 张
prompt_enhancestringAUTOOFF
audioboolean是否生成带音频视频,默认 true

image_references 用于多图约束,start_frames 用于固定开头画面,两种用途不要混淆。模型不支持 end_framesvideo_referencesaudio_references

输出尺寸

aspect_ratio720p1080p
1:1960x9601440x1440
3:4832x11081248x1662
4:31108x8321662x1248
16:91280x7201920x1080
9:16720x12801080x1920

请求示例

curl https://cdn.12ai.org/v1/task/submit \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happy-horse-1.1",
    "input": {
      "prompt": "让参考图中的角色在同一个场景里自然互动,镜头跟随移动,画面稳定",
      "image_references": [
        {"url": "https://example.com/ref1.jpg"},
        {"url": "https://example.com/ref2.jpg"},
        {"url": "https://example.com/ref3.jpg"}
      ],
      "aspect_ratio": "9:16",
      "resolution": "720p",
      "duration": 5,
      "prompt_enhance": "AUTO",
      "audio": true
    }
  }'
curl https://cdn.12ai.org/v1/task/submit \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happy-horse-1.1",
    "input": {
      "prompt": "以这张画面作为首帧,人物向前走近镜头,背景保持真实自然",
      "start_frames": [
        "https://example.com/start.jpg"
      ],
      "aspect_ratio": "16:9",
      "resolution": "1080p",
      "duration": 6,
      "prompt_enhance": "OFF",
      "audio": false
    }
  }'

获取结果

提交成功后保存返回的 id,再用它查询任务:

curl https://cdn.12ai.org/v1/task/task_xxxxxxxxxxxxxxxx \
  -H "Authorization: Bearer $API_KEY"

statuscompleted 时,从 outputs 读取视频 URL:

{
  "id": "task_xxxxxxxxxxxxxxxx",
  "status": "completed",
  "phase": "completed",
  "outputs": [
    "https://img.12ai.org/videos/task_xxxxxxxxxxxxxxxx_0.mp4"
  ],
  "error": null
}

轮询状态、失败处理和回调格式见 异步视频任务

使用建议

场景建议
多主体或多产品使用 image_references,并在提示词中说明每张图的用途或关系
固定开头画面使用 1 张 start_frames;新接入不必使用兼容字段 images
提示词增强想让模型自动补充画面细节用 AUTO;需要严格跟随原提示词用 OFF
首尾帧过渡改用 Seedance,本模型不支持 end_frames

On this page