支持图片、视频和音频参考,适合多素材视频创作
| 480P | ¥0.330 / per second |
| 768P | ¥0.500 / per second |
| Input video 480P | ¥0.370 / sec |
| Input video 768P | ¥0.970 / sec |
Every route uses the price above. Routes are not priced per token.
| Provider | Latency | Uptime | Status |
|---|---|---|---|
minimax MiniMax-H3-Max | 80ms | 100.00% |
import os
import time
import requests
API_BASE = "https://api.openroute.cn/api/minimax"
headers = {
"Authorization": f"Bearer {os.environ['ONTOROUTE_API_KEY']}",
"Content-Type": "application/json",
}
created = requests.post(
f"{API_BASE}/v2/video_generation",
headers=headers,
json={
"model": "minimax-h3-max",
"content": [
{"type": "text", "text": "一只可爱的猫在窗台晒太阳,镜头缓慢拉近"},
],
"duration": 5,
"resolution": "768P",
},
)
created.raise_for_status()
task_id = created.json()["task_id"]
while True:
query = requests.get(f"{API_BASE}/v2/query/video_generation/{task_id}", headers=headers)
query.raise_for_status()
data = query.json()
if data.get("status") == "Success":
print(data["content"]["url"])
break
if data.get("status") == "Fail":
raise RuntimeError(data)
time.sleep(10)暂无调用数据
| Input images | ¥0.500 / image |
| Free images per task | 2 images |
Video is billed by duration. Unlisted resolutions use the fallback price. Duration is rounded up to the billing unit. Input materials are billed separately: images per image (within the per-task free allowance are not charged), input video per second (falls back to the output price when no dedicated tier is listed).
This model does not publish tunable parameters.