Happyhorse-1.0-r2v

阿里
text
image
video
模型 Code
happyhorse-1.0-r2v
服务状态
可调用

模型介绍

HappyHorse-1.0-R2V支持参考生视频,更加稳定的主体与场景参考,支持最多9张图片参考,能够精准保持创作意图,实现更强表现能力。

模型能力

输入模态
模型体验支持
思考模式不支持
Function Calling不支持
结构化输出不支持
输出模态
内置工具不支持
联网搜索未提供
缓存未提供

模型价格

输入免费,按分辨率计费

分辨率输出价格
720P · 有声¥0.9 / 秒
1080P · 有声¥1.6 / 秒

模型限流与上下文

上下文长度
32K Tokens
最大输出长度
8K Tokens

API 代码示例

import requests
import os
import time

BASE = "https://limapi.com/api/v1"
headers = {
    "Authorization": f"Bearer {os.getenv("ALIAPI_KEY")}",
    "Content-Type": "application/json",
}

# 1. 提交任务
resp = requests.post(f"{BASE}/videos", headers=headers, json={
    "model": "happyhorse-1.0-r2v",
    "prompt": "一只金毛犬在海边奔跑,阳光明媚",
})
task_id = resp.json()["output"]["task_id"]

# 2. 轮询结果
while True:
    r = requests.get(f"{BASE}/videos/{task_id}", headers=headers)
    status = r.json()["output"]["task_status"]
    if status == "SUCCEEDED":
        print(r.json()["output"]["video_url"])
        break
    if status == "FAILED":
        print("生成失败")
        break
    time.sleep(5)