Alibaba's HappyHorse 1.0 text-to-video model. Generates videos from a text prompt with configurable resolution, aspect ratio, and duration (3-15s).
HappyHorse-1.0-T2V (alibaba/hh1-t2v) is a video model from Alibaba, released 2026-04-22. Pricing via AIgateway: $0.140–$0.280 per second by resolution. Call it via https://api.aigateway.sh/v1/videos/generations — set model="alibaba/hh1-t2v".
curl https://api.aigateway.sh/v1/videos/generations \
-H "Authorization: Bearer $AIGATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"alibaba/hh1-t2v","prompt":"a slow drone shot over a mountain lake","duration":5,"resolution":"720p"}'{
"model": "alibaba/hh1-t2v",
"prompt": "A drone shot of a mountain lake at golden hour",
"duration": 5, // seconds
"aspect_ratio": "16:9",
"resolution": "720p" // 720p $0.14/s, 1080p $0.28/s
}
// optional "image_url" to animate a seed image
// Response is an async job — poll /v1/jobs/<id> until status === "completed".{
"id": "job_abc123",
"status": "queued", // queued | processing | completed | failed
"model": "alibaba/hh1-t2v",
"created": 1776947082
}
// After completion:
{
"id": "job_abc123",
"status": "completed",
"result": {
"url": "https://media.aigateway.sh/video/abc123.mp4",
"duration": 5,
"resolution": "1920x1080"
}
}import os, requests
r = requests.post(
"https://api.aigateway.sh/v1/videos/generations",
headers={"Authorization": f"Bearer {os.environ['AIGATEWAY_API_KEY']}"},
json={
"model": "alibaba/hh1-t2v",
"prompt": "A drone shot of a mountain lake",
"duration": 5,
"aspect_ratio": "16:9"
},
)
print(r.json())