跳转到主要内容

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.

HappyHorse 1.0 I2V 把单张首帧图动起来生成短视频。使用异步任务接口——提交任务后轮询直至完成。

核心能力

  • 图生视频 — 用一张图作为首帧,文本描述驱动运动
  • 分辨率 — 720P / 1080P
  • 宽高比 — 16:9、9:16、1:1、4:3、3:4
  • 时长 — 3-15 秒
  • 水印控制 — 可选关闭右下角水印

工作流

1. POST /v1/video/generations  →  task_id
2. GET  /v1/video/generations/{task_id}  →  轮询直至 SUCCESS / FAILURE
3. 读取 data.result_url  (有效期 24 小时)

快速示例

curl -X POST https://www.anyfast.ai/v1/video/generations \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "happyhorse-1.0-i2v",
    "prompt": "镜头缓缓拉近,画面动起来",
    "image": "https://example.com/first-frame.png",
    "parameters": {
      "resolution": "720P",
      "duration": 5,
      "watermark": false
    }
  }'
image 字段为单张 URL。也可使用 images: [...] 数组形式(仅取第一张作为首帧)。

参数说明

参数类型必填说明
modelstring必须为 happyhorse-1.0-i2v
promptstring对运动效果的描述
imagestring首帧图 URL
resolutionstring720P / 1080P,默认 1080P
ratiostring16:99:161:14:33:4,默认 16:9
durationinteger视频时长 3-15 秒,默认 5
watermarkboolean默认 true,设为 false 关闭水印
seedinteger随机种子 [0, 2147483647]

计费

分辨率档位 × 用户请求时长 计费,预扣金额即最终金额。失败任务自动退费。

API 参考

HappyHorse 1.0 I2V 交互式 Playground。

任务查询

轮询任务状态并获取最终视频 URL。