跳转到主要内容

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 R2V 基于 1-3 张参考图与文本提示生成视频。使用异步任务接口——提交任务后轮询直至完成。

核心能力

  • 参考图生视频 — 使用 1-3 张图片作为视觉参考
  • 分辨率 — 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-r2v",
    "prompt": "身着红色旗袍的女性轻抬玉手展开折扇",
    "images": [
      "https://example.com/ref1.jpg",
      "https://example.com/ref2.jpg",
      "https://example.com/ref3.jpg"
    ],
    "parameters": {
      "resolution": "720P",
      "ratio": "16:9",
      "duration": 5,
      "watermark": false
    }
  }'

参数说明

参数类型必填说明
modelstring必须为 happyhorse-1.0-r2v
promptstring视频描述文本
imagesstring[]1-3 张参考图 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 R2V 交互式 Playground。

任务查询

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