Skip to content
English

Video Generation

HiAPI supports multiple video generation models for text-to-video and image-to-video tasks.

ModelProviderModeBest For
HappyHorse 1.0AlibabaText to videoShort-form, ad storyboards, social media clips
Kling 3.0KuaishouText to videoCinematic motion and action-heavy shots
Seedance 1.0 ProByteDanceText to videoCost-aware batches and early prototypes
Seedance 1.5 ProByteDanceText to videoNarrative clips with native audio
Seedance 2.0ByteDanceText or image to videoUnified video workflows
Wan 2.7 T2VAlibabaText to videoGeneral short-form videos
Wan 2.7 I2VAlibabaImage to videoAnimating still images

For live prices, duration examples, and resolution multipliers, use HiAPI Pricing.

Terminal window
curl -X POST https://api.hiapi.ai/v1/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.7-t2v",
"prompt": "A Shiba Inu chasing butterflies under cherry blossoms",
"size": "1920*1080",
"seconds": "5"
}'

Animate a still image into a video using Wan 2.7 I2V:

Terminal window
curl -X POST https://api.hiapi.ai/v1/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.7-i2v",
"prompt": "The scene comes alive with gentle wind",
"input_reference": "https://example.com/photo.jpg",
"seconds": "5"
}'

Video generation is asynchronous. The API returns a top-level id — poll for the result:

import time
import requests
# 1. Submit task
response = requests.post(
"https://api.hiapi.ai/v1/videos",
headers={"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
json={"model": "wan2.7-t2v", "prompt": "sunset timelapse", "seconds": "5"}
)
video_id = response.json()["id"]
# 2. Poll for result
while True:
result = requests.get(
f"https://api.hiapi.ai/v1/videos/{video_id}",
headers={"Authorization": "Bearer YOUR_API_KEY"}
).json()
if result["status"] == "completed":
print("Video URL:", result.get("metadata", {}).get("url"))
break
time.sleep(5)
ParameterValuesModels
seconds3, 5, 8, 10, 12, 15Wan 2.7, Seedance
size1920*1080, 1080*1920, 1280*720Wan 2.7
seconds3, 5, 8, 10, 15Kling